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

Class CompositeGoal


A compiste goal has subgoals which it processes as part of its own behaviour.
Method Summary
  __init__(self)
  activate(self)
Logic to run when the goal is activated.
  addSubgoal(self, subgoal)
Adds new subgoal.
  forwardEventToFrontSubgoal(self, event)
Passes the message to the goal at the front of the queue
  handleEvent(self, event)
Handles event from game system.
  process(self)
Logic to run each update-step.
  processSubgoals()
Processes subgoals.
  removeAllSubgoals(self)
Clears all subgoals.
  terminate(self)
Logic to run prior to the goal's destruction.

Method Details

activate(self)

Logic to run when the goal is activated.

addSubgoal(self, subgoal)

Adds new subgoal.

forwardEventToFrontSubgoal(self, event)

Passes the message to the goal at the front of the queue

handleEvent(self, event)

Handles event from game system.

process(self)

Logic to run each update-step.

processSubgoals()

Processes subgoals.

removeAllSubgoals(self)

Clears all subgoals.

terminate(self)

Logic to run prior to the goal's destruction.

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