modules
Class EmptyModule

java.lang.Object
  extended bymodules.EmptyModule
Direct Known Subclasses:
GunModule, MovementModule, RadarModule, TemplateStateModule

public class EmptyModule
extends java.lang.Object

Template class for modules

Author:
Francesco Baldisserri

Field Summary
static int DO_NOTHING
          No operation state
 
Constructor Summary
EmptyModule(TemplateBot owner, BotInfoMap bots)
          Default constructor for EmptyModule
 
Method Summary
 int getState()
          Returns the state
 java.lang.String getTarget()
          Returns current module target
 void move()
          Action to execute during robot turn
 void onBulletHit(robocode.BulletHitEvent arg0)
           
 void onBulletHitBullet(robocode.BulletHitBulletEvent arg0)
           
 void onBulletMissed(robocode.BulletMissedEvent arg0)
           
 void onCustomEvent(robocode.CustomEvent arg0)
           
 void onDeath(robocode.DeathEvent arg0)
           
 void onHitByBullet(robocode.HitByBulletEvent arg0)
           
 void onHitRobot(robocode.HitRobotEvent arg0)
           
 void onHitWall(robocode.HitWallEvent arg0)
           
 void onMessageReceived(robocode.MessageEvent arg0)
           
 void onRobotDeath(robocode.RobotDeathEvent arg0)
           
 void onScannedRobot(robocode.ScannedRobotEvent arg0)
           
 void onSkippedTurn(robocode.SkippedTurnEvent arg0)
           
 void onWin(robocode.WinEvent arg0)
           
 void setState(int state)
          Sets the state
 void setTarget(java.lang.String targetName)
          Sets current module target
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DO_NOTHING

public static final int DO_NOTHING
No operation state

See Also:
Constant Field Values
Constructor Detail

EmptyModule

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

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

move

public void move()
Action to execute during robot turn


getState

public int getState()
Returns the state

Returns:
Returns the state

setState

public void setState(int state)
Sets the state

Parameters:
state - Sets the state

getTarget

public java.lang.String getTarget()
Returns current module target

Returns:
Returns current module target

setTarget

public void setTarget(java.lang.String targetName)
Sets current module target

Parameters:
targetName - Sets current module target

onSkippedTurn

public void onSkippedTurn(robocode.SkippedTurnEvent arg0)

onMessageReceived

public void onMessageReceived(robocode.MessageEvent arg0)

onCustomEvent

public void onCustomEvent(robocode.CustomEvent arg0)

onDeath

public void onDeath(robocode.DeathEvent arg0)

onBulletHit

public void onBulletHit(robocode.BulletHitEvent arg0)

onBulletHitBullet

public void onBulletHitBullet(robocode.BulletHitBulletEvent arg0)

onBulletMissed

public void onBulletMissed(robocode.BulletMissedEvent arg0)

onHitByBullet

public void onHitByBullet(robocode.HitByBulletEvent arg0)

onHitRobot

public void onHitRobot(robocode.HitRobotEvent arg0)

onHitWall

public void onHitWall(robocode.HitWallEvent arg0)

onRobotDeath

public void onRobotDeath(robocode.RobotDeathEvent arg0)

onScannedRobot

public void onScannedRobot(robocode.ScannedRobotEvent arg0)

onWin

public void onWin(robocode.WinEvent arg0)

toString

public java.lang.String toString()