mirror of
https://github.com/neoStudiosLCE/neoLegacy.git
synced 2026-05-21 22:55:04 +00:00
21 lines
508 B
C++
21 lines
508 B
C++
#pragma once
|
|
#pragma once
|
|
#include "Feature.h"
|
|
|
|
class RoofTreeFeature : public Feature
|
|
{
|
|
public:
|
|
RoofTreeFeature(bool doUpdate);
|
|
virtual bool place(Level *level, Random *random, int x, int y, int z);
|
|
|
|
private:
|
|
int baseHeight;
|
|
|
|
void placeTrunk2x2(Level *level, int x, int y, int z);
|
|
|
|
void placeLeaf(Level *level, int x, int y, int z);
|
|
private:
|
|
bool checkSpace(Level *worldIn, int x, int y, int z, int height);
|
|
void placeLog(Level *worldIn, int x, int y, int z);
|
|
|
|
}; |