|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmodules.EmptyModule
Template class for modules
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 |
public static final int DO_NOTHING
Constructor Detail |
public EmptyModule(TemplateBot owner, BotInfoMap bots)
owner
- Bot which owns this modulebots
- BotInfoMap which has all information recorded by botMethod Detail |
public void move()
public int getState()
public void setState(int state)
state
- Sets the statepublic java.lang.String getTarget()
public void setTarget(java.lang.String targetName)
targetName
- Sets current module targetpublic void onSkippedTurn(robocode.SkippedTurnEvent arg0)
public void onMessageReceived(robocode.MessageEvent arg0)
public void onCustomEvent(robocode.CustomEvent arg0)
public void onDeath(robocode.DeathEvent arg0)
public void onBulletHit(robocode.BulletHitEvent arg0)
public void onBulletHitBullet(robocode.BulletHitBulletEvent arg0)
public void onBulletMissed(robocode.BulletMissedEvent arg0)
public void onHitByBullet(robocode.HitByBulletEvent arg0)
public void onHitRobot(robocode.HitRobotEvent arg0)
public void onHitWall(robocode.HitWallEvent arg0)
public void onRobotDeath(robocode.RobotDeathEvent arg0)
public void onScannedRobot(robocode.ScannedRobotEvent arg0)
public void onWin(robocode.WinEvent arg0)
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |