Package pygext :: Package gl :: Package director :: Module actions :: Class Action
[frames | no frames]

Type Action

object --+
         |
        Action

Known Subclasses:
Animate, Blink, CallFunc, Delay, Delete, Fork, Hide, IntervalAction, Move, MoveForward, Repeat, Rotate, SetAttr, SetScene, SetState, Show, TickFunc

Abstract base class for actions
Method Summary
  __init__(self, *arg, **kw)
  __add__(self, action)
  __iadd__(self, action)
  __radd__(self, action)
  __repr__(self)
  abort(self)
End this action immediately and do NOT continue to the next in chain.
  action(self)
Called once per tick to perform the action action.
  chain(self, action, **kw)
Chain a new action that will be started when this action ends.
  cleanup(self)
Called when the action ends.
  do(self, entity, **kw)
Perform this action for an entity or node.
  end(self)
End this action and proceed to the next one in chain.
  endwith(self, action)
Limit this action by another action.
  init(self)
Called when the action object is created.
  limit(self, time, area)
Set the ending criteria fod this action.
  start(self)
Called when the action is initiated on an entity.
  tick(self)

Method Details

abort(self)

End this action immediately and do NOT continue to the next in chain.

action(self)

Called once per tick to perform the action action. Override in subclass.

chain(self, action, **kw)

Chain a new action that will be started when this action ends.

cleanup(self)

Called when the action ends. Override in a subclass.

do(self, entity=None, **kw)

Perform this action for an entity or node.

This method creates a copy of the Action object and attatches it to the given entity. The copied Action is also registered to the global Director so that it will be called each frame.

@return the copied Action attatched to the Entity

end(self)

End this action and proceed to the next one in chain.

endwith(self, action)

Limit this action by another action.

This method links this action to the given action so that as soon as the target action ends, this action will end too.

init(self)

Called when the action object is created. Override in subclass.

limit(self, time=None, area=None)

Set the ending criteria fod this action.

This method will set a time or area limit for the action. The time limit is given in seconds, and the area is a rect-style object that triggers action.end() if the entity attatched to the action leaves the rect.

start(self)

Called when the action is initiated on an entity. Override in subclass.

Generated by Epydoc 2.1 on Mon Jun 12 18:21:20 2006 http://epydoc.sf.net