Packagenet.flashpunk
Classpublic class Mask
SubclassesHitbox

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
  
Mask()
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
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