gecco.game.testgame
Class AutomatonImpl
java.lang.Object
|
+--gecco.server.automaton.Automaton
|
+--gecco.game.testgame.AutomatonImpl
- public class AutomatonImpl
- extends Automaton
Description of the Class
Field Summary |
(package private) static String |
FIRE
Description of the Field |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
FIRE
static final String FIRE
- Description of the Field
AutomatonImpl
public AutomatonImpl()
getUnitEventForCurrentState
public UnitEvent getUnitEventForCurrentState(String unitType)
- Gets the UnitEventForCurrentState attribute of the AutomatonImpl object
- Overrides:
getUnitEventForCurrentState
in class Automaton
- Parameters:
unitType
- Description of Parameter- Returns:
- The UnitEventForCurrentState value
initialize
public void initialize(int initialState)
- Description of the Method
- Overrides:
initialize
in class Automaton
- Parameters:
initialState
- Description of Parameter
update
public AutomatonReturn update(int[][] neighourStates)
- Description of the Method
- Overrides:
update
in class Automaton
- Parameters:
neighourStates
- Description of Parameter- Returns:
- Description of the Returned Value
handleEvent
public AutomatonReturn handleEvent(AutomatonEvent event)
- Description of the Method
- Overrides:
handleEvent
in class Automaton
- Parameters:
event
- Description of Parameter- Returns:
- Description of the Returned Value
setColor
private void setColor(int state)
- Sets the Color attribute of the AutomatonImpl object
- Parameters:
state
- The new Color value
fireReturn
private AutomatonReturn fireReturn(int[][] neighbourStates)
- Description of the Method
- Parameters:
neighbourStates
- Description of Parameter- Returns:
- Description of the Returned Value
checkNeighbourstatesForState
private boolean checkNeighbourstatesForState(int[][] neighbourStates,
int checkState)
- Description of the Method
- Parameters:
neighbourStates
- Description of ParametercheckState
- Description of Parameter- Returns:
- Description of the Returned Value