|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--gecco.server.automaton.Automaton
|
+--gecco.game.oresund.AutomatonImpl
Description of the Class
| Field Summary | |
(package private) static int |
BRIDGE
Description of the Field |
(package private) static String |
BRIDGE_EVENT_STRING
Description of the Field |
(package private) static int |
CITY
Description of the Field |
(package private) static String |
CITY_EVENT_STRING
Description of the Field |
(package private) static int |
FOREST
Description of the Field |
(package private) static String |
FOREST_EVENT_STRING
Description of the Field |
(package private) static int |
LAND
Description of the Field |
(package private) static String |
LAND_EVENT_STRING
Description of the Field |
(package private) static HashMap |
stateToColour
Description of the Field |
(package private) static int |
SURVIVOR
Description of the Field |
(package private) static String |
SURVIVOR_EVENT_STRING
Description of the Field |
(package private) static int |
WATER
Description of the Field |
(package private) static String |
WATER_EVENT_STRING
Description of the Field |
| Fields inherited from class gecco.server.automaton.Automaton |
changed, currentColor, currentState |
| Constructor Summary | |
AutomatonImpl()
|
|
| Method Summary | |
(package private) static void |
|
private boolean |
existsNeighboursWithState(int[][] neighbourStates,
int state)
Description of the Method |
UnitEvent |
getUnitEventForCurrentState(String unitType)
Gets the UnitEventForCurrentState attribute of the AutomatonImpl object |
AutomatonReturn |
handleEvent(AutomatonEvent event)
Description of the Method |
void |
initialize(int initialState)
Description of the Method |
private void |
setColour(int state)
Sets the Colour attribute of the AutomatonImpl object |
AutomatonReturn |
update(int[][] neighbourStates)
Description of the Method |
| Methods inherited from class gecco.server.automaton.Automaton |
getCurrentColor, getState, hasChanged, setCurrentColor, setState |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
| Field Detail |
static final String CITY_EVENT_STRING
static final String SURVIVOR_EVENT_STRING
static final String WATER_EVENT_STRING
static final String FOREST_EVENT_STRING
static final String LAND_EVENT_STRING
static final String BRIDGE_EVENT_STRING
static final int CITY
static final int SURVIVOR
static final int WATER
static final int FOREST
static final int LAND
static final int BRIDGE
static final HashMap stateToColour
| Constructor Detail |
public AutomatonImpl()
| Method Detail |
public UnitEvent getUnitEventForCurrentState(String unitType)
getUnitEventForCurrentState in class AutomatonunitType - Description of Parameter
public void initialize(int initialState)
throws IllegalArgumentException
initialize in class AutomatoninitialState - Description of ParameterIllegalArgumentException - Description of Exceptionpublic AutomatonReturn update(int[][] neighbourStates)
update in class AutomatonneighbourStates - Description of Parameterpublic AutomatonReturn handleEvent(AutomatonEvent event)
handleEvent in class Automatonevent - Description of Parameter
private void setColour(int state)
throws IllegalArgumentException
state - The new Colour valueIllegalArgumentException - Description of Exception
private boolean existsNeighboursWithState(int[][] neighbourStates,
int state)
neighbourStates - Description of Parameterstate - Description of Parameterstatic void()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||