Class cocos.audio.actions.PlayAction

    actions.base_actions.Action --+        
                                  |        
actions.base_actions.IntervalAction --+    
                                      |    
     actions.base_actions.InstantAction --+
                                          |
                                         PlayAction

Methods

  init(self, sound)
Gets called by __init__ with all the parameteres received, At this time the target for the action is unknown.
  start(self)
Here we must do out stuff
  __deepcopy__(self, memo)
  __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.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.base_actions.Action)
  done(self)
When in the worker role, this method is reliable.
(Inherited from cocos.actions.base_actions.InstantAction)
  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

init

init(self, sound)
Gets called by __init__ with all the parameteres received, At this time the target for the action is unknown. Typical use is store parameters needed by the action.
Overrides:
actions.base_actions.Action.init

start

start(self)
Here we must do out stuff
Overrides:
actions.base_actions.InstantAction.start