Get RobotChase at SourceForge.net. Fast, secure and Free Open Source software downloads

org.gcs.robot
Class RCPrefs

java.lang.Object
  extended by org.gcs.robot.RCPrefs

public class RCPrefs
extends Object

The RCPref class manages persistent user data. These include previous high score, screen dimensions, chosen tile set, animation preference and key bindings.

Author:
John B. Matthews
See Also:
RCInfo

Field Summary
static int DEFAULT_JUMPS
           
static int DEFAULT_LEVEL
           
static int DEFAULT_SCORE
           
 
Method Summary
static boolean getAnimated()
          Get the user's desired animation state.
static int getHeight()
          Get the user's last height in tiles.
static int getHighJumps()
          Get the user's previous high jumps.
static int getHighLevel()
          Get the user's previous high level.
static int getHighScore()
          Get the user's previous high score.
static void getKeys()
          Get the user's key preferences; values are stored in the Key enum.
static String getTileSet()
          Get the user's previous tile set.
static int getWidth()
          Get the user's last width in tiles.
static void putAnimated(boolean isAnimated)
          Set the user's desired animation state.
static void putHeight(int height)
          Set the user's new last height in tiles.
static void putHighJumps(int jumps)
          Set the user's new high jumps.
static void putHighLevel(int level)
          Set the user's new high level.
static void putHighScore(int score)
          Set the user's new high score.
static void putKeys()
          Set the user's key preferences; values are read from the Key enum.
static void putTileSet(String tileSet)
          Set the user's new tile set.
static void putWidth(int width)
          Set the user's new last width in tiles.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_SCORE

public static final int DEFAULT_SCORE
See Also:
Constant Field Values

DEFAULT_LEVEL

public static final int DEFAULT_LEVEL
See Also:
Constant Field Values

DEFAULT_JUMPS

public static final int DEFAULT_JUMPS
See Also:
Constant Field Values
Method Detail

getHighScore

public static int getHighScore()
Get the user's previous high score.


putHighScore

public static void putHighScore(int score)
Set the user's new high score.


getHighLevel

public static int getHighLevel()
Get the user's previous high level.


putHighLevel

public static void putHighLevel(int level)
Set the user's new high level.


getHighJumps

public static int getHighJumps()
Get the user's previous high jumps.


putHighJumps

public static void putHighJumps(int jumps)
Set the user's new high jumps.


getTileSet

public static String getTileSet()
Get the user's previous tile set.


putTileSet

public static void putTileSet(String tileSet)
Set the user's new tile set.


getWidth

public static int getWidth()
Get the user's last width in tiles.


putWidth

public static void putWidth(int width)
Set the user's new last width in tiles.


getHeight

public static int getHeight()
Get the user's last height in tiles.


putHeight

public static void putHeight(int height)
Set the user's new last height in tiles.


getAnimated

public static boolean getAnimated()
Get the user's desired animation state.


putAnimated

public static void putAnimated(boolean isAnimated)
Set the user's desired animation state.


getKeys

public static void getKeys()
Get the user's key preferences; values are stored in the Key enum.


putKeys

public static void putKeys()
Set the user's key preferences; values are read from the Key enum.


Get RobotChase at SourceForge.net. Fast, secure and Free Open Source software downloads

Copyright © 2007 Gem City Software. Distributed under the terms of the GPL