evolution.actions
Class SimpleAction
evolution.actions.Action
|
+--evolution.actions.SimpleAction
- public class SimpleAction
- extends Action
SimpleAction represents all actions for which no extra code
should be written to define the behaviour.
Constructor Summary |
SimpleAction(String actionName) Constructor of a simple action. |
Method Summary |
protected void | _perform(Human human) Extra things which should be done when this action's perform
method is called. |
String | getName() Return the name of this simple action. |
protected void | setName(String actionName) Set the name of this simple action. |
Methods inherited from class evolution.actions.Action |
calculateSquareValue, canBePerformedOn, doChecks, findSquare, getProducesLandResources, getProducesResources, getUsesLandResources, getUsesResources, hasEnoughResources, isEnergyBufferAction, modifyLandResources, modifyResources, perform, performEnergyBuffer |
SimpleAction
public SimpleAction(String actionName)
- Constructor of a simple action.
_perform
protected void _perform(Human human)
throws evolution.resources.NotEnoughResourcesException,
IllegalLandTypeException,
evolution.lands.NotEnoughLandResourcesException
- Extra things which should be done when this action's perform
method is called.
Template method.
getName
public String getName()
- Return the name of this simple action.
setName
protected void setName(String actionName)
- Set the name of this simple action.
to Class java.lang.String- The name of this simple action.