modules
Class MovementModule

java.lang.Object
  extended bymodules.EmptyModule
      extended bymodules.MovementModule

public class MovementModule
extends EmptyModule

Module for movement management

Author:
Francesco Baldisserri

Field Summary
static int FOLLOW_MODE
          Follow mode state value
static int RANDOM_MODE
          Random mode state value
 
Fields inherited from class modules.EmptyModule
DO_NOTHING
 
Constructor Summary
MovementModule(TemplateBot owner, BotInfoMap bots)
          Default constructor for MovementModule
 
Method Summary
 void move()
          Action to execute during robot turn
 void onHitByBullet(robocode.HitByBulletEvent arg0)
           
 void onHitRobot(robocode.HitRobotEvent arg0)
           
 void onHitWall(robocode.HitWallEvent arg0)
           
 
Methods inherited from class modules.EmptyModule
getState, getTarget, onBulletHit, onBulletHitBullet, onBulletMissed, onCustomEvent, onDeath, 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

FOLLOW_MODE

public static final int FOLLOW_MODE
Follow mode state value

See Also:
Constant Field Values

RANDOM_MODE

public static final int RANDOM_MODE
Random mode state value

See Also:
Constant Field Values
Constructor Detail

MovementModule

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

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

move

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

Overrides:
move in class EmptyModule

onHitRobot

public void onHitRobot(robocode.HitRobotEvent arg0)
Overrides:
onHitRobot in class EmptyModule

onHitWall

public void onHitWall(robocode.HitWallEvent arg0)
Overrides:
onHitWall in class EmptyModule

onHitByBullet

public void onHitByBullet(robocode.HitByBulletEvent arg0)
Overrides:
onHitByBullet in class EmptyModule