| Package | net.flashpunk |
| Class | public class Mask |
| Inheritance | Mask Object |
| Subclasses | Hitbox |
| Property | Defined By | ||
|---|---|---|---|
| list : Masklist
The parent Masklist of the mask. | Mask | ||
| parent : Entity
The parent Entity of this mask. | Mask | ||
| Method | Defined By | ||
|---|---|---|---|
Mask()
Constructor. | Mask | ||
Checks for collision with another Mask. | Mask | ||
renderDebug(g:Graphics):void Used to render debug information in console. | Mask | ||
update():void | Mask | ||
| list | property |
public var list:MasklistThe parent Masklist of the mask.
| parent | property |
public var parent:EntityThe parent Entity of this mask.
| Mask | () | Constructor |
public function Mask()Constructor.
| collide | () | method |
public function collide(mask:Mask):BooleanChecks for collision with another Mask.
Parameters
mask:Mask — The other Mask to check against.
|
Boolean — If the Masks overlap.
|
| renderDebug | () | method |
public function renderDebug(g:Graphics):voidUsed to render debug information in console.
Parameters
g:Graphics |
| update | () | method |
public function update():void