modules
Class RadarModule

java.lang.Object
  extended bymodules.EmptyModule
      extended bymodules.RadarModule

public class RadarModule
extends EmptyModule

Module for radar management

Author:
Francesco Baldisserri

Field Summary
static int SCANNING_MODE
          Turns the radar in every direction
static int TRACKING_MODE
          Keeps the radar on the target
 
Fields inherited from class modules.EmptyModule
DO_NOTHING
 
Constructor Summary
RadarModule(TemplateBot owner, BotInfoMap bots)
          Default constructor for RadarModule
 
Method Summary
 void move()
          Action to execute during robot turn
 void onRobotDeath(robocode.RobotDeathEvent arg0)
           
 void onScannedRobot(robocode.ScannedRobotEvent arg0)
           
 
Methods inherited from class modules.EmptyModule
getState, getTarget, onBulletHit, onBulletHitBullet, onBulletMissed, onCustomEvent, onDeath, onHitByBullet, onHitRobot, onHitWall, onMessageReceived, onSkippedTurn, onWin, setState, setTarget, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TRACKING_MODE

public static final int TRACKING_MODE
Keeps the radar on the target

See Also:
Constant Field Values

SCANNING_MODE

public static final int SCANNING_MODE
Turns the radar in every direction

See Also:
Constant Field Values
Constructor Detail

RadarModule

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

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

onScannedRobot

public void onScannedRobot(robocode.ScannedRobotEvent arg0)
Overrides:
onScannedRobot in class EmptyModule

onRobotDeath

public void onRobotDeath(robocode.RobotDeathEvent arg0)
Overrides:
onRobotDeath in class EmptyModule