Class cc.GridAction

Class Summary
Constructor Attributes Constructor Name and Description
 
Base class for Grid actions

Method Summary

Class Detail

cc.GridAction()
Base class for Grid actions

Method Detail

  • <static> {cc.GridAction} cc.GridAction.create(duration, gridSize)
    creates the action with size and duration
    Parameters:
    {Number} duration
    {cc.Size} gridSize
    Returns:
    {cc.GridAction}
  • {cc.GridBase} getGrid()
    returns the grid
    Returns:
    {cc.GridBase}
  • {Boolean} initWithDuration(duration, gridSize)
    initializes the action with size and duration
    Parameters:
    {Number} duration
    {cc.Size} gridSize
    Returns:
    {Boolean}
  • {*} originalVertex(position)
    returns the non-transformed vertex than belongs to certain position in the grid
    Parameters:
    {cc.Point} position
    Returns:
    {*}
  • setVertex(position, vertex)
    sets a new vertex to a certain position of the grid
    Parameters:
    {cc.Point} position
    {cc.Vertex3F} vertex
  • {cc.Vertex3F} vertex(position)
    returns the vertex than belongs to certain position in the grid
    Parameters:
    {cc.Point} position
    Returns:
    {cc.Vertex3F}