Package horizons :: Package ai :: Package aiplayer :: Package goal :: Module donothing :: Class DoNothingGoal
[hide private]
[frames] | no frames]

Class DoNothingGoal

source code

Goal --+
       |
      DoNothingGoal

This goal makes the AI not do anything during a tick.

Instance Methods [hide private]
 
get_personality_name(self)
Return the name of the goal's personality module.
source code
 
priority(self) source code
 
active(self)
Return True if and only if it is ok to execute this goal.
source code
 
update(self)
whether to do nothing and if so then how important it is
source code
 
execute(self)
Do whatever is best to get closer to fulfilling the goal (usually involves building a building).
source code
    Inherited from Goal
 
__init__(self, owner) source code
 
__lt__(self, other) source code
 
__str__(self) source code
 
can_be_activated(self)
Return True if and only if it is ok to update this goal.
source code
Class Methods [hide private]
    Inherited from Goal
 
_translate_build_result(cls, result)
Returns the goal execution state that corresponds to the given BUILD_RESULT constant.
source code
Class Variables [hide private]
    Inherited from Goal
  log = logging.getLogger("ai.aiplayer.goal")
Method Details [hide private]

get_personality_name(self)

source code 

Return the name of the goal's personality module.

Overrides: Goal.get_personality_name
(inherited documentation)

priority(self)

source code 
Decorators:
  • @property
Overrides: Goal.priority

active(self)

source code 

Return True if and only if it is ok to execute this goal.

Decorators:
  • @property
Overrides: Goal.active
(inherited documentation)

update(self)

source code 

whether to do nothing and if so then how important it is

Overrides: Goal.update

execute(self)

source code 

Do whatever is best to get closer to fulfilling the goal (usually involves building a building).

Overrides: Goal.execute
(inherited documentation)