Home | Trees | Index | Help |
|
---|
Package pygext :: Package gl :: Package director :: Module actions :: Class Action |
|
object
--+
|
Action
Animate
,
Blink
,
CallFunc
,
Delay
,
Delete
,
Fork
,
Hide
,
IntervalAction
,
Move
,
MoveForward
,
Repeat
,
Rotate
,
SetAttr
,
SetScene
,
SetState
,
Show
,
TickFunc
Method Summary | |
---|---|
__init__(self,
*arg,
**kw)
| |
__add__(self,
action)
| |
__iadd__(self,
action)
| |
__radd__(self,
action)
| |
__repr__(self)
| |
End this action immediately and do NOT continue to the next in chain. | |
Called once per tick to perform the action action. | |
Chain a new action that will be started when this action ends. | |
Called when the action ends. | |
Perform this action for an entity or node. | |
End this action and proceed to the next one in chain. | |
Limit this action by another action. | |
Called when the action object is created. | |
Set the ending criteria fod this action. | |
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. |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Mon Jun 12 18:21:20 2006 | http://epydoc.sf.net |