Packagestencyl.api.engine.tile
Classpublic class Tileset
InheritanceTileset Inheritance Resource Inheritance Object



Public Properties
 PropertyDefined By
  framesAcross : Number
Tileset
  framesDown : Number
Tileset
 InheritedID : uint
Resource
 Inheritedname : String
Resource
  pixels : BitmapData
Tileset
  tiles : Array
Tileset
Public Methods
 MethodDefined By
  
Tileset(ID:uint, name:String, framesAcross:Number, framesDown:Number, tiles:Array, imgData:*)
Tileset
  
getImageSourceForTile(tileID:uint, tileWidth:Number, tileHeight:Number):Rectangle
Tileset
 Inherited
toString():String
Resource
Property Detail
framesAcrossproperty
public var framesAcross:Number

framesDownproperty 
public var framesDown:Number

pixelsproperty 
public var pixels:BitmapData

tilesproperty 
public var tiles:Array

Constructor Detail
Tileset()Constructor
public function Tileset(ID:uint, name:String, framesAcross:Number, framesDown:Number, tiles:Array, imgData:*)



Parameters
ID:uint
 
name:String
 
framesAcross:Number
 
framesDown:Number
 
tiles:Array
 
imgData:*
Method Detail
getImageSourceForTile()method
public function getImageSourceForTile(tileID:uint, tileWidth:Number, tileHeight:Number):Rectangle

Parameters

tileID:uint
 
tileWidth:Number
 
tileHeight:Number

Returns
Rectangle