Initial commit

This commit is contained in:
Stillkill committed 2026-03-08 15:26:08 -05:00
commit b0e73a61aa
16345 files changed
+3104967

No files matched your search

+52
View File
@@ -0,0 +1,52 @@
#pragma once
using namespace std;
#include "Tile.h"
#include "Definitions.h"
class Random;
class ReedTile : public Tile
{
friend class Tile;
protected:
ReedTile(int id);
public:
virtual void updateDefaultShape(); // 4J Added override
void tick(Level *level, int x, int y, int z, Random* random);
public:
bool mayPlace(Level *level, int x, int y, int z);
public:
void neighborChanged(Level *level, int x, int y, int z, int type);
protected:
const void checkAlive(Level *level, int x, int y, int z);
public:
bool canSurvive(Level *level, int x, int y, int z);
public:
AABB *getAABB(Level *level, int x, int y, int z);
public:
int getResource(int data, Random *random, int playerBonusLevel);
public:
bool blocksLight();
public:
bool isSolidRender(bool isServerLevel = false);
public:
bool isCubeShaped();
public:
int getRenderShape();
virtual int cloneTileId(Level *level, int x, int y, int z);
// 4J Added so we can check before we try to add a tile to the tick list if it's actually going to do seomthing
virtual bool shouldTileTick(Level *level, int x,int y,int z);
};