| Package | com.whirled.contrib.platformer.piece |
| Class | public class Piece |
| Subclasses | BoundedPiece |
| Property | Defined by | ||
|---|---|---|---|
| height : int The piece size.
| Piece | ||
| id : int The piece id.
| Piece | ||
| nudgeH : Boolean | Piece | ||
| nudgeW : Boolean | Piece | ||
| nudgeX : Boolean The piece sprite bound offsets.
| Piece | ||
| nudgeY : Boolean | Piece | ||
| orient : int The orientation.
| Piece | ||
| sHeight : int [read-only]
| Piece | ||
| sprite : String = "" The piece sprite name.
| Piece | ||
| sWidth : int [read-only]
| Piece | ||
| sX : int [read-only]
| Piece | ||
| sY : int [read-only]
| Piece | ||
| type : String = "" The piece type.
| Piece | ||
| width : int | Piece | ||
| x : int The piece coordinates.
| Piece | ||
| y : int | Piece | ||
| Method | Defined by | ||
|---|---|---|---|
|
Piece(defxml:XML = null, insxml:XML = null)
| Piece | ||
|
getXMLEditables():XML
Get the editable attributes.
| Piece | ||
|
setXMLEditables(xml:XML):void
| Piece | ||
|
toString():String
| Piece | ||
|
xmlDef():XML
Get the XML piece definition.
| Piece | ||
|
xmlInstance():XML
Get the XML instance definition.
| Piece | ||
| height | property |
public var height:intThe piece size.
| id | property |
public var id:intThe piece id.
| nudgeH | property |
public var nudgeH:Boolean
| nudgeW | property |
public var nudgeW:Boolean
| nudgeX | property |
public var nudgeX:BooleanThe piece sprite bound offsets.
| nudgeY | property |
public var nudgeY:Boolean
| orient | property |
public var orient:intThe orientation.
| sHeight | property |
sHeight:int [read-only]Implementation
public function get sHeight():int
| sprite | property |
public var sprite:String = ""The piece sprite name.
| sWidth | property |
sWidth:int [read-only]Implementation
public function get sWidth():int
| sX | property |
sX:int [read-only]Implementation
public function get sX():int
| sY | property |
sY:int [read-only]Implementation
public function get sY():int
| type | property |
public var type:String = ""The piece type.
| width | property |
public var width:int
| x | property |
public var x:intThe piece coordinates.
| y | property |
public var y:int
| Piece | () | constructor |
public function Piece(defxml:XML = null, insxml:XML = null)Parameters
defxml:XML (default = null) |
|
insxml:XML (default = null) |
| getXMLEditables | () | method |
public function getXMLEditables():XMLGet the editable attributes.
ReturnsXML |
| setXMLEditables | () | method |
public function setXMLEditables(xml:XML):voidParameters
xml:XML |
| toString | () | method |
public function toString():String
Returns
String |
| xmlDef | () | method |
public function xmlDef():XMLGet the XML piece definition.
ReturnsXML |
| xmlInstance | () | method |
public function xmlInstance():XMLGet the XML instance definition.
ReturnsXML |