Midnight Blue Game and Engine
Public Member Functions | Properties | List of all members
MB2D.EntityComponent.CollisionComponent Class Reference

Used for running collision detection on an Entity More...

Inheritance diagram for MB2D.EntityComponent.CollisionComponent:
Inheritance graph
Collaboration diagram for MB2D.EntityComponent.CollisionComponent:
Collaboration graph

Public Member Functions

 CollisionComponent (params RectangleF[] boxes)
 Initializes a new instance of the T:MB2D.EntityComponent.CollisionComponent class with an array of its associated AABB's More...
 

Properties

List< RectangleF > Boxes [get, set]
 Gets or sets the list of bounding boxes used for collision detection. More...
 
bool Event [get, set]
 Gets or sets a value indicating whether this T:MB2D.EntityComponent.CollisionComponent has had a collision event this frame. More...
 
Entity Collider [get, set]
 Gets or sets the collider entity associated with the collision event. More...
 

Detailed Description

Used for running collision detection on an Entity

Constructor & Destructor Documentation

§ CollisionComponent()

MB2D.EntityComponent.CollisionComponent.CollisionComponent ( params RectangleF []  boxes)
inline

Initializes a new instance of the T:MB2D.EntityComponent.CollisionComponent class with an array of its associated AABB's

Parameters
boxesThe bounding boxes used for detecting collisions.

Property Documentation

§ Boxes

List<RectangleF> MB2D.EntityComponent.CollisionComponent.Boxes
getset

Gets or sets the list of bounding boxes used for collision detection.

The boxes.

§ Collider

Entity MB2D.EntityComponent.CollisionComponent.Collider
getset

Gets or sets the collider entity associated with the collision event.

The collider.

§ Event

bool MB2D.EntityComponent.CollisionComponent.Event
getset

Gets or sets a value indicating whether this T:MB2D.EntityComponent.CollisionComponent has had a collision event this frame.

true if an event ocurred; otherwise, false.


The documentation for this class was generated from the following file: