|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrc.yoda.utils.Movement
rc.yoda.utils.Surfer
rc.yoda.plugin.moves.Ataru
public class Ataru
Ataru is a Wave Surfing Movement for Yoda that encapsulates the true surfing algorithm
| Field Summary |
|---|
| Fields inherited from class rc.yoda.utils.Surfer |
|---|
ROLLING_DEPTH |
| Constructor Summary | |
|---|---|
Ataru(robocode.AdvancedRobot robot)
Constructor: What do we do when someone create an instance of Ataru |
|
| Method Summary | |
|---|---|
void |
onBulletHitBullet(robocode.BulletHitBulletEvent e)
Event method called by Robocode when a bullet this robot fired collides with a bullet fired by another robot |
void |
onHitByBullet(robocode.HitByBulletEvent e)
Event method called by Robocode when this robot gets hit by a bullet |
void |
onPaint(java.awt.Graphics2D g)
Event method called by Robocode when this robot is allowed to draw debugging graphics to the screen |
void |
onRobotFire(double deltaEnergy)
Event method called by this robot when it detects that the enemy fired a bullet |
void |
onScannedRobot(robocode.ScannedRobotEvent e)
Event method called by Robocode when this robot's scanner passes over another robot |
| Methods inherited from class rc.yoda.utils.Movement |
|---|
onDeath, onHitRobot, onHitWall, onWin |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Ataru(robocode.AdvancedRobot robot)
| Method Detail |
|---|
public void onRobotFire(double deltaEnergy)
onRobotFire in class Surferdouble - deltaEnergy the power of the bullet firedpublic void onScannedRobot(robocode.ScannedRobotEvent e)
onScannedRobot in class SurferScannedRobotEvent - information about the scanned robotpublic void onHitByBullet(robocode.HitByBulletEvent e)
onHitByBullet in class SurferHitByBulletEvent - information about ther bullet
that hit this robotpublic void onBulletHitBullet(robocode.BulletHitBulletEvent e)
onBulletHitBullet in class SurferBulletHitBulletEvent - information about the bulletspublic void onPaint(java.awt.Graphics2D g)
onPaint in class MovementGraphics2D - graphics that provides drawing method for painting
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||