C# Class PunkX.Mask

Base class for Entity collision masks.
Mostrar archivo Open project: RichardMarks/PunkX Class Usage Examples

Public Properties

Property Type Description
list PunkX.masks.Masklist
parent Entity

Protected Properties

Property Type Description
_check CollisionDelegate>.Dictionary

Public Methods

Method Description
Mask ( ) : System

constructor

assignTo ( Entity parent ) : void

Assigns the mask to the parent.

collide ( Mask mask ) : System.Boolean

Checks for collision with another Mask.

update ( ) : void

Updates the parent's bounds for this mask.

Protected Methods

Method Description
collideMasklist ( Mask other ) : System.Boolean

Collide against a Masklist.

Private Methods

Method Description
collideMask ( Mask other ) : System.Boolean

Collide against an Entity.

Method Details

Mask() public method

constructor
public Mask ( ) : System
return System

assignTo() public method

Assigns the mask to the parent.
public assignTo ( Entity parent ) : void
parent Entity Entity parent for the mask
return void

collide() public method

Checks for collision with another Mask.
public collide ( Mask mask ) : System.Boolean
mask Mask The other Mask to check against.
return System.Boolean

collideMasklist() protected method

Collide against a Masklist.
protected collideMasklist ( Mask other ) : System.Boolean
other Mask
return System.Boolean

update() public method

Updates the parent's bounds for this mask.
public update ( ) : void
return void

Property Details

_check protected_oe property

protected Dictionary _check
return CollisionDelegate>.Dictionary

list public_oe property

The parent Masklist of the mask.
public Masklist,PunkX.masks list
return PunkX.masks.Masklist

parent public_oe property

The parent Entity of this mask.
public Entity parent
return Entity