Class cc.GridBase

Class Summary
Constructor Attributes Constructor Name and Description
 
Base class for cc.Grid

Method Summary

Class Detail

cc.GridBase()
Base class for cc.Grid

Method Detail

  • <static> {cc.GridBase} cc.GridBase.create(gridSize, texture, flipped)
    create one cc.GridBase Object
    Parameters:
    {cc.Size} gridSize
    {cc.Texture2D} texture Optional
    {Boolean} flipped Optional
    Returns:
    {cc.GridBase}
  • {cc.Size} getGridSize()
    get size of the grid
    Returns:
    {cc.Size}
  • {Number} getReuseGrid()
    get number of times that the grid will be reused
    Returns:
    {Number}
  • {cc.Point} getStep()
    get pixels between the grids
    Returns:
    {cc.Point}
  • {boolean} initWithSize(gridSize, texture, flipped)
    Parameters:
    {cc.Size} gridSize
    {cc.Texture2D} texture Optional
    {Boolean} flipped Optional, Default: false
    Returns:
    {boolean}
  • {Boolean} isActive()
    whether or not the grid is active
    Returns:
    {Boolean}
  • {Boolean} isTextureFlipped()
    get wheter or not the texture is flipped
    Returns:
    {Boolean}
  • setActive(active)
    whether or not the grid is active
    Parameters:
    {Number} active
  • setGridSize(gridSize)
    set size of the grid
    Parameters:
    {cc.Size} gridSize
  • setReuseGrid(reuseGrid)
    set number of times that the grid will be reused
    Parameters:
    reuseGrid
  • setStep(step)
    set pixels between the grids
    Parameters:
    {cc.Point} step
  • setTextureFlipped(flipped)
    set wheter or not the texture is flipped
    Parameters:
    {Boolean} flipped