evolution.actions
Class GeoInvestigation

evolution.actions.Action
  |
  +--evolution.actions.GeoInvestigation

public class GeoInvestigation
extends Action

Investigate a land for coals.


Method Summary
 protected void_perform(Human human)
          Extra things which should be done when this action's perform method is called.
 protected booleancanBePerformedOn(SquareOfLand square)
          Checks whether this action can be performed on the given square of land.
 protected voiddoChecks(Human human)
          Checks if tha action "geo-investigation" can be performed by the human on the selected square of land.
 protected intgetRevealed(String resourceName)
          Return the percentage of how much the given resource is revealed
 protected booleanisRevealed(SquareOfLand square)
          Checks whether this square of land has already revealed if there are coals under the ground or not.
 protected booleansetRevealed(String resourceName, int rev)
          Set the percentage of how much the given resource is revealed

Methods inherited from class evolution.actions.Action
calculateSquareValue, findSquare, getName, getProducesLandResources, getProducesResources, getUsesLandResources, getUsesResources, hasEnoughResources, isEnergyBufferAction, modifyLandResources, modifyResources, perform, performEnergyBuffer

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.

canBePerformedOn

protected boolean canBePerformedOn(SquareOfLand square)
Checks whether this action can be performed on the given square of land.

doChecks

protected void doChecks(Human human)
throws evolution.resources.NotEnoughResourcesException,
IllegalLandTypeException,
evolution.lands.NotEnoughLandResourcesException
Checks if tha action "geo-investigation" can be performed by the human on the selected square of land. If not, some exception will be thrown.

getRevealed

protected int getRevealed(String resourceName)
Return the percentage of how much the given resource is revealed

isRevealed

protected boolean isRevealed(SquareOfLand square)
Checks whether this square of land has already revealed if there are coals under the ground or not.

setRevealed

protected boolean setRevealed(String resourceName, int rev)
Set the percentage of how much the given resource is revealed

Association Links

to Class java.util.Map

A map that contains as key the name of a landresource and as value a percentage of how much that resource is revealed.

a gvijf production