|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.huguesjohnson.tiamat.demos.Camineet.BaseGameState
com.huguesjohnson.tiamat.demos.Camineet.CDGameState
CDGameState - extension of BaseGameState with attributes specific to this demo
| Field Summary | |
static int |
TIME_DAY
constant for daytime |
static int |
TIME_NIGHT
constant for nighttime |
| Constructor Summary | |
CDGameState()
Create an empty CDGameState. |
|
CDGameState(Area currentArea)
Create a BaseGameState with an Area but no conditions. |
|
CDGameState(Area currentArea,
int timeOfDay)
Create a BaseGameState with an Area but no conditions. |
|
CDGameState(Area currentArea,
java.lang.String[] conditions)
Create a BaseGameState with conditions and an Area. |
|
CDGameState(Area currentArea,
java.lang.String[] conditions,
int timeOfDay)
Create a BaseGameState with conditions and an Area. |
|
CDGameState(int timeOfDay)
Create an empty CDGameState. |
|
CDGameState(java.lang.String[] conditions)
Create a CDGameState with conditions but no Area. |
|
CDGameState(java.lang.String[] conditions,
int timeOfDay)
Create a CDGameState with conditions but no Area. |
|
| Method Summary | |
java.lang.String |
getCurrentAreaName()
Returns the name of the current area. |
int |
getTimeOfDay()
Returns one of the time constants representing what time of day it is. |
void |
setCurrentAreaName(java.lang.String areaName)
Sets the name of the current area. |
void |
setTimeOfDay(int timeOfDay)
Sets the time of day it is. |
| Methods inherited from class com.huguesjohnson.tiamat.demos.Camineet.BaseGameState |
addCondition, getConditions, getCurrentArea, hasCondition, onDeserialize, setCurrentArea |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int TIME_DAY
public static final int TIME_NIGHT
| Constructor Detail |
public CDGameState()
public CDGameState(java.lang.String[] conditions)
conditions - The initial conditions for this BaseGameState.public CDGameState(Area currentArea)
currentArea - The new Area the game is currently in.
public CDGameState(Area currentArea,
java.lang.String[] conditions)
currentArea - The new Area the game is currently in.conditions - The initial conditions for this BaseGameState.public CDGameState(int timeOfDay)
timeOfDay - One of the time constants representing what time of day it is.
public CDGameState(java.lang.String[] conditions,
int timeOfDay)
conditions - The initial conditions for this BaseGameState.timeOfDay - One of the time constants representing what time of day it is.
public CDGameState(Area currentArea,
int timeOfDay)
currentArea - The new Area the game is currently in.timeOfDay - One of the time constants representing what time of day it is.
public CDGameState(Area currentArea,
java.lang.String[] conditions,
int timeOfDay)
currentArea - The new Area the game is currently in.conditions - The initial conditions for this BaseGameState.timeOfDay - One of the time constants representing what time of day it is.| Method Detail |
public int getTimeOfDay()
public void setTimeOfDay(int timeOfDay)
timeOfDay - One of the time constants representing what time of day it is.public java.lang.String getCurrentAreaName()
public void setCurrentAreaName(java.lang.String areaName)
areaName - The new name of the current area.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||