efficom.runningjoe.user
Class Profile

java.lang.Object
  extended by efficom.runningjoe.user.Profile
All Implemented Interfaces:
com.badlogic.gdx.utils.Json.Serializable

public class Profile
extends java.lang.Object
implements com.badlogic.gdx.utils.Json.Serializable

The player's profile.

This class is used to store the game progress, and is persisted to the file system when the game exists.

See Also:
ProfileManager

Constructor Summary
Profile()
           
 
Method Summary
 float getMusicVolume()
           
 float getSoundVolume()
           
 boolean isMusicEnabled()
           
 boolean isSoundEnabled()
           
 void read(com.badlogic.gdx.utils.Json json, com.badlogic.gdx.utils.OrderedMap<java.lang.String,java.lang.Object> jsonData)
           
 void setMusicEnabled(boolean isMusicEnabled)
           
 void setMusicVolume(float musicVolume)
           
 void setSoundEnabled(boolean isSoundEnabled)
           
 void setSoundVolume(float soundVolume)
           
 void write(com.badlogic.gdx.utils.Json json)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Profile

public Profile()
Method Detail

isSoundEnabled

public boolean isSoundEnabled()

setSoundEnabled

public void setSoundEnabled(boolean isSoundEnabled)

isMusicEnabled

public boolean isMusicEnabled()

setMusicEnabled

public void setMusicEnabled(boolean isMusicEnabled)

getSoundVolume

public float getSoundVolume()

setSoundVolume

public void setSoundVolume(float soundVolume)

getMusicVolume

public float getMusicVolume()

setMusicVolume

public void setMusicVolume(float musicVolume)

read

public void read(com.badlogic.gdx.utils.Json json,
                 com.badlogic.gdx.utils.OrderedMap<java.lang.String,java.lang.Object> jsonData)
Specified by:
read in interface com.badlogic.gdx.utils.Json.Serializable

write

public void write(com.badlogic.gdx.utils.Json json)
Specified by:
write in interface com.badlogic.gdx.utils.Json.Serializable