C# Class PunkX.Mask

Base class for Entity collision masks.
Afficher le fichier Open project: RichardMarks/PunkX Class Usage Examples

Méthodes publiques

Свойство Type Description
list PunkX.masks.Masklist
parent Entity

Protected Properties

Свойство Type Description
_check CollisionDelegate>.Dictionary

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
collideMasklist ( Mask other ) : System.Boolean

Collide against a Masklist.

Private Methods

Méthode Description
collideMask ( Mask other ) : System.Boolean

Collide against an Entity.

Method Details

Mask() public méthode

constructor
public Mask ( ) : System
Résultat System

assignTo() public méthode

Assigns the mask to the parent.
public assignTo ( Entity parent ) : void
parent Entity Entity parent for the mask
Résultat void

collide() public méthode

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

collideMasklist() protected méthode

Collide against a Masklist.
protected collideMasklist ( Mask other ) : System.Boolean
other Mask
Résultat System.Boolean

update() public méthode

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

Property Details

_check protected_oe property

protected Dictionary _check
Résultat CollisionDelegate>.Dictionary

list public_oe property

The parent Masklist of the mask.
public Masklist,PunkX.masks list
Résultat PunkX.masks.Masklist

parent public_oe property

The parent Entity of this mask.
public Entity parent
Résultat Entity