Class cocos.actions.basegrid_actions.TiledGrid3DAction

             object --+            
                      |            
    base_actions.Action --+        
                          |        
base_actions.IntervalAction --+    
                              |    
                 GridBaseAction --+
                                  |
                                 TiledGrid3DAction
Action that does transformations to a grid composed of tiles ( TiledGrid3D ). You can transform each tile individually

Methods

  get_grid(self)
  set_tile(self, x, y, coords)
Set the 4 tile coordinates
[ float, float, float, float, float, float, float, float, float, float, float, float ] get_original_tile(self, x, y)
Get the 4-original tile coordinates.
[ float, float, float, float, float, float, float, float, float, float, float, float ] get_tile(self, x, y)
Get the current tile coordinates.
  __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

set_tile

set_tile(self, x, y, coords)

Set the 4 tile coordinates

Coordinates positions:

3 <-- 2
      ^
      |
0 --> 1
Parameters:
x : int
x coodinate of the tile
y : int
y coordinate of the tile
coords : [ float, float, float, float, float, float, float, float, float, float, float, float ]
The 4 coordinates in the format (x0, y0, z0, x1, y1, z1,..., x3, y3, z3)

get_original_tile

get_original_tile(self, x, y)

Get the 4-original tile coordinates.

Coordinates positions:

3 <-- 2
      ^
      |
0 --> 1
Parameters:
x : int
x coordinate of the tile
y : int
y coordinate of the tile
Returns:
[ float, float, float, float, float, float, float, float, float, float, float, float ]: The 4 coordinates with the following order: x0, y0, z0, x1, y1, z1,...,x3, y3, z3

get_tile

get_tile(self, x, y)

Get the current tile coordinates.

Coordinates positions:

3 <-- 2
      ^
      |
0 --> 1
Parameters:
x : int
x coordinate of the tile
y : int
y coordinate of the tile
Returns:
[ float, float, float, float, float, float, float, float, float, float, float, float ]: The 4 coordinates with the following order: x0, y0, z0, x1, y1, z1,...,x3, y3, z3