Class cocos.actions.basegrid_actions.Grid3DAction

             object --+            
                      |            
    base_actions.Action --+        
                          |        
base_actions.IntervalAction --+    
                              |    
                 GridBaseAction --+
                                  |
                                 Grid3DAction
Action that does transformations to a 3D grid ( Grid3D )

Methods

  get_grid(self)
(float, float, float) get_vertex(self, x, y)
Get the current vertex coordinate
(float, float, float) get_original_vertex(self, x, y)
Get the original vertex coordinate.
  set_vertex(self, x, y, v)
Set a vertex point is a certain value
  __reversed__(self) (Inherited from cocos.actions.basegrid_actions.GridBaseAction)
  init(self, grid=(4,4), duration=5)
Initialize the Grid Action
(Inherited from cocos.actions.basegrid_actions.GridBaseAction)
  start(self)
Before we start executing an action, self.target is assigned and this method is called.
(Inherited from cocos.actions.basegrid_actions.GridBaseAction)
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

get_vertex

get_vertex(self, x, y)
Get the current vertex coordinate
Parameters:
x : int
x-vertex
y : int
y-vertex
Returns: (float, float, float)

get_original_vertex

get_original_vertex(self, x, y)
Get the original vertex coordinate. The original vertices are the ones weren't modified by the current action.
Parameters:
x : int
x-vertex
y : int
y-vertex
Returns: (float, float, float)

set_vertex

set_vertex(self, x, y, v)
Set a vertex point is a certain value
Parameters:
x : int
x-vertex
y : int
y-vertex
v : (float, float, float)
tuple value for the vertex