|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrc.yoda.utils.Movement
public class Movement
Movement - A class that defines the events a robocode movement can use
Constructor Summary | |
---|---|
Movement(robocode.AdvancedRobot robot)
|
Method Summary | |
---|---|
void |
onBulletHitBullet(robocode.BulletHitBulletEvent e)
onBulletHitBullet - called by robocode when one of our bullets hits an enemy bullet |
void |
onDeath(robocode.DeathEvent e)
onDeath - called by robocode when our robot dies |
void |
onHitByBullet(robocode.HitByBulletEvent e)
onHitByBullet - called by robocode when our robot gets hit by a bullet |
void |
onHitRobot(robocode.HitRobotEvent e)
onHitRobot - called by robocode when our robot hits another robot |
void |
onHitWall(robocode.HitWallEvent e)
onHitWall - called by robocode when our robot hits a wall |
void |
onPaint(java.awt.Graphics2D g)
onPaint - called by robocode when our robot can draw to the screen |
void |
onRobotFire(double deltaEnergy)
onRobotFire - called by the robot when the enemy fires a bullet |
void |
onScannedRobot(robocode.ScannedRobotEvent e)
onScannedRobot - called by robocode when our robot scans the enemy |
void |
onWin(robocode.WinEvent e)
onWin - called by robocode when our robot wins a round |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Movement(robocode.AdvancedRobot robot)
Method Detail |
---|
public void onRobotFire(double deltaEnergy)
deltaEnergy
- - the power of the bullet firedpublic void onScannedRobot(robocode.ScannedRobotEvent e)
ScannedRobotEvent
- - enemy informationpublic void onHitByBullet(robocode.HitByBulletEvent e)
HitByBulletEvent
- - bullet informationpublic void onBulletHitBullet(robocode.BulletHitBulletEvent e)
BulletHitBulletEvent
- - colliding bullet informationpublic void onHitWall(robocode.HitWallEvent e)
HitWallEvent
- - wall informationpublic void onHitRobot(robocode.HitRobotEvent e)
HitRobotEvent
- - collision informationpublic void onDeath(robocode.DeathEvent e)
DeathEvent
- public void onWin(robocode.WinEvent e)
onWin
- public void onPaint(java.awt.Graphics2D g)
Graphic2D
- - painting tool
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |