aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/StructureStart.h
blob: e035f564d657f3dda9afe5f7a06313f15c984f50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#pragma once
class StructurePiece;
class BoundingBox;

class StructureStart
{

protected:
	list<StructurePiece *> pieces;
    BoundingBox *boundingBox;

    StructureStart();
public:
	~StructureStart();
	BoundingBox *getBoundingBox();
    list<StructurePiece *> *getPieces();
    void postProcess(Level *level, Random *random, BoundingBox *chunkBB);
protected:
	void calculateBoundingBox();
    void moveBelowSeaLevel(Level *level, Random *random, int offset);
	void moveInsideHeights(Level *level, Random *random, int lowestAllowed, int highestAllowed);
public:
	bool isValid();

};