Class cocos.actions.basegrid_actions.GridBaseAction

             object --+        
                      |        
    base_actions.Action --+    
                          |    
base_actions.IntervalAction --+
                              |
                             GridBaseAction
GridBaseAction is the base class of all Grid Actions.

Methods

  init(self, grid=(4,4), duration=5)
Initialize the Grid Action
  start(self)
Before we start executing an action, self.target is assigned and this method is called.
  __reversed__(self)
Inherited from base_actions.IntervalAction: 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

Method Details

init

init(self, grid=(4,4), duration=5)
Initialize the Grid Action
Parameters:
grid : (int,int)
Number of horizontal and vertical quads in the grid
duration : int
Number of seconds that the action will last
Overrides:
base_actions.Action.init

start

start(self)
Before we start executing an action, self.target is assigned and this method is called. It will be called for every execution of the action.
Overrides:
base_actions.Action.start

__reversed__

__reversed__(self)
Overrides:
base_actions.Action.__reversed__