rc.yoda.utils
Class Surfer

java.lang.Object
  extended by rc.yoda.utils.Movement
      extended by rc.yoda.utils.Surfer
Direct Known Subclasses:
Ataru

public class Surfer
extends Movement

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

ROLLING_DEPTH

public static final int ROLLING_DEPTH
See Also:
Constant Field Values
Constructor Detail

Surfer

public Surfer(robocode.AdvancedRobot robot)
Class Constructor specfiying the AdvancedRobot Ataru is working for

Method Detail

onRobotFire

public void onRobotFire(double deltaEnergy)
Event method called by this robot when it detects that the enemy fired a bullet

Overrides:
onRobotFire in class Movement
Parameters:
double - deltaEnergy the power of the bullet fired

onScannedRobot

public void onScannedRobot(robocode.ScannedRobotEvent e)
Event method called by Robocode when this robot's scanner passes over another robot

Overrides:
onScannedRobot in class Movement
Parameters:
ScannedRobotEvent - information about the scanned robot

onHitByBullet

public void onHitByBullet(robocode.HitByBulletEvent e)
Event method called by Robocode when this robot gets hit by a bullet

Overrides:
onHitByBullet in class Movement
Parameters:
HitByBulletEvent - information about ther bullet that hit this robot

onBulletHitBullet

public void onBulletHitBullet(robocode.BulletHitBulletEvent e)
Event method called by Robocode when a bullet this robot fired collides with a bullet fired by another robot

Overrides:
onBulletHitBullet in class Movement
Parameters:
BulletHitBulletEvent - information about the bullets