Wraith  0.1.5
Basic 3D game engine in C++
CollidableGroup Class Reference

A collidable group holding collidables of a specific type More...

#include <CollidableGroup.h>

Collaboration diagram for CollidableGroup:
Collaboration graph

Public Types

typedef std::list< Collidable * > Collection
 
typedef Collection::iterator StorageReference
 

Public Member Functions

 CollidableGroup (const CollidableGroup &)=default
 
CollidableGroupoperator= (const CollidableGroup &)=default
 
 CollidableGroup (CollidableGroup &&)=default
 
CollidableGroupoperator= (CollidableGroup &&)=default
 
void registerEntity (Collidable *pCollidable, StorageReference &rStorageReference)
 Registers the entity. More...
 
void deregisterEntity (const StorageReference &StorageReference)
 Deregisters the entity described by StorageReference. More...
 
void updateGroupAABB ()
 
const Collection & getColliderCollection () const
 
const CollisionVolumeAABBgetGroupAABB () const
 
bool isEmpty () const
 

Private Attributes

Collection _registeredEntities
 
CollisionVolumeAABB_pGroupAABB
 

Detailed Description

A collidable group holding collidables of a specific type

Member Function Documentation

◆ deregisterEntity()

void CollidableGroup::deregisterEntity ( const StorageReference &  StorageReference)

Deregisters the entity described by StorageReference.

Parameters
StorageReferenceThe storage reference.

◆ registerEntity()

void CollidableGroup::registerEntity ( Collidable pCollidable,
StorageReference &  rStorageReference 
)

Registers the entity.

Parameters
pCollidablethe collidable.
rStorageReference[in,out] The storage reference.

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