mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-27 11:13:39 +00:00
27 lines
638 B
C++
27 lines
638 B
C++
#pragma once
|
|
class StructurePiece;
|
|
class BoundingBox;
|
|
|
|
class StructureStart {
|
|
protected:
|
|
std::list<StructurePiece*> pieces;
|
|
BoundingBox* boundingBox;
|
|
|
|
StructureStart();
|
|
|
|
public:
|
|
~StructureStart();
|
|
BoundingBox* getBoundingBox();
|
|
std::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();
|
|
};
|