the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at master 42 lines 912 B view raw
1#pragma once 2#include "Tile.h" 3#include "Material.h" 4#include "Definitions.h" 5 6class Random; 7class Level; 8 9class Bush : public Tile 10{ 11 friend class Tile; 12 13private: 14 void _init(); 15 16protected: 17 Bush(int id, Material *material); 18 Bush(int id); 19 20public: 21 virtual void updateDefaultShape(); 22 virtual bool mayPlace(Level *level, int x, int y, int z); 23 24protected: 25 virtual bool mayPlaceOn(int tile); 26 27public: 28 virtual void neighborChanged(Level *level, int x, int y, int z, int type); 29 virtual void tick(Level *level, int x, int y, int z, Random *random); 30 31protected: 32 void checkAlive(Level *level, int x, int y, int z); 33 34public: 35 virtual bool canSurvive(Level *level, int x, int y, int z); 36 virtual AABB *getAABB(Level *level, int x, int y, int z); 37 virtual bool blocksLight(); 38 39 virtual bool isSolidRender(bool isServerLevel = false); 40 virtual bool isCubeShaped(); 41 virtual int getRenderShape(); 42};