modules
Class RadarModule
java.lang.Object
modules.EmptyModule
modules.RadarModule
- public class RadarModule
- extends EmptyModule
Module for radar management
- Author:
- Francesco Baldisserri
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 |
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
RadarModule
public RadarModule(TemplateBot owner,
BotInfoMap bots)
- Default constructor for RadarModule
- Parameters:
owner
- Bot which owns this modulebots
- BotInfoMap which has all information recorded by bot
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