Packagecom.whirled.contrib.platformer.piece
Classpublic class BoundedPiece
InheritanceBoundedPiece Inheritance Piece

A piece that has a bounding polygon.



Public Properties
 PropertyDefined by
 Inheritedheight : int
The piece size.
Piece
 Inheritedid : int
The piece id.
Piece
 InheritednudgeH : Boolean
Piece
 InheritednudgeW : Boolean
Piece
 InheritednudgeX : Boolean
The piece sprite bound offsets.
Piece
 InheritednudgeY : Boolean
Piece
 Inheritedorient : int
The orientation.
Piece
 InheritedsHeight : int
Piece
 Inheritedsprite : String = ""
The piece sprite name.
Piece
 InheritedsWidth : int
Piece
 InheritedsX : int
Piece
 InheritedsY : int
Piece
 Inheritedtype : String = ""
The piece type.
Piece
 Inheritedwidth : int
Piece
 Inheritedx : int
The piece coordinates.
Piece
 Inheritedy : int
Piece
Protected Properties
 PropertyDefined by
  _boundPts : Array
BoundedPiece
  _boundSides : Array
BoundedPiece
Public Methods
 MethodDefined by
  
BoundedPiece(defxml:XML = null, insxml:XML = null)
BoundedPiece
  
getBound(side:int):int
BoundedPiece
  
getBoundLine(side:int):Array
BoundedPiece
  
getBounds():Array
BoundedPiece
 Inherited
Get the editable attributes.
Piece
  
numBounds():int
BoundedPiece
 Inherited
setXMLEditables(xml:XML):void
Piece
 Inherited
toString():String
Piece
  
xmlDef():XML
BoundedPiece
 Inherited
Get the XML instance definition.
Piece
Property detail
_boundPtsproperty
protected var _boundPts:Array
_boundSidesproperty 
protected var _boundSides:Array
Constructor detail
BoundedPiece()constructor
public function BoundedPiece(defxml:XML = null, insxml:XML = null)Parameters
defxml:XML (default = null)
 
insxml:XML (default = null)
Method detail
getBound()method
public function getBound(side:int):intParameters
side:int

Returns
int
getBoundLine()method 
public function getBoundLine(side:int):ArrayParameters
side:int

Returns
Array
getBounds()method 
public function getBounds():Array

Returns
Array
numBounds()method 
public function numBounds():int

Returns
int
xmlDef()method 
public override function xmlDef():XML

Returns
XML