| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
evolution.actions.Action | +--evolution.actions.Constructing
Construction of a building.
Constructor Summary | |
Constructing() Constructor for the constructing-action. |
Method Summary | |
protected void | _perform(Human human) Extra things which should be done when this action's perform method is called. |
protected boolean | canBePerformedOn(SquareOfLand square) Checks whether this constructing-action can be performed on the given square of land. |
protected void | doChecks(Human human) Checks if this construction-action can be performed by the human on the selected square of land. |
protected Construction | getConstruction() Return the construction of this constructing-action. |
protected Map | getProducesLandResources() Returns a map of the names of landresources that are produced by this constructing-action. |
protected Map | getProducesResources() Returns a map of the names of resources that are produced by this constructing-action. |
protected Map | getUsesLandResources() Returns a map of the names of landresources that are used by this constructing-action. |
protected Map | getUsesResources() Returns a map of the names of resources that are used by this constructing-action. |
protected void | setConstruction(Construction construction) Set the construction of this constructing-action. |
Methods inherited from class evolution.actions.Action |
calculateSquareValue, findSquare, getName, hasEnoughResources, isEnergyBufferAction, modifyLandResources, modifyResources, perform, performEnergyBuffer |
Constructor Detail |
public Constructing()
Method Detail |
protected void _perform(Human human)
throws evolution.resources.NotEnoughResourcesException,
IllegalLandTypeException,
evolution.lands.NotEnoughLandResourcesException
protected boolean canBePerformedOn(SquareOfLand square)
protected void doChecks(Human human)
throws evolution.resources.NotEnoughResourcesException,
IllegalLandTypeException,
evolution.lands.NotEnoughLandResourcesException
protected Construction getConstruction()
protected Map getProducesLandResources()
protected Map getProducesResources()
protected Map getUsesLandResources()
protected Map getUsesResources()
protected void setConstruction(Construction construction)
Association Links |
| a gvijf production | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |