Class cocos.actions.instant_actions.CallFuncS

            object --+            
                     |            
   base_actions.Action --+        
                         |        
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
  __deepcopy__(self, memo) (Inherited from cocos.actions.instant_actions.CallFunc)
  __reversed__(self) (Inherited from cocos.actions.instant_actions.CallFunc)
  init(self, func, *args, **kwargs)
Gets called at initialization time, before a target is defined
(Inherited from cocos.actions.instant_actions.CallFunc)
Inherited from base_actions.InstantAction: done, update Inherited from base_actions.Action: __add__, __init__, __mul__, __or__, step, stop Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties

Inherited from object: __class__

Instance Variables

Inherited from base_actions.Action: target

Class Variables

Inherited from base_actions.InstantAction: duration

Method Details

start

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