Package | net.flashpunk.masks |
Class | public class Hitbox |
Inheritance | Hitbox Mask Object |
Subclasses | Grid, Masklist, Pixelmask |
Property | Defined By | ||
---|---|---|---|
height : int
Height. | Hitbox | ||
list : Masklist
The parent Masklist of the mask. | Mask | ||
parent : Entity
The parent Entity of this mask. | Mask | ||
width : int
Width. | Hitbox | ||
x : int
X offset. | Hitbox | ||
y : int
Y offset. | Hitbox |
Method | Defined By | ||
---|---|---|---|
Hitbox(width:uint = 1, height:uint = 1, x:int = 0, y:int = 0)
Constructor. | Hitbox | ||
Checks for collision with another Mask. | Mask | ||
renderDebug(g:Graphics):void Used to render debug information in console. | Mask | ||
update():void [override] | Hitbox |
height | property |
height:int
Height.
public function get height():int
public function set height(value:int):void
width | property |
width:int
Width.
public function get width():int
public function set width(value:int):void
x | property |
x:int
X offset.
public function get x():int
public function set x(value:int):void
y | property |
y:int
Y offset.
public function get y():int
public function set y(value:int):void
Hitbox | () | Constructor |
public function Hitbox(width:uint = 1, height:uint = 1, x:int = 0, y:int = 0)
Constructor.
Parameterswidth:uint (default = 1 ) — Width of the hitbox.
| |
height:uint (default = 1 ) — Height of the hitbox.
| |
x:int (default = 0 ) — X offset of the hitbox.
| |
y:int (default = 0 ) — Y offset of the hitbox.
|
update | () | method |
override public function update():void