Rev | Line | |
---|
[699] | 1 | |
---|
| 2 | #include "LBBCLeaves.h" |
---|
| 3 | #include "LBBCLeaf.h" |
---|
| 4 | |
---|
| 5 | namespace LBBC { |
---|
| 6 | |
---|
| 7 | Leaves::Leaves() |
---|
| 8 | { |
---|
| 9 | mBillboardCloud = new BBC::BillboardCloud(); |
---|
| 10 | mLeafDistribution = new LeafDistribution(); |
---|
| 11 | } |
---|
| 12 | |
---|
| 13 | Leaves::~Leaves() |
---|
| 14 | { |
---|
[721] | 15 | if (mBillboardCloud) |
---|
| 16 | { |
---|
| 17 | delete mBillboardCloud; |
---|
| 18 | } |
---|
| 19 | |
---|
| 20 | if (mLeafDistribution) |
---|
| 21 | { |
---|
| 22 | delete mLeafDistribution; |
---|
| 23 | } |
---|
[699] | 24 | } |
---|
| 25 | |
---|
[721] | 26 | BBC::EntityPtr Leaves::getEntity() |
---|
| 27 | { |
---|
| 28 | return mEntity; |
---|
[699] | 29 | } |
---|
| 30 | |
---|
[721] | 31 | void Leaves::setEntity(BBC::EntityPtr value) |
---|
| 32 | { |
---|
| 33 | mEntity = value; |
---|
[699] | 34 | } |
---|
| 35 | |
---|
| 36 | void Leaves::load() { |
---|
| 37 | } |
---|
| 38 | |
---|
| 39 | void Leaves::unload() { |
---|
| 40 | } |
---|
| 41 | |
---|
| 42 | void Leaves::addLeaf(const Leaf & value) { |
---|
| 43 | } |
---|
| 44 | |
---|
| 45 | void Leaves::removeLeaf(unsigned int value) { |
---|
| 46 | } |
---|
| 47 | |
---|
| 48 | void Leaves::initLeavesDistribution() { |
---|
| 49 | |
---|
| 50 | } |
---|
| 51 | |
---|
| 52 | LeafDistribution* Leaves::getDistribution() |
---|
| 53 | { |
---|
| 54 | return mLeafDistribution; |
---|
| 55 | } |
---|
| 56 | |
---|
| 57 | void Leaves::setDistribution(LeafDistribution *leafDistribution) |
---|
| 58 | { |
---|
| 59 | mLeafDistribution = leafDistribution; |
---|
| 60 | } |
---|
| 61 | |
---|
| 62 | void Leaves::initBillboardCloud() { |
---|
| 63 | } |
---|
| 64 | |
---|
| 65 | void Leaves::setBillboardCloud(BBC::BillboardCloud *value) |
---|
| 66 | { |
---|
| 67 | mBillboardCloud = value; |
---|
| 68 | } |
---|
| 69 | |
---|
| 70 | BBC::BillboardCloud* Leaves::getBillboardCloud() |
---|
| 71 | { |
---|
| 72 | return mBillboardCloud; |
---|
| 73 | } |
---|
| 74 | |
---|
| 75 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.