the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#pragma once
2
3#include "ArrayWithLength.h"
4
5class BoundingBox
6{
7public:
8 int x0, y0, z0, x1, y1, z1;
9
10 BoundingBox();
11 BoundingBox(intArray sourceData);
12 static BoundingBox *getUnknownBox();
13 static BoundingBox *orientBox(int footX, int footY, int footZ, int offX, int offY, int offZ, int width, int height, int depth, int orientation);
14 BoundingBox(BoundingBox *other);
15 BoundingBox(int x0, int y0, int z0, int x1, int y1, int z1);
16 BoundingBox(int x0, int z0, int x1, int z1);
17 bool intersects(BoundingBox *other);
18 bool intersects(int x0, int y0, int z0, int x1, int y1, int z1);
19
20 bool intersects(int x0, int z0, int x1, int z1);
21 void expand(BoundingBox *other);
22 BoundingBox *getIntersection(BoundingBox *other);
23 void move(int dx, int dy, int dz);
24 bool isInside(int x, int y, int z);
25
26 int getXSpan();
27 int getYSpan();
28 int getZSpan();
29 int getXCenter();
30 int getYCenter();
31 int getZCenter();
32
33 wstring toString();
34 IntArrayTag *createTag(const wstring &name);
35};