edu.gatech.cs2335.lemmings.physics
Class PhysicsSettings

java.lang.Object
  extended byedu.gatech.cs2335.lemmings.physics.PhysicsSettings

public class PhysicsSettings
extends java.lang.Object

Physics Settings, thanks to PMD, a Singleton class Holds Physics Constants

Author:
Jose Caban

Method Summary
static int getAngelVelocity()
          Method getAngelVelocity
static int getBounceVelocity()
          Method getBounceVelocity
static int getFloatSpeed()
          Method getFloatSpeed
static int getFriction()
          Get the friction
static int getGlideX()
          Method getGlideX
static int getGravity()
          Get the gravity
static int getInitialX()
          Method getInitialX , getInitialX
static PhysicsSettings getInstance()
          Describe getInstance method here.
static int getLaunchSpeed()
          Method getLaunchSpeed
static int getTerminalVelocity()
          Method getTerminalVelocity
static void setAngelVelocity(int angelVelocity)
          Method setAngelVelocity
static void setBounceVelocity(int bounceVelocity)
          Method setBounceVelocity
static void setFloatSpeed(int floatSpeed)
          Method setFloatSpeed
static void setFriction(int aFriction)
          Set the friction
static void setGlideX()
          Method setGlideX
static void setGravity(int aGravity)
          Set the gravity
static void setInitialX(int initialX)
          Method setInitialX
static void setLaunchSpeed(int launchSpeed)
          Method setLaunchSpeed
static void setTerminalVelocity(int terminalVelocity)
          Method setTerminalVelocity
static void setUseClassicPhysics(boolean useClassicPhysics)
          Method setUseClassicPhysics
static boolean useClassicPhysics()
          Method getUseClassicPhysics
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getGravity

public static int getGravity()
Get the gravity

Returns:
the gravity of the system

getFriction

public static int getFriction()
Get the friction

Returns:
the friction of the system

getTerminalVelocity

public static int getTerminalVelocity()
Method getTerminalVelocity

Returns:
int , terminal velocity from PhysicsSettings

getInstance

public static PhysicsSettings getInstance()
Describe getInstance method here.

Returns:
a PhysicsSettings value

setGravity

public static void setGravity(int aGravity)
Set the gravity

Parameters:
aGravity - , the new gravity of the system

setFriction

public static void setFriction(int aFriction)
Set the friction

Parameters:
aFriction - , the friction of the system

setTerminalVelocity

public static void setTerminalVelocity(int terminalVelocity)
Method setTerminalVelocity

Parameters:
terminalVelocity - , termVelocity

setInitialX

public static void setInitialX(int initialX)
Method setInitialX

Parameters:
initialX - , initialX

getInitialX

public static int getInitialX()
Method getInitialX , getInitialX

Returns:
int , initialX from PhysicsSettings

setFloatSpeed

public static void setFloatSpeed(int floatSpeed)
Method setFloatSpeed

Parameters:
floatSpeed - , float speed

setBounceVelocity

public static void setBounceVelocity(int bounceVelocity)
Method setBounceVelocity

Parameters:
bounceVelocity - , bounceVelocity

getFloatSpeed

public static int getFloatSpeed()
Method getFloatSpeed

Returns:
int , float speed

getBounceVelocity

public static int getBounceVelocity()
Method getBounceVelocity

Returns:
int , bounce velocity

setAngelVelocity

public static void setAngelVelocity(int angelVelocity)
Method setAngelVelocity

Parameters:
angelVelocity - , angel Velocity

getAngelVelocity

public static int getAngelVelocity()
Method getAngelVelocity

Returns:
angleVelocity

setUseClassicPhysics

public static void setUseClassicPhysics(boolean useClassicPhysics)
Method setUseClassicPhysics

Parameters:
useClassicPhysics - , boolean bla bla

useClassicPhysics

public static boolean useClassicPhysics()
Method getUseClassicPhysics

Returns:
boolean , whether or not classic physics is turned on.

setLaunchSpeed

public static void setLaunchSpeed(int launchSpeed)
Method setLaunchSpeed

Parameters:
launchSpeed - , launchSpeeeeed

getLaunchSpeed

public static int getLaunchSpeed()
Method getLaunchSpeed

Returns:
int , LaunchSpeed from PhysicsSettings

setGlideX

public static void setGlideX()
Method setGlideX


getGlideX

public static int getGlideX()
Method getGlideX

Returns:
int , glideX value from PhysicsSettings