Class GameSettings
java.lang.Object
model.GameSettings
- All Implemented Interfaces:
Serializable
Title: Misc
Description:
Copyright: Copyright (c) 2005
Company: TAFE SA
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionno-arg GameSettings constructorGameSettings(double moveSpeed, int firingInterval) two arg GameSettings constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanintdoublevoidloadData(UserDetails user) voidsaveData(UserDetails user) voidsetFiringInterval(int firingInterval) voidsetMoveSpeed(double moveSpeed) toString()
-
Field Details
-
MOVE_SPEED
public static final double MOVE_SPEED- See Also:
-
FIRING_INTERVAL
public static final int FIRING_INTERVAL- See Also:
-
-
Constructor Details
-
GameSettings
public GameSettings()no-arg GameSettings constructor
-
GameSettings
public GameSettings(double moveSpeed, int firingInterval) two arg GameSettings constructor
- Parameters:
moveSpeed- the speed that the player will movefiringInterval- how fast the player can shoot
-
-
Method Details
-
getMoveSpeed
public double getMoveSpeed()- Returns:
- the move speed
-
getFiringInterval
public int getFiringInterval()- Returns:
- the firing interval that is set
-
setMoveSpeed
public void setMoveSpeed(double moveSpeed) - Parameters:
moveSpeed- the multiplier for the player's movement speed
-
setFiringInterval
public void setFiringInterval(int firingInterval) - Parameters:
firingInterval- the number of which the player will fire at
-
equals
-
toString
-
saveData
- Parameters:
user- an instance of the UserDetails object- Throws:
Exception
-
loadData
- Parameters:
user- an instance of the UserDetails object- Throws:
Exception
-