|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectserver.framework.models.SettingsList
public class SettingsList
This class contains a list of the settings applying to a session, and is used by the
session's GameThread
to ensure the validity of the game's current state.
When settings are added to a game, this class needs to have the settings added.
Constructor Summary | |
---|---|
SettingsList()
Initialises the list of settings. |
Method Summary | |
---|---|
void |
fireSettingChanged(java.lang.String[][] values)
Method that is called whenever a player has changed the value of one or more settings. |
java.lang.Object |
getSetting(Setting setting)
Method used to get a setting's value. |
java.util.HashMap<Setting,java.lang.Object> |
getSettings()
|
java.lang.Object[][] |
getSettingsList()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SettingsList()
Method Detail |
---|
public java.lang.Object[][] getSettingsList()
public java.util.HashMap<Setting,java.lang.Object> getSettings()
public java.lang.Object getSetting(Setting setting)
setting
- The setting.
public void fireSettingChanged(java.lang.String[][] values)
values
- The names and values of the changed settings.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |