| Package | com.whirled.contrib.platformer.display |
| Class | public class BitmapSectionalLayer |
| Inheritance | BitmapSectionalLayer PieceSpriteLayer Layer flash.display.Sprite |
| Property | Defined by | ||
|---|---|---|---|
| didPreload : Boolean [static]
| BitmapSectionalLayer | ||
![]() | displayCount : int | Layer | |
| Property | Defined by | ||
|---|---|---|---|
| _bd : BitmapData | BitmapSectionalLayer | ||
| _deltaX : int | BitmapSectionalLayer | ||
| _deltaY : int | BitmapSectionalLayer | ||
| _hasPieces : Boolean | BitmapSectionalLayer | ||
| _missedPreload : int | BitmapSectionalLayer | ||
| _oldnX : int = -1 | BitmapSectionalLayer | ||
| _oldnY : int = -1 | BitmapSectionalLayer | ||
| _pool : BitmapPool | BitmapSectionalLayer | ||
| _preload : int | BitmapSectionalLayer | ||
| _rect : Rect | BitmapSectionalLayer | ||
| _sections : Object | BitmapSectionalLayer | ||
| _sindex : SectionalIndex | BitmapSectionalLayer | ||
![]() | _snapToPixel : Boolean = true Set to true and all coordinates will be floored.
| Layer | |
| Method | Defined by | ||
|---|---|---|---|
|
BitmapSectionalLayer(secWidth:int, secHeight:int, doPreload:Boolean = false)
| BitmapSectionalLayer | ||
|
addPieceSprite(ps:PieceSprite):void
| BitmapSectionalLayer | ||
|
clear():void
| BitmapSectionalLayer | ||
|
showSectionData():void
| BitmapSectionalLayer | ||
|
shutdown():void
| BitmapSectionalLayer | ||
|
update(nX:Number, nY:Number, scale:Number = 1):void
| BitmapSectionalLayer | ||
| Method | Defined by | ||
|---|---|---|---|
|
calcDist(x:int, y:int):int
| BitmapSectionalLayer | ||
|
checkSegments(dir:int):Boolean
| BitmapSectionalLayer | ||
|
generateBitmap(idx:int, bd:BitmapData):void
| BitmapSectionalLayer | ||
| BitmapSectionalLayer | |||
|
preload(force:Boolean = false):void
| BitmapSectionalLayer | ||
|
preloadSegment(xx:int, yy:int):Boolean
| BitmapSectionalLayer | ||
| Constant | Defined by | ||
|---|---|---|---|
| PRELOAD_RATE : int = 3 [static]
| BitmapSectionalLayer | ||
| _bd | property |
protected var _bd:BitmapData
| _deltaX | property |
protected var _deltaX:int
| _deltaY | property |
protected var _deltaY:int
| didPreload | property |
public static var didPreload:Boolean
| _hasPieces | property |
protected var _hasPieces:Boolean
| _missedPreload | property |
protected var _missedPreload:int
| _oldnX | property |
protected var _oldnX:int = -1
| _oldnY | property |
protected var _oldnY:int = -1
| _pool | property |
protected var _pool:BitmapPool
| _preload | property |
protected var _preload:int
| _rect | property |
protected var _rect:Rect
| _sections | property |
protected var _sections:Object
| _sindex | property |
protected var _sindex:SectionalIndex
| BitmapSectionalLayer | () | constructor |
public function BitmapSectionalLayer(secWidth:int, secHeight:int, doPreload:Boolean = false)Parameters
secWidth:int |
|
secHeight:int |
|
doPreload:Boolean (default = false) |
| addPieceSprite | () | method |
| calcDist | () | method |
protected function calcDist(x:int, y:int):intParameters
x:int |
|
y:int |
int |
| checkSegments | () | method |
protected function checkSegments(dir:int):BooleanParameters
dir:int |
Boolean |
| clear | () | method |
public override function clear():void
| generateBitmap | () | method |
protected function generateBitmap(idx:int, bd:BitmapData):voidParameters
idx:int |
|
bd:BitmapData |
| heuristic | () | method |
protected function heuristic(current:PoolCache, test:PoolCache):BooleanParameters
current:PoolCache |
|
test:PoolCache |
Boolean |
| preload | () | method |
protected function preload(force:Boolean = false):voidParameters
force:Boolean (default = false) |
| preloadSegment | () | method |
protected function preloadSegment(xx:int, yy:int):BooleanParameters
xx:int |
|
yy:int |
Boolean |
| showSectionData | () | method |
public function showSectionData():void
| shutdown | () | method |
public override function shutdown():void
| update | () | method |
public override function update(nX:Number, nY:Number, scale:Number = 1):voidParameters
nX:Number |
|
nY:Number |
|
scale:Number (default = 1) |
| PRELOAD_RATE | constant |
protected static const PRELOAD_RATE:int = 3