| Package | com.pblabs.rendering2D.spritesheet |
| Class | public class CellCountDivider |
| Inheritance | CellCountDivider Object |
| Implements | ISpriteSheetDivider |
| Property | Defined By | ||
|---|---|---|---|
| frameCount : int [read-only]
How many frames are in this sprite sheet?
| CellCountDivider | ||
| owningSheet : SpriteSheetComponent [write-only]
Many times you want to infer information about frames based on data
from the sprite sheet. | CellCountDivider | ||
| xCount : int = 1
The number of cells in the x direction. | CellCountDivider | ||
| yCount : int = 1
The number of cells in the y direction. | CellCountDivider | ||
| Method | Defined By | ||
|---|---|---|---|
The MultiSpriteSheetHelper has to be able to clone dividers. | CellCountDivider | ||
getFrameArea(index:int):Rectangle
Return the size of a frame, given the desired index and the source
image's dimensions. | CellCountDivider | ||
| frameCount | property |
frameCount:int [read-only] How many frames are in this sprite sheet?
public function get frameCount():int| owningSheet | property |
owningSheet:SpriteSheetComponent [write-only] Many times you want to infer information about frames based on data from the sprite sheet. When the divider is assigned to a sprite sheet, the sprite sheet passes itself to OwningSheet so you can store it and get information from it.
public function set owningSheet(value:SpriteSheetComponent):void| xCount | property |
public var xCount:int = 1The number of cells in the x direction.
| yCount | property |
public var yCount:int = 1The number of cells in the y direction.
| clone | () | method |
public function clone():ISpriteSheetDividerThe MultiSpriteSheetHelper has to be able to clone dividers. So we have a Clone method.
ReturnsISpriteSheetDivider |
| getFrameArea | () | method |
public function getFrameArea(index:int):RectangleReturn the size of a frame, given the desired index and the source image's dimensions.
Parameters
index:int |
Rectangle |