|
||||||||||
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
public class Surfer
Surfer - a class by (Robert Codd)
Field Summary | |
---|---|
static int |
ROLLING_DEPTH
|
Constructor Summary | |
---|---|
Surfer(robocode.AdvancedRobot robot)
Class Constructor specfiying the AdvancedRobot Ataru is working for |
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 |
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, onPaint, onWin |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int ROLLING_DEPTH
Constructor Detail |
---|
public Surfer(robocode.AdvancedRobot robot)
Method Detail |
---|
public void onRobotFire(double deltaEnergy)
onRobotFire
in class Movement
double
- deltaEnergy the power of the bullet firedpublic void onScannedRobot(robocode.ScannedRobotEvent e)
onScannedRobot
in class Movement
ScannedRobotEvent
- information about the scanned robotpublic void onHitByBullet(robocode.HitByBulletEvent e)
onHitByBullet
in class Movement
HitByBulletEvent
- information about ther bullet
that hit this robotpublic void onBulletHitBullet(robocode.BulletHitBulletEvent e)
onBulletHitBullet
in class Movement
BulletHitBulletEvent
- information about the bullets
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |