Packagestencyl.api.engine.tile
Classpublic class Tile
InheritanceTile Inheritance Object



Public Properties
 PropertyDefined By
  collisionID : Number
Tile
  currFrame : int
Tile
  currTime : Number
Tile
  durations : Array
Tile
  frameIndex : Number
Tile
  frames : Array
Tile
  parent : Tileset
Tile
  pixels : BitmapData
Tile
  tileID : Number
Tile
Public Methods
 MethodDefined By
  
Tile(tileID:Number, collisionID:Number, frameIndex:Number, durations:Array, imgData:*, parent:Tileset)
Tile
  
getSource(tileWidth:Number, tileHeight:Number):Rectangle
Tile
  
toString():String
Tile
  
update():void
Tile
Property Detail
collisionIDproperty
public var collisionID:Number

currFrameproperty 
public var currFrame:int

currTimeproperty 
public var currTime:Number

durationsproperty 
public var durations:Array

frameIndexproperty 
public var frameIndex:Number

framesproperty 
public var frames:Array

parentproperty 
public var parent:Tileset

pixelsproperty 
public var pixels:BitmapData

tileIDproperty 
public var tileID:Number

Constructor Detail
Tile()Constructor
public function Tile(tileID:Number, collisionID:Number, frameIndex:Number, durations:Array, imgData:*, parent:Tileset)



Parameters
tileID:Number
 
collisionID:Number
 
frameIndex:Number
 
durations:Array
 
imgData:*
 
parent:Tileset
Method Detail
getSource()method
public function getSource(tileWidth:Number, tileHeight:Number):Rectangle

Parameters

tileWidth:Number
 
tileHeight:Number

Returns
Rectangle
toString()method 
public function toString():String

Returns
String
update()method 
public function update():void