| Trees | Index | Help |
|
|---|
| Package svs_simulation :: Package ai_lib :: Module goals :: Class Goal |
|
| Method Summary | |
|---|---|
__init__(self,
goalType,
owner)
| |
Logic to run when the goal is activated. | |
Reactivates the goal if Goal.status is
goal_state.INACTIVE. | |
Adds new subgoal. | |
Handles events from game system. | |
hasFailed(self)
| |
isActive(self)
| |
isComplete(self)
| |
isInactive(self)
| |
Logic to run each update-step. | |
If Goal.status is goal_state.FAILED this
method sets it to inactive so that the goal will be reactivated
(replanned) on the next update-step. | |
Logic to run prior to the goal's destruction. | |
| Method Details |
|---|
activate(self)Logic to run when the goal is activated. |
activateIfInactive(self)Reactivates the goal ifGoal.status is
goal_state.INACTIVE.
|
addSubgoal(self, subgoal)Adds new subgoal. |
handleEvent(self, event)Handles events from game system. |
process(self)Logic to run each update-step. |
reactivateIfFailed(self)IfGoal.status is goal_state.FAILED this
method sets it to inactive so that the goal will be reactivated
(replanned) on the next update-step.
|
terminate(self)Logic to run prior to the goal's destruction. |
| Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Thu Oct 20 15:30:27 2005 | http://epydoc.sf.net |