com.haxepunk.Mask

type
class
subclasses
com.haxepunk.masks.Hitbox
Base class for Entity collision masks.

Constructor

new()
Constructor.

Instance Variables

The parent Masklist of the mask.

parent : Entity

The parent Entity of this mask.

Instance Methods

collide(mask : Mask) : Bool

parameters
mask The other Mask to check against.
returns
If the Masks overlap.
Checks for collision with another Mask.

debugDraw(graphics : flash.display.Graphics, scaleX : Float, scaleY : Float) : Void

Override this

update() : Void

Updates the parent's bounds for this mask.