de.palmmedia.yahtzee
Class Globals

java.lang.Object
  extended by de.palmmedia.yahtzee.Globals

public final class Globals
extends Object


Field Summary
private static GameContext gameContext
          The game context of the current game.
private static List<Result> results
          The list of highscores.
static String SHOW_HIGHSCORES
           
private static boolean soundEnabled
           
 
Constructor Summary
Globals()
           
 
Method Summary
static GameContext getGameContext()
           
static List<Result> getResults()
           
static boolean isSoundEnabled()
           
static void setGameContext(GameContext gameContext)
           
static void setResults(List<Result> results)
           
static void setSoundEnabled(boolean soundEnabled)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SHOW_HIGHSCORES

public static final String SHOW_HIGHSCORES
See Also:
Constant Field Values

soundEnabled

private static boolean soundEnabled

gameContext

private static GameContext gameContext
The game context of the current game. Program Activity -> Game Activity


results

private static List<Result> results
The list of highscores. Game Activity -> Results Activity

Constructor Detail

Globals

public Globals()
Method Detail

isSoundEnabled

public static boolean isSoundEnabled()

setSoundEnabled

public static void setSoundEnabled(boolean soundEnabled)

getGameContext

public static GameContext getGameContext()

setGameContext

public static void setGameContext(GameContext gameContext)

getResults

public static List<Result> getResults()
Returns:

setResults

public static void setResults(List<Result> results)