modules
Class GunModule

java.lang.Object
  extended bymodules.EmptyModule
      extended bymodules.GunModule

public class GunModule
extends EmptyModule

Module for gun management

Author:
Francesco Baldisserri

Field Summary
static int ATTACK_ALL_MODE
          Attack all mode costant
static int ATTACK_BOT_MODE
          Attack bot mode costant
 
Fields inherited from class modules.EmptyModule
DO_NOTHING
 
Constructor Summary
GunModule(TemplateBot owner, BotInfoMap bots)
           
 
Method Summary
 void move()
          Action to execute during robot turn
 
Methods inherited from class modules.EmptyModule
getState, getTarget, onBulletHit, onBulletHitBullet, onBulletMissed, onCustomEvent, onDeath, onHitByBullet, onHitRobot, onHitWall, onMessageReceived, onRobotDeath, onScannedRobot, onSkippedTurn, onWin, setState, setTarget, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ATTACK_BOT_MODE

public static final int ATTACK_BOT_MODE
Attack bot mode costant

See Also:
Constant Field Values

ATTACK_ALL_MODE

public static final int ATTACK_ALL_MODE
Attack all mode costant

See Also:
Constant Field Values
Constructor Detail

GunModule

public GunModule(TemplateBot owner,
                 BotInfoMap bots)
Parameters:
owner -
bots -
Method Detail

move

public void move()
Description copied from class: EmptyModule
Action to execute during robot turn

Overrides:
move in class EmptyModule