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

A cell used in a collision map to hold a linked list of all its contained entities More...

Collaboration diagram for MB2D.Collision.CollisionCell:
Collaboration graph

Public Member Functions

 CollisionCell ()
 Initializes a new instance of the T:MB2D.Collision.CollisionCell class. More...
 
void Add (Entity entity)
 Adds an entity to the cell More...
 
void Remove (Entity entity)
 Removes a specific entity from the cell More...
 
bool Contains (Entity entity)
 Checks if the entity is inside the cell already More...
 
void Clear ()
 Clear the cell of all entities. More...
 

Properties

LinkedList< EntityItems [get]
 Gets the list of this cells entities More...
 

Detailed Description

A cell used in a collision map to hold a linked list of all its contained entities

Constructor & Destructor Documentation

§ CollisionCell()

MB2D.Collision.CollisionCell.CollisionCell ( )
inline

Initializes a new instance of the T:MB2D.Collision.CollisionCell class.

Member Function Documentation

§ Add()

void MB2D.Collision.CollisionCell.Add ( Entity  entity)
inline

Adds an entity to the cell

Parameters
entityEntity to add.
Here is the caller graph for this function:

§ Clear()

void MB2D.Collision.CollisionCell.Clear ( )
inline

Clear the cell of all entities.

§ Contains()

bool MB2D.Collision.CollisionCell.Contains ( Entity  entity)
inline

Checks if the entity is inside the cell already

Parameters
entityEntity.

§ Remove()

void MB2D.Collision.CollisionCell.Remove ( Entity  entity)
inline

Removes a specific entity from the cell

Parameters
entityEntity to remove.

Property Documentation

§ Items

LinkedList<Entity> MB2D.Collision.CollisionCell.Items
get

Gets the list of this cells entities

The entities.


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