Drag[en]gine Game Engine  1.0
deDecalList Class Reference

Collision Decal List. More...

#include <deDecalList.h>

Inheritance diagram for deDecalList:
deObject

Public Member Functions

Constructors and Destructors
 deDecalList ()
 
virtual ~deDecalList ()
 
Management
int GetDecalCount () const
 
deDecalGetDecalAt (int index) const
 
bool HasDecal (deDecal *decal) const
 
int IndexOfDecal (deDecal *decal) const
 
void AddDecal (deDecal *decal)
 
void RemoveAllDecals ()
 
- Public Member Functions inherited from deObject
int GetRefCount () const
 Reference count. More...
 
void AddReference ()
 Add reference increasing reference count by 1. More...
 
void FreeReference ()
 Decrease reference count by one and delete object if count reaches 0. More...
 
 deObject ()
 Create object with reference count of 1. More...
 

Additional Inherited Members

- Protected Member Functions inherited from deObject
virtual ~deObject ()
 Clean up object. More...
 

Detailed Description

Collision Decal List.

Stores a list of decals. This class is used to collect decals from collision test into a list for later processing.

Author
Pl├╝ss Roland
Version
1.0
Date
2008

Constructor & Destructor Documentation

◆ deDecalList()

deDecalList::deDecalList ( )

Creates a new decal list object.

◆ ~deDecalList()

virtual deDecalList::~deDecalList ( )
virtual

Cleans up the decal list object.

Member Function Documentation

◆ AddDecal()

void deDecalList::AddDecal ( deDecal decal)

Adds a decal.

Referenced by GetDecalCount().

◆ GetDecalAt()

deDecal* deDecalList::GetDecalAt ( int  index) const

Retrieves the decal at the given index.

Referenced by GetDecalCount().

◆ GetDecalCount()

int deDecalList::GetDecalCount ( ) const
inline

Retrieves the number of decals.

References AddDecal(), GetDecalAt(), HasDecal(), IndexOfDecal(), and RemoveAllDecals().

◆ HasDecal()

bool deDecalList::HasDecal ( deDecal decal) const

Determines if a decal exists.

Referenced by GetDecalCount().

◆ IndexOfDecal()

int deDecalList::IndexOfDecal ( deDecal decal) const

Retrieves the index of the decal or -1 if not found.

Referenced by GetDecalCount().

◆ RemoveAllDecals()

void deDecalList::RemoveAllDecals ( )

Removes all decals.

Referenced by GetDecalCount().


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