chore: format Minecraft.World

This commit is contained in:
Tropical
2026-03-13 17:06:56 -05:00
parent bd6284025d
commit 33d0737d1d
1511 changed files with 108661 additions and 115521 deletions

View File

@@ -3,8 +3,7 @@
class Level;
class BasicTree : public Feature
{
class BasicTree : public Feature {
private:
// The axisConversionArray, when given a primary index, allows easy
// access to the indices of the other two axies. Access the data at the
@@ -26,10 +25,10 @@ private:
static uint8_t axisConversionArray[];
// Set up the pseudorandom number generator
Random *rnd;
Random* rnd;
// Make fields to hold the level data and the random seed
Level *thisLevel;
Level* thisLevel;
// Field to hold the tree origin, x y and z.
int origin[3];
@@ -45,26 +44,29 @@ private:
int trunkWidth;
int heightVariance;
int foliageHeight;
// The foliage coordinates are a list of [x,y,z,y of branch base] values for each cluster
int **foliageCoords;
int foliageCoordsLength;
void prepare();
void crossection(int x, int y, int z, float radius, uint8_t direction, int material);
float treeShape(int y);
float foliageShape(int y);
void foliageCluster(int x, int y, int z);
void limb(int *start, int *end, int material);
void makeFoliage();
bool trimBranches(int localY);
void makeTrunk();
void makeBranches();
int checkLine(int *start, int *end);
bool checkLocation();
// The foliage coordinates are a list of [x,y,z,y of branch base] values for
// each cluster
int** foliageCoords;
int foliageCoordsLength;
void prepare();
void crossection(int x, int y, int z, float radius, uint8_t direction,
int material);
float treeShape(int y);
float foliageShape(int y);
void foliageCluster(int x, int y, int z);
void limb(int* start, int* end, int material);
void makeFoliage();
bool trimBranches(int localY);
void makeTrunk();
void makeBranches();
int checkLine(int* start, int* end);
bool checkLocation();
public:
BasicTree(bool doUpdate);
virtual ~BasicTree();
BasicTree(bool doUpdate);
virtual ~BasicTree();
virtual void init(double heightInit, double widthInit, double foliageDensityInit);
virtual bool place(Level *level, Random *random, int x, int y, int z);
virtual void init(double heightInit, double widthInit,
double foliageDensityInit);
virtual bool place(Level* level, Random* random, int x, int y, int z);
};