Packagenet.flashpunk
Classpublic class Mask
InheritanceMask Inheritance Object
Subclasses Hitbox

Base class for Entity collision masks.



Public Properties
 PropertyDefined By
  list : Masklist
The parent Masklist of the mask.
Mask
  parent : Entity
The parent Entity of this mask.
Mask
Public Methods
 MethodDefined By
  
Constructor.
Mask
  
collide(mask:Mask):Boolean
Checks for collision with another Mask.
Mask
  
renderDebug(g:Graphics):void
Used to render debug information in console.
Mask
  
update():void
Mask
Property Detail
listproperty
public var list:Masklist

The parent Masklist of the mask.

parentproperty 
public var parent:Entity

The parent Entity of this mask.

Constructor Detail
Mask()Constructor
public function Mask()

Constructor.

Method Detail
collide()method
public function collide(mask:Mask):Boolean

Checks for collision with another Mask.

Parameters

mask:Mask — The other Mask to check against.

Returns
Boolean — If the Masks overlap.
renderDebug()method 
public function renderDebug(g:Graphics):void

Used to render debug information in console.

Parameters

g:Graphics

update()method 
public function update():void