A cell used in a collision map to hold a linked list of all its contained entities
More...
A cell used in a collision map to hold a linked list of all its contained entities
§ CollisionCell()
MB2D.Collision.CollisionCell.CollisionCell |
( |
| ) |
|
|
inline |
Initializes a new instance of the T:MB2D.Collision.CollisionCell class.
§ Add()
void MB2D.Collision.CollisionCell.Add |
( |
Entity |
entity | ) |
|
|
inline |
Adds an entity to the cell
- Parameters
-
§ 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
-
§ Remove()
void MB2D.Collision.CollisionCell.Remove |
( |
Entity |
entity | ) |
|
|
inline |
Removes a specific entity from the cell
- Parameters
-
§ 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:
- MB2D/src/Collision/CollisionCell.cs