rc.yoda.utils
Class Laws

java.lang.Object
  extended by rc.yoda.utils.Laws

public final class Laws
extends java.lang.Object


Field Summary
static double ACCELERATION
           
static double DECELERATION
           
static double GUN_TURN_RATE
           
static double GUN_TURN_RATE_RADIANS
           
static double MAX_BULLET_POWER
           
static double MAX_TURN_RATE
           
static double MAX_TURN_RATE_RADIANS
           
static double MAX_VELOCITY
           
static double MIN_BULLET_POWER
           
static double RADAR_SCAN_RADIUS
           
static double RADAR_TURN_RATE
           
static double RADAR_TURN_RATE_RADIANS
           
static double ROBOT_HIT_BONUS
           
static double ROBOT_HIT_DAMAGE
           
 
Constructor Summary
Laws()
           
 
Method Summary
static double getBulletDamage(double bulletPower)
           
static double getBulletHitBonus(double bulletPower)
           
static double getBulletSpeed(double bulletPower)
           
static double getGunHeat(double bulletPower)
           
static double getTurnRate(double velocity)
           
static double getTurnRateRadians(double velocity)
           
static double getWallHitDamage(double velocity)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACCELERATION

public static final double ACCELERATION
See Also:
Constant Field Values

DECELERATION

public static final double DECELERATION
See Also:
Constant Field Values

MAX_VELOCITY

public static final double MAX_VELOCITY
See Also:
Constant Field Values

RADAR_SCAN_RADIUS

public static final double RADAR_SCAN_RADIUS
See Also:
Constant Field Values

MIN_BULLET_POWER

public static final double MIN_BULLET_POWER
See Also:
Constant Field Values

MAX_BULLET_POWER

public static final double MAX_BULLET_POWER
See Also:
Constant Field Values

MAX_TURN_RATE

public static final double MAX_TURN_RATE
See Also:
Constant Field Values

MAX_TURN_RATE_RADIANS

public static final double MAX_TURN_RATE_RADIANS

GUN_TURN_RATE

public static final double GUN_TURN_RATE
See Also:
Constant Field Values

GUN_TURN_RATE_RADIANS

public static final double GUN_TURN_RATE_RADIANS

RADAR_TURN_RATE

public static final double RADAR_TURN_RATE
See Also:
Constant Field Values

RADAR_TURN_RATE_RADIANS

public static final double RADAR_TURN_RATE_RADIANS

ROBOT_HIT_DAMAGE

public static final double ROBOT_HIT_DAMAGE
See Also:
Constant Field Values

ROBOT_HIT_BONUS

public static final double ROBOT_HIT_BONUS
See Also:
Constant Field Values
Constructor Detail

Laws

public Laws()
Method Detail

getTurnRate

public static double getTurnRate(double velocity)

getTurnRateRadians

public static double getTurnRateRadians(double velocity)

getWallHitDamage

public static double getWallHitDamage(double velocity)

getBulletDamage

public static double getBulletDamage(double bulletPower)

getBulletHitBonus

public static double getBulletHitBonus(double bulletPower)

getBulletSpeed

public static double getBulletSpeed(double bulletPower)

getGunHeat

public static double getGunHeat(double bulletPower)