Package | net.flashpunk.masks |
Class | public class Masklist |
Inheritance | Masklist Hitbox Mask Object |
Property | Defined By | ||
---|---|---|---|
count : uint [read-only]
Amount of Masks in the list. | Masklist | ||
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 | ||
---|---|---|---|
Masklist(... mask)
Constructor. | Masklist | ||
Adds a Mask to the list. | Masklist | ||
[override] | Masklist | ||
Checks for collision with another Mask. | Mask | ||
Gets a Mask from the list. | Masklist | ||
Removes the Mask from the list. | Masklist | ||
removeAll():void
Removes all Masks from the list. | Masklist | ||
removeAt(index:uint = 0):void
Removes the Mask at the index. | Masklist | ||
renderDebug(g:Graphics):void [override] Used to render debug information in console. | Masklist | ||
update():void [override] | Masklist |
count | property |
count:uint
[read-only] Amount of Masks in the list.
public function get count():uint
Masklist | () | Constructor |
public function Masklist(... mask)
Constructor.
Parameters... mask — Masks to add to the list.
|
add | () | method |
public function add(mask:Mask):Mask
Adds a Mask to the list.
Parameters
mask:Mask — The Mask to add.
|
Mask — The added Mask.
|
assignTo | () | method |
getMask | () | method |
public function getMask(index:uint = 0):Mask
Gets a Mask from the list.
Parameters
index:uint (default = 0 ) — The Mask index.
|
Mask — The Mask at the index.
|
remove | () | method |
public function remove(mask:Mask):Mask
Removes the Mask from the list.
Parameters
mask:Mask — The Mask to remove.
|
Mask — The removed Mask.
|
removeAll | () | method |
public function removeAll():void
Removes all Masks from the list.
removeAt | () | method |
public function removeAt(index:uint = 0):void
Removes the Mask at the index.
Parameters
index:uint (default = 0 ) — The Mask index.
|
renderDebug | () | method |
override public function renderDebug(g:Graphics):void
Used to render debug information in console.
Parameters
g:Graphics |
update | () | method |
override public function update():void