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.
 StringgetName()
          Return the name of this simple action.
 protected voidsetName(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

Constructor Detail

SimpleAction

public SimpleAction(String actionName)
Constructor of a simple action.
Method Detail

_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.

Association Links

to Class java.lang.String

The name of this simple action.

a gvijf production