rc.yoda.utils
Class Laws
java.lang.Object
rc.yoda.utils.Laws
public final class Laws
- extends java.lang.Object
Constructor Summary |
Laws()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
Laws
public Laws()
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)