blob: e29c0b0c3c457aba80b51ddc43225170c55fd47e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#pragma once
#include "Feature.h"
class TreeFeature : public Feature
{
private:
const int baseHeight;
const bool addJungleFeatures;
const int trunkType;
const int leafType;
public:
TreeFeature(bool doUpdate);
TreeFeature(bool doUpdate, int baseHeight, int trunkType, int leafType, bool addJungleFeatures);
virtual bool place(Level *level, Random *random, int x, int y, int z);
private:
void addVine(Level *level, int xx, int yy, int zz, int dir);
};
|