robocode
Class HitWallEvent
- Comparable
public class HitWallEvent
A HitWallEvent is sent to
onHitWall(HitWallEvent)
when you collide a wall. You can use the information
contained in this event to determine what to do.
- Mathew A. Nelson (original)
HitWallEvent(double bearing) - Called by the game to create a new HitWallEvent.
|
@Deprecated | double getBearingDegrees() - Use
getBearing() instead.
|
double | getBearing() - Returns the bearing to the wall you hit, relative to your robot's
heading, in degrees (-180 <= getBearing() <32180)
|
double | getBearingRadians() - Returns the bearing to the wall you hit, relative to your robot's
heading, in radians (-PI <= getBearingRadians() <32PI)
|
HitWallEvent
public HitWallEvent(double bearing)
Called by the game to create a new HitWallEvent.
bearing
- the bearing to the wall that your robot hit, in radians
double getBearingDegrees
public @Deprecated double getBearingDegrees()
Use getBearing()
instead.
- the bearing to the wall you hit, in degrees
getBearing
public double getBearing()
Returns the bearing to the wall you hit, relative to your robot's
heading, in degrees (-180 <= getBearing() <32180)
- the bearing to the wall you hit, in degrees
getBearingRadians
public double getBearingRadians()
Returns the bearing to the wall you hit, relative to your robot's
heading, in radians (-PI <= getBearingRadians() <32PI)
- the bearing to the wall you hit, in radians