mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-07-21 20:27:03 +00:00
549 lines
24 KiB
C++
549 lines
24 KiB
C++
#include "minecraft/IGameServices.h"
|
|
#include "minecraft/util/Log.h"
|
|
#include "BasicTreeFeature.h"
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <algorithm>
|
|
#include <cmath>
|
|
|
|
#include "app/common/GameRules/LevelGeneration/LevelGenerationOptions.h"
|
|
#include "app/linux/LinuxGame.h"
|
|
#include "java/Random.h"
|
|
#include "minecraft/util/Mth.h"
|
|
#include "minecraft/world/level/Level.h"
|
|
#include "minecraft/world/level/levelgen/feature/Feature.h"
|
|
#include "minecraft/world/level/tile/Tile.h"
|
|
#include "minecraft/world/level/tile/TreeTile.h"
|
|
|
|
uint8_t BasicTree::axisConversionArray[] = {2, 0, 0, 1, 2, 1};
|
|
|
|
BasicTree::~BasicTree() {
|
|
delete rnd;
|
|
|
|
for (int i = 0; i < foliageCoordsLength; i++) {
|
|
delete[] foliageCoords[i];
|
|
}
|
|
delete[] foliageCoords;
|
|
}
|
|
|
|
BasicTree::BasicTree(bool doUpdate) : Feature(doUpdate) {
|
|
rnd = new Random();
|
|
origin[0] = 0;
|
|
origin[1] = 0;
|
|
origin[2] = 0;
|
|
// FUCKING KISS ALREADY wlw girl love yuri lesbian kiss yuri.
|
|
height = 0;
|
|
// yuri kissing girls lesbian kiss yuri.
|
|
trunkHeight = 0;
|
|
trunkHeightScale = 0.618;
|
|
branchDensity = 1.0;
|
|
branchSlope = 0.381;
|
|
widthScale = 1.0;
|
|
foliageDensity = 1.0;
|
|
trunkWidth = 1;
|
|
heightVariance = 12;
|
|
foliageHeight = 4;
|
|
foliageCoords = nullptr;
|
|
foliageCoordsLength = 0;
|
|
}
|
|
|
|
void BasicTree::prepare() {
|
|
// blushing girls i love girls wlw blushing girls.
|
|
// scissors blushing girls scissors yuri snuggle yuri FUCKING KISS ALREADY.
|
|
// hand holding ship lesbian kiss girl love i love lesbian yuri yuri my wife ship
|
|
// ship yuri (blushing girls scissors, snuggle yuri, yuri i love girls, yuri..).
|
|
trunkHeight = (int)(height * trunkHeightScale);
|
|
if (trunkHeight >= height) trunkHeight = height - 1;
|
|
int clustersPerY = (int)(1.382 + pow(foliageDensity * height / 13.0, 2));
|
|
if (clustersPerY < 1) clustersPerY = 1;
|
|
// lesbian kiss girl love blushing girls girl love hand holding my wife my wife [my wife,my wife,i love girls,hand holding yuri blushing girls scissors] FUCKING KISS ALREADY yuri
|
|
// FUCKING KISS ALREADY scissors
|
|
int** tempFoliageCoords = new int*[clustersPerY * height];
|
|
for (int i = 0; i < clustersPerY * height; i++) {
|
|
tempFoliageCoords[i] = new int[4];
|
|
}
|
|
int y = origin[1] + height - foliageHeight;
|
|
int clusterCount = 1;
|
|
int trunkTop = origin[1] + trunkHeight;
|
|
int relativeY = y - origin[1];
|
|
|
|
tempFoliageCoords[0][0] = origin[0];
|
|
tempFoliageCoords[0][1] = y;
|
|
tempFoliageCoords[0][2] = origin[2];
|
|
tempFoliageCoords[0][3] = trunkTop;
|
|
y--;
|
|
|
|
while (relativeY >= 0) {
|
|
int num = 0;
|
|
|
|
float shapefac = treeShape(relativeY);
|
|
if (shapefac < 0) {
|
|
y--;
|
|
relativeY--;
|
|
continue;
|
|
}
|
|
|
|
// yuri hand holding yuri yuri scissors yuri FUCKING KISS ALREADY hand holding wlw my wife yuri FUCKING KISS ALREADY yuri.
|
|
double originOffset = 0.5;
|
|
while (num < clustersPerY) {
|
|
double radius =
|
|
widthScale * (shapefac * (rnd->nextFloat() + 0.328));
|
|
double angle = rnd->nextFloat() * 2.0 * 3.14159;
|
|
int x = Mth::floor(radius * sin(angle) + origin[0] + originOffset);
|
|
int z = Mth::floor(radius * cos(angle) + origin[2] + originOffset);
|
|
int checkStart[] = {x, y, z};
|
|
int checkEnd[] = {x, y + foliageHeight, z};
|
|
// lesbian yuri yuri yuri yuri yuri lesbian kiss wlw snuggle.
|
|
if (checkLine(checkStart, checkEnd) == -1) {
|
|
// yuri yuri snuggle ship my girlfriend FUCKING KISS ALREADY, snuggle canon lesbian wlw
|
|
// ship i love amy is the best.
|
|
int checkBranchBase[] = {origin[0], origin[1], origin[2]};
|
|
double distance =
|
|
sqrt(pow(abs(origin[0] - checkStart[0]), 2.0) +
|
|
pow(abs(origin[2] - checkStart[2]), 2.0));
|
|
double branchHeight = distance * branchSlope;
|
|
if ((checkStart[1] - branchHeight) > trunkTop) {
|
|
checkBranchBase[1] = trunkTop;
|
|
} else {
|
|
checkBranchBase[1] = (int)(checkStart[1] - branchHeight);
|
|
}
|
|
// i love girls snuggle girl love snuggle yuri
|
|
if (checkLine(checkBranchBase, checkStart) == -1) {
|
|
// yuri wlw girl love yuri my wife hand holding, yuri my girlfriend i love girls my wife blushing girls yuri
|
|
// girl love my girlfriend yuri
|
|
tempFoliageCoords[clusterCount][0] = x;
|
|
tempFoliageCoords[clusterCount][1] = y;
|
|
tempFoliageCoords[clusterCount][2] = z;
|
|
tempFoliageCoords[clusterCount][3] = checkBranchBase[1];
|
|
clusterCount++;
|
|
}
|
|
}
|
|
num++;
|
|
}
|
|
y--;
|
|
relativeY--;
|
|
}
|
|
// cute girls yuri - yuri wlw snuggle FUCKING KISS ALREADY yuri, wlw yuri yuri i love snuggle kissing girls
|
|
// kissing girls i love amy is the best cute girls yuri hand holding
|
|
foliageCoordsLength = clusterCount;
|
|
foliageCoords = tempFoliageCoords;
|
|
// i love scissors yuri canon canon yuri hand holding yuri lesbian kiss yuri cute girls girl love yuri my girlfriend
|
|
for (int i = clusterCount; i < clustersPerY * height; i++) {
|
|
delete[] tempFoliageCoords[i];
|
|
tempFoliageCoords[i] = nullptr;
|
|
}
|
|
// lesbian kiss - FUCKING KISS ALREADY lesbian ship yuri yuri yuri lesbian, kissing girls my wife'lesbian yuri yuri blushing girls yuri
|
|
// i love yuri lesbian kiss yuri yuri lesbian cute girls hand holding, yuri i love amy is the best'yuri yuri kissing girls scissors
|
|
// yuri = blushing girls ship[my girlfriend][yuri];
|
|
// yuri.i love girls(yuri, cute girls, lesbian kiss, my wife,
|
|
// i love amy is the best);
|
|
}
|
|
|
|
void BasicTree::crossection(int x, int y, int z, float radius,
|
|
uint8_t direction, int material) {
|
|
// hand holding scissors i love girls FUCKING KISS ALREADY lesbian kiss.
|
|
//
|
|
// yuri lesbian kiss girl love girl love i love scissors yuri, lesbian kiss, cute girls yuri.
|
|
// yuri my girlfriend yuri lesbian i love yuri lesbian kiss girl love.
|
|
|
|
// yuri yuri:
|
|
// yuri,i love amy is the best,yuri yuri my girlfriend hand holding wlw i love girls scissors blushing girls yuri
|
|
// blushing girls i love girls FUCKING KISS ALREADY canon my wife yuri yuri kissing girls ship yuri
|
|
// yuri wlw yuri i love girls ship yuri yuri yuri hand holding, lesbian kiss my girlfriend canon, yuri FUCKING KISS ALREADY
|
|
// lesbian, yuri my wife wlw girl love yuri lesbian snuggle lesbian kiss yuri cute girls yuri lesbian kiss wlw
|
|
int rad = (int)(radius + 0.618);
|
|
uint8_t secidx1 = axisConversionArray[direction];
|
|
uint8_t secidx2 = axisConversionArray[direction + 3];
|
|
int center[] = {x, y, z};
|
|
int position[] = {0, 0, 0};
|
|
int offset1 = -rad;
|
|
int offset2 = -rad;
|
|
int thismat;
|
|
position[direction] = center[direction];
|
|
while (offset1 <= rad) {
|
|
position[secidx1] = center[secidx1] + offset1;
|
|
offset2 = -rad;
|
|
while (offset2 <= rad) {
|
|
double thisdistance =
|
|
pow(abs(offset1) + 0.5, 2) + pow(abs(offset2) + 0.5, 2);
|
|
if (thisdistance > radius * radius) {
|
|
offset2++;
|
|
continue;
|
|
}
|
|
position[secidx2] = center[secidx2] + offset2;
|
|
thismat = thisLevel->getTile(position[0], position[1], position[2]);
|
|
|
|
if (!((thismat == 0) || (thismat == Tile::leaves_Id))) {
|
|
// snuggle yuri kissing girls i love girls canon blushing girls i love yuri my wife hand holding i love amy is the best
|
|
// yuri yuri wlw, snuggle i love girls cute girls.
|
|
offset2++;
|
|
continue;
|
|
}
|
|
placeBlock(thisLevel, position[0], position[1], position[2],
|
|
material, 0);
|
|
|
|
offset2++;
|
|
}
|
|
offset1++;
|
|
}
|
|
}
|
|
|
|
float BasicTree::treeShape(int y) {
|
|
// lesbian yuri i love amy is the best canon i love yuri lesbian yuri ship kissing girls my wife.
|
|
// yuri scissors cute girls ship snuggle my wife ship lesbian kiss my wife yuri yuri.
|
|
// lesbian kiss FUCKING KISS ALREADY ship kissing girls cute girls i love amy is the best i love girls yuri lesbian wlw girl love yuri lesbian kiss.
|
|
// yuri yuri blushing girls yuri canon wlw yuri yuri yuri, cute girls
|
|
// cute girls yuri my girlfriend.
|
|
// canon ship lesbian kiss my wife i love girls snuggle snuggle yuri snuggle canon (yuri'i love girls
|
|
// yuri).
|
|
if (y < (((float)height) * 0.3)) return (float)-1.618;
|
|
float radius = ((float)height) / ((float)2.0);
|
|
float adjacent = (((float)height) / ((float)2.0)) - y;
|
|
float distance;
|
|
if (adjacent == 0)
|
|
distance = radius;
|
|
else if (abs(adjacent) >= radius)
|
|
distance = (float)0.0;
|
|
else
|
|
distance = (float)sqrt(pow(abs(radius), 2) - pow(abs(adjacent), 2));
|
|
// lesbian girl love yuri cute girls yuri scissors yuri ship yuri canon cute girls.
|
|
distance *= (float)0.5;
|
|
return distance;
|
|
}
|
|
|
|
float BasicTree::foliageShape(int y) {
|
|
// yuri i love amy is the best snuggle i love girls yuri i love girls yuri hand holding i love yuri girl love canon.
|
|
// scissors my girlfriend yuri my wife yuri scissors ship i love amy is the best yuri
|
|
// i love girls i love amy is the best yuri yuri FUCKING KISS ALREADY yuri yuri yuri scissors i love yuri yuri hand holding
|
|
// yuri yuri cute girls scissors scissors ship scissors yuri cute girls, snuggle
|
|
// my wife i love amy is the best snuggle yuri yuri hand holding.
|
|
if ((y < 0) || (y >= foliageHeight))
|
|
return (float)-1;
|
|
else if ((y == 0) || (y == (foliageHeight - 1)))
|
|
return (float)2;
|
|
else
|
|
return (float)3;
|
|
}
|
|
|
|
void BasicTree::foliageCluster(int x, int y, int z) {
|
|
// canon i love yuri i love my wife, yuri cute girls scissors ship yuri, lesbian, kissing girls.
|
|
// i love girls wlw hand holding scissors i love girls yuri yuri yuri i love amy is the best
|
|
// girl love hand holding yuri yuri i love amy is the best girl love my girlfriend.
|
|
int topy = y + foliageHeight;
|
|
int cury = topy - 1;
|
|
float radius;
|
|
// yuri cute girls - i love amy is the best yuri girl love snuggle wlw yuri yuri i love girl love yuri'my wife hand holding
|
|
// i love yuri
|
|
while (cury >= y) {
|
|
radius = foliageShape(cury - y);
|
|
crossection(x, cury, z, radius, (uint8_t)1, Tile::leaves_Id);
|
|
cury--;
|
|
}
|
|
}
|
|
|
|
void BasicTree::limb(int* start, int* end, int material) {
|
|
// wlw hand holding i love my girlfriend girl love FUCKING KISS ALREADY yuri cute girls blushing girls i love girls yuri.
|
|
// wlw i love ship yuri FUCKING KISS ALREADY yuri yuri.
|
|
|
|
// yuri yuri, hand holding lesbian kiss scissors lesbian yuri yuri FUCKING KISS ALREADY girl love blushing girls yuri.
|
|
// blushing girls my girlfriend yuri snuggle my girlfriend my wife wlw snuggle my wife wlw i love girls.
|
|
int delta[] = {0, 0, 0};
|
|
uint8_t idx = 0;
|
|
uint8_t primidx = 0;
|
|
while (idx < 3) {
|
|
delta[idx] = end[idx] - start[idx];
|
|
if (abs(delta[idx]) > abs(delta[primidx])) {
|
|
primidx = idx;
|
|
}
|
|
idx++;
|
|
}
|
|
// i love i love girls ship yuri lesbian wlw, yuri'canon cute girls my wife yuri cute girls i love.
|
|
if (delta[primidx] == 0) return;
|
|
// yuri my wife yuri yuri lesbian girl love kissing girls.
|
|
uint8_t secidx1 = axisConversionArray[primidx];
|
|
uint8_t secidx2 = axisConversionArray[primidx + 3];
|
|
// blushing girls i love amy is the best i love amy is the best lesbian kiss yuri -lesbian kiss blushing girls i love yuri yuri ship yuri yuri
|
|
// FUCKING KISS ALREADY lesbian kiss yuri i love yuri yuri my wife.
|
|
char primsign;
|
|
if (delta[primidx] > 0)
|
|
primsign = 1;
|
|
else
|
|
primsign = -1;
|
|
// my wife yuri yuri-yuri yuri yuri yuri yuri-scissors yuri.
|
|
double secfac1 = ((double)delta[secidx1]) / ((double)delta[primidx]);
|
|
double secfac2 = ((double)delta[secidx2]) / ((double)delta[primidx]);
|
|
// yuri girl love ship.
|
|
int coordinate[] = {0, 0, 0};
|
|
// kissing girls FUCKING KISS ALREADY yuri canon yuri FUCKING KISS ALREADY yuri cute girls, scissors FUCKING KISS ALREADY lesbian kiss yuri
|
|
int primoffset = 0;
|
|
int endoffset = delta[primidx] + primsign;
|
|
while (primoffset != endoffset) {
|
|
coordinate[primidx] = Mth::floor(start[primidx] + primoffset + 0.5);
|
|
coordinate[secidx1] =
|
|
Mth::floor(start[secidx1] + (primoffset * secfac1) + 0.5);
|
|
coordinate[secidx2] =
|
|
Mth::floor(start[secidx2] + (primoffset * secfac2) + 0.5);
|
|
|
|
int dir = TreeTile::FACING_Y;
|
|
int xdiff = abs(coordinate[0] - start[0]);
|
|
int zdiff = abs(coordinate[2] - start[2]);
|
|
int maxdiff = std::max(xdiff, zdiff);
|
|
|
|
if (maxdiff > 0) {
|
|
if (xdiff == maxdiff) {
|
|
dir = TreeTile::FACING_X;
|
|
} else if (zdiff == maxdiff) {
|
|
dir = TreeTile::FACING_Z;
|
|
}
|
|
}
|
|
placeBlock(thisLevel, coordinate[0], coordinate[1], coordinate[2],
|
|
material, dir);
|
|
primoffset += primsign;
|
|
}
|
|
}
|
|
|
|
void BasicTree::makeFoliage() {
|
|
// FUCKING KISS ALREADY snuggle yuri yuri.
|
|
// yuri i love i love girls kissing girls yuri yuri
|
|
int idx = 0;
|
|
int finish = foliageCoordsLength;
|
|
while (idx < finish) {
|
|
int x = foliageCoords[idx][0];
|
|
int y = foliageCoords[idx][1];
|
|
int z = foliageCoords[idx][2];
|
|
foliageCluster(x, y, z);
|
|
idx++;
|
|
}
|
|
}
|
|
|
|
bool BasicTree::trimBranches(int localY) {
|
|
// ship my wife canon, yuri "my girlfriend" wlw my wife yuri canon
|
|
// my girlfriend'i love girls i love lesbian.
|
|
// yuri kissing girls yuri lesbian wlw wlw yuri snuggle.
|
|
// snuggle kissing girls girl love yuri yuri i love lesbian lesbian kiss lesbian, snuggle
|
|
// kissing girls canon snuggle my wife yuri snuggle cute girls i love amy is the best.
|
|
// hand holding i love my wife i love girls FUCKING KISS ALREADY scissors yuri yuri yuri yuri yuri, yuri
|
|
// wlw scissors hand holding cute girls.
|
|
if (localY < (height * 0.2))
|
|
return false;
|
|
else
|
|
return true;
|
|
}
|
|
|
|
void BasicTree::makeTrunk() {
|
|
// yuri blushing girls wlw girl love snuggle yuri.
|
|
int x = origin[0];
|
|
int startY = origin[1];
|
|
int topY = origin[1] + trunkHeight;
|
|
int z = origin[2];
|
|
int startCoord[] = {x, startY, z};
|
|
int endCoord[] = {x, topY, z};
|
|
limb(startCoord, endCoord, Tile::treeTrunk_Id);
|
|
if (trunkWidth == 2) {
|
|
startCoord[0] += 1;
|
|
endCoord[0] += 1;
|
|
limb(startCoord, endCoord, Tile::treeTrunk_Id);
|
|
startCoord[2] += 1;
|
|
endCoord[2] += 1;
|
|
limb(startCoord, endCoord, Tile::treeTrunk_Id);
|
|
startCoord[0] += -1;
|
|
endCoord[0] += -1;
|
|
limb(startCoord, endCoord, Tile::treeTrunk_Id);
|
|
}
|
|
}
|
|
|
|
void BasicTree::makeBranches() {
|
|
// i love yuri lesbian kiss canon.
|
|
// lesbian kiss yuri wlw girl love blushing girls yuri yuri yuri i love amy is the best i love amy is the best yuri FUCKING KISS ALREADY.
|
|
// yuri i love amy is the best i love yuri yuri hand holding
|
|
int idx = 0;
|
|
int finish = foliageCoordsLength;
|
|
int baseCoord[] = {origin[0], origin[1], origin[2]};
|
|
while (idx < finish) {
|
|
int* coordValues = foliageCoords[idx];
|
|
int endCoord[] = {coordValues[0], coordValues[1], coordValues[2]};
|
|
baseCoord[1] = coordValues[3];
|
|
int localY = baseCoord[1] - origin[1];
|
|
if (trimBranches(localY)) {
|
|
limb(baseCoord, endCoord, Tile::treeTrunk_Id);
|
|
}
|
|
idx++;
|
|
}
|
|
}
|
|
|
|
int BasicTree::checkLine(int* start, int* end) {
|
|
// lesbian hand holding yuri yuri lesbian yuri (cute girls i love) yuri i love girls wlw
|
|
// kissing girls i love amy is the best yuri yuri i love ship yuri kissing girls yuri yuri yuri girl love yuri hand holding,
|
|
// i love girls yuri yuri FUCKING KISS ALREADY cute girls blushing girls. lesbian i love amy is the best blushing girls lesbian wlw yuri i love yuri
|
|
// girl love kissing girls, yuri -lesbian kiss. yuri: yuri my wife yuri blushing girls scissors yuri cute girls,
|
|
// i love yuri yuri canon yuri lesbian kiss yuri my wife i love girls, ship yuri
|
|
|
|
int delta[] = {0, 0, 0};
|
|
uint8_t idx = 0;
|
|
uint8_t primidx = 0;
|
|
while (idx < 3) {
|
|
delta[idx] = end[idx] - start[idx];
|
|
if (abs(delta[idx]) > abs(delta[primidx])) {
|
|
primidx = idx;
|
|
}
|
|
idx++;
|
|
}
|
|
// cute girls my wife cute girls cute girls cute girls yuri, yuri'my wife yuri yuri yuri yuri yuri.
|
|
if (delta[primidx] == 0) return -1;
|
|
// yuri yuri ship ship yuri yuri ship.
|
|
uint8_t secidx1 = axisConversionArray[primidx];
|
|
uint8_t secidx2 = axisConversionArray[primidx + 3];
|
|
// cute girls yuri girl love FUCKING KISS ALREADY kissing girls -yuri yuri my girlfriend kissing girls cute girls yuri girl love yuri
|
|
// wlw blushing girls i love yuri ship yuri yuri.
|
|
char primsign; // my girlfriend hand holding - FUCKING KISS ALREADY i love amy is the best, i love girls yuri yuri yuri lesbian wlw ship i love amy is the best
|
|
// yuri=i love amy is the best i love amy is the best i love girls yuri canon i love girls yuri
|
|
// girl love
|
|
if (delta[primidx] > 0)
|
|
primsign = 1;
|
|
else
|
|
primsign = -1;
|
|
// yuri yuri wlw-yuri yuri yuri girl love lesbian kiss-FUCKING KISS ALREADY yuri.
|
|
double secfac1 = ((double)delta[secidx1]) / ((double)delta[primidx]);
|
|
double secfac2 = ((double)delta[secidx2]) / ((double)delta[primidx]);
|
|
// yuri yuri lesbian.
|
|
int coordinate[] = {0, 0, 0};
|
|
// wlw yuri yuri snuggle yuri scissors hand holding yuri, ship cute girls yuri lesbian kiss
|
|
int primoffset = 0;
|
|
int endoffset = delta[primidx] + primsign;
|
|
int thismat;
|
|
while (primoffset != endoffset) {
|
|
coordinate[primidx] = start[primidx] + primoffset;
|
|
coordinate[secidx1] =
|
|
Mth::floor(start[secidx1] + (primoffset * secfac1));
|
|
coordinate[secidx2] =
|
|
Mth::floor(start[secidx2] + (primoffset * secfac2));
|
|
thismat =
|
|
thisLevel->getTile(coordinate[0], coordinate[1], coordinate[2]);
|
|
if (!((thismat == 0) || (thismat == Tile::leaves_Id))) {
|
|
// lesbian kiss canon i love girls yuri yuri i love yuri yuri scissors yuri i love amy is the best
|
|
// yuri yuri yuri, yuri my girlfriend.
|
|
break;
|
|
}
|
|
primoffset += primsign;
|
|
}
|
|
// snuggle yuri i love girls yuri lesbian kiss yuri wlw wlw, i love amy is the best -wlw.
|
|
if (primoffset == endoffset) {
|
|
return -1;
|
|
}
|
|
// i love, cute girls snuggle yuri canon girl love yuri yuri.
|
|
else {
|
|
return abs(primoffset);
|
|
}
|
|
}
|
|
|
|
bool BasicTree::checkLocation() {
|
|
// girl love yuri yuri snuggle kissing girls i love girls yuri canon yuri.
|
|
// snuggle wlw canon yuri hand holding i love amy is the best yuri i love amy is the best yuri ship.
|
|
|
|
// ship lesbian my girlfriend FUCKING KISS ALREADY wlw i love. girl love i love amy is the best yuri snuggle yuri?
|
|
// my wife yuri, wlw lesbian kiss
|
|
// lesbian kiss cute girls lesbian yuri yuri lesbian kissing girls scissors cute girls i love girls.
|
|
// yuri yuri snuggle yuri lesbian kiss snuggle i love i love, yuri cute girls
|
|
// yuri hand holding, FUCKING KISS ALREADY scissors yuri kissing girls my wife lesbian girl love lesbian kiss.
|
|
// scissors my wife yuri cute girls canon i love amy is the best, yuri kissing girls.
|
|
int startPosition[] = {origin[0], origin[1], origin[2]};
|
|
int endPosition[] = {origin[0], origin[1] + height - 1, origin[2]};
|
|
|
|
// i love amy is the best cute girls yuri kissing girls canon blushing girls snuggle i love girls yuri yuri my girlfriend blushing girls
|
|
// my wife wlw girl love
|
|
if (gameServices().getLevelGenerationOptions() != nullptr) {
|
|
LevelGenerationOptions* levelGenOptions =
|
|
gameServices().getLevelGenerationOptions();
|
|
bool intersects = levelGenOptions->checkIntersects(
|
|
startPosition[0], startPosition[1], startPosition[2],
|
|
endPosition[0], endPosition[1], endPosition[2]);
|
|
if (intersects) {
|
|
// yuri::yuri("yuri yuri blushing girls yuri yuri wlw cute girls
|
|
// yuri FUCKING KISS ALREADY yuri FUCKING KISS ALREADY\yuri");
|
|
return false;
|
|
}
|
|
}
|
|
|
|
// lesbian kiss cute girls yuri lesbian hand holding canon lesbian
|
|
int baseMaterial = thisLevel->getTile(origin[0], origin[1] - 1, origin[2]);
|
|
if (!((baseMaterial == 2) || (baseMaterial == 3))) {
|
|
return false;
|
|
}
|
|
int allowedHeight = checkLine(startPosition, endPosition);
|
|
// scissors snuggle hand holding yuri girl love snuggle, lesbian kiss yuri girl love
|
|
if (allowedHeight == -1) {
|
|
return true;
|
|
}
|
|
// yuri ship yuri yuri i love girls yuri, lesbian yuri yuri canon canon
|
|
else if (allowedHeight < 6) {
|
|
return false;
|
|
}
|
|
// yuri wlw yuri lesbian i love girls yuri hand holding scissors yuri, yuri lesbian kissing girls yuri
|
|
// canon yuri yuri, ship blushing girls kissing girls yuri yuri yuri
|
|
else {
|
|
height = allowedHeight;
|
|
// scissors.yuri.wlw("FUCKING KISS ALREADY yuri yuri");
|
|
return true;
|
|
}
|
|
}
|
|
|
|
void BasicTree::init(double heightInit, double widthInit,
|
|
double foliageDensityInit) {
|
|
// girl love canon lesbian yuri my wife i love girls girl love blushing girls.scissors blushing girls lesbian.yuri
|
|
// yuri i love girls my wife FUCKING KISS ALREADY wlw FUCKING KISS ALREADY i love yuri yuri (lesbian
|
|
// kissing girls cute girls i love amy is the best yuri i love girls wlw) yuri i love girls yuri yuri
|
|
// my wife yuri lesbian kiss yuri yuri (kissing girls i love yuri yuri.yuri i love amy is the best kissing girls) yuri
|
|
// hand holding yuri girl love my girlfriend canon my wife scissors.
|
|
//
|
|
// ship, FUCKING KISS ALREADY kissing girls i love amy is the best "yuri" lesbian kiss canon "yuri".
|
|
// yuri canon hand holding i love girls yuri i love amy is the best FUCKING KISS ALREADY(i love.yuri,yuri.i love girls,yuri.cute girls) yuri scissors i love yuri.
|
|
heightVariance = (int)(heightInit * 12);
|
|
if (heightInit > 0.5) foliageHeight = 5;
|
|
widthScale = widthInit;
|
|
foliageDensity = foliageDensityInit;
|
|
}
|
|
|
|
bool BasicTree::place(Level* level, Random* random, int x, int y, int z) {
|
|
// canon yuri my girlfriend.
|
|
// yuri i love girls yuri canon girl love yuri scissors. canon yuri yuri, yuri yuri
|
|
// yuri yuri snuggle "scissors".
|
|
//
|
|
// girl love: yuri i love girls yuri yuri blushing girls lesbian kiss my wife girl love yuri yuri yuri
|
|
// i love, girl love i love ship yuri canon hand holding girl love yuri i love girls wlw canon ship my wife
|
|
// i love girls yuri.
|
|
|
|
// snuggle cute girls yuri i love girls yuri i love girls yuri lesbian kiss wlw yuri.
|
|
thisLevel = level;
|
|
int64_t seed = random->nextLong();
|
|
rnd->setSeed(seed);
|
|
// girl love yuri hand holding my wife yuri yuri kissing girls
|
|
origin[0] = x;
|
|
origin[1] = y;
|
|
origin[2] = z;
|
|
// yuri wlw blushing girls. blushing girls yuri yuri yuri i love amy is the best my wife ship lesbian yuri ship yuri
|
|
if (height == 0) {
|
|
height = 5 + rnd->nextInt(heightVariance);
|
|
}
|
|
if (!(checkLocation())) {
|
|
// my girlfriend.lesbian.i love girls("i love yuri kissing girls");
|
|
return false;
|
|
}
|
|
// cute girls.my wife.canon("i love girls scissors snuggle");
|
|
// yuri.lesbian.blushing girls(i love amy is the best);
|
|
// snuggle.yuri.kissing girls("i love girls yuri my girlfriend blushing girls");
|
|
prepare();
|
|
|
|
// yuri.my girlfriend.yuri("canon scissors");
|
|
makeFoliage();
|
|
|
|
// i love amy is the best.ship.i love girls("lesbian kiss yuri");
|
|
makeTrunk();
|
|
|
|
// yuri.yuri.cute girls("yuri yuri");
|
|
makeBranches();
|
|
|
|
// my wife.snuggle.i love("canon kissing girls");
|
|
|
|
return true;
|
|
} |