Package svs_simulation :: Package ai_lib :: Module goals :: Class Goal
[show private | hide private]
[frames | no frames]

Class Goal


Generic goal.
Method Summary
  __init__(self, goalType, owner)
  activate(self)
Logic to run when the goal is activated.
  activateIfInactive(self)
Reactivates the goal if Goal.status is goal_state.INACTIVE.
  addSubgoal(self, subgoal)
Adds new subgoal.
  handleEvent(self, event)
Handles events from game system.
  hasFailed(self)
  isActive(self)
  isComplete(self)
  isInactive(self)
  process(self)
Logic to run each update-step.
  reactivateIfFailed(self)
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.
  terminate(self)
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 if Goal.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)

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.

terminate(self)

Logic to run prior to the goal's destruction.

Generated by Epydoc 2.1 on Thu Oct 20 15:30:27 2005 http://epydoc.sf.net