source: GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/src/BBCEntityDistribution.cpp @ 721

Revision 721, 604 bytes checked in by igarcia, 19 years ago (diff)
Line 
1
2#include "BBCEntityDistribution.h"
3
4namespace BBC {
5
6EntityDistribution::EntityDistribution(): references(0) // initialize references to 0
7{
8}
9
10EntityDistribution::~EntityDistribution()
11{
12        mEntityList.clear();
13}
14
15EntityPtr EntityDistribution::getEntity(unsigned unsigned int value)
16{
17        return mEntityList[value];
18}
19
20void EntityDistribution::addEntity(EntityPtr value)
21{
22        mEntityList.push_back(value);
23}
24
25void EntityDistribution::removeEntity(unsigned int value)
26{
27        mEntityList.erase(mEntityList.begin()+value);
28}
29
30unsigned int EntityDistribution::getNumEntities(void)
31{
32        return mEntityList.size();
33}
34
35}
Note: See TracBrowser for help on using the repository browser.