modules.states
Class TemplateStateModule

java.lang.Object
  extended bymodules.EmptyModule
      extended bymodules.states.TemplateStateModule
Direct Known Subclasses:
MuteStateManager, TalkativeStateManager

public abstract class TemplateStateModule
extends EmptyModule


Field Summary
static int[] ATTACK_ALL
          Attack all state
static int[] ATTACK_BOT
          Attack bot state
static int DEFAULT_MODE
          Unique state available
static int[] DEFEND_BOT
          Defend bot state
 
Fields inherited from class modules.EmptyModule
DO_NOTHING
 
Constructor Summary
TemplateStateModule(TemplateBot owner, BotInfoMap bots)
          Default constructor for TemplateStateModule
 
Method Summary
abstract  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

DEFAULT_MODE

public static final int DEFAULT_MODE
Unique state available

See Also:
Constant Field Values

ATTACK_ALL

public static int[] ATTACK_ALL
Attack all state


ATTACK_BOT

public static int[] ATTACK_BOT
Attack bot state


DEFEND_BOT

public static int[] DEFEND_BOT
Defend bot state

Constructor Detail

TemplateStateModule

public TemplateStateModule(TemplateBot owner,
                           BotInfoMap bots)
Default constructor for TemplateStateModule

Parameters:
owner - Bot which owns this module
bots - BotInfoMap which has all information recorded by bot
Method Detail

move

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

Overrides:
move in class EmptyModule