Trees | Indices | Toggle frames |
---|
base_actions.Action --+ | Move --+ | WrappedMove
Move the target but wrap position when it hits certain bounds.
Wrap occurs outside of 0 < x < width and 0 < y < height taking into account the dimenstions of the target.
init(self,
width,
height)
Init method.
|
|
step(self,
dt)
Gets called every frame.
|
|
__add__(self,
action)
sequence operator - concatenates actions
action1 + action2 -> action_result
where action_result performs as:
first do all that action1 would do; then
perform all that action2 would do
(Inherited from cocos.actions.base_actions.Action)
|
|
__init__(self,
*args,
**kwargs)
dont override - use init
(Inherited from cocos.actions.base_actions.Action)
|
|
__mul__(self,
other)
repeats ntimes the action
action * n -> action_result
where action result performs as:
repeat n times the changes that action would do
(Inherited from cocos.actions.base_actions.Action)
|
|
__or__(self,
action)
spawn operator - runs two actions in parallel
action1 | action2 -> action_result
(Inherited from cocos.actions.base_actions.Action)
|
|
__reversed__(self) (Inherited from cocos.actions.base_actions.Action) | |
done(self)
False while the step method must be called.
(Inherited from cocos.actions.base_actions.Action)
|
|
start(self)
External code sets self.target and then calls this method.
(Inherited from cocos.actions.base_actions.Action)
|
|
stop(self)
When the action must cease to perform this function is called by
external code; after this call no other method should be called.
(Inherited from cocos.actions.base_actions.Action)
|
target
CocosNode object that is the target of the action
(Inherited from cocos.actions.base_actions.Action)
|
dt
is the number of seconds that elapsed
since the last call.
Trees | Indices | Toggle frames |
---|
Generated by Epydoc 3.0beta1 on Wed Jul 07 22:46:49 2010 | http://epydoc.sourceforge.net |