Class cocos.actions.instant_actions.CallFuncS

    base_actions.Action --+            
                          |            
base_actions.IntervalAction --+        
                              |        
     base_actions.InstantAction --+    
                                  |    
                           CallFunc --+
                                      |
                                     CallFuncS

An action that will call a funtion with the target as the first argument

Example:

def my_func( sprite ):
    print "hello baby"

action = CallFuncS( my_func )
sprite.do( action )

Methods

  start(self)
Here we must do out stuff
  __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)
  __deepcopy__(self, memo) (Inherited from cocos.actions.instant_actions.CallFunc)
  __init__(self, *args, **kwargs)
dont override - use init
(Inherited from cocos.actions.base_actions.InstantAction)
  __mul__(self, other) (Inherited from cocos.actions.base_actions.InstantAction)
  __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.instant_actions.CallFunc)
  done(self)
When in the worker role, this method is reliable.
(Inherited from cocos.actions.base_actions.InstantAction)
  init(self, func, *args, **kwargs)
Gets called by __init__ with all the parameteres received, At this time the target for the action is unknown.
(Inherited from cocos.actions.instant_actions.CallFunc)
  step(self, dt)
does nothing - dont override
(Inherited from cocos.actions.base_actions.InstantAction)
  stop(self)
does nothing - dont override
(Inherited from cocos.actions.base_actions.InstantAction)
  update(self, t)
does nothing - dont override
(Inherited from cocos.actions.base_actions.InstantAction)

Instance Variables

  target
CocosNode object that is the target of the action
(Inherited from cocos.actions.base_actions.Action)

Method Details

start

start(self)
Here we must do out stuff
Overrides:
CallFunc.start