the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at master 44 lines 1.7 kB view raw
1#pragma once 2#include "Tile.h" 3#include "Material.h" 4#include "Definitions.h" 5 6class Player; 7class Random; 8class Level; 9class ChunkRebuildData; 10 11class CakeTile : public Tile 12{ 13 friend class Tile; 14 friend class ChunkRebuildData; 15 16private: 17 Icon *iconTop; 18 Icon *iconBottom; 19 Icon *iconInner; 20 21protected: 22 CakeTile(int id); 23 virtual void updateShape(LevelSource *level, int x, int y, int z, int forceData = -1, shared_ptr<TileEntity> forceEntity = shared_ptr<TileEntity>()); // 4J added forceData, forceEntity param 24 virtual void updateDefaultShape(); 25 virtual AABB *getAABB(Level *level, int x, int y, int z); 26 virtual AABB *getTileAABB(Level *level, int x, int y, int z); 27 virtual Icon *getTexture(int face, int data); 28 //@Override 29 void registerIcons(IconRegister *iconRegister); 30 virtual bool isCubeShaped(); 31 virtual bool isSolidRender(bool isServerLevel = false); 32 virtual bool TestUse(); 33 virtual bool use(Level *level, int x, int y, int z, shared_ptr<Player> player, int clickedFace, float clickX, float clickY, float clickZ, bool soundOnly = false); // 4J added soundOnly param 34 virtual void attack(Level *level, int x, int y, int z, shared_ptr<Player> player); 35private: 36 void eat(Level *level, int x, int y, int z, shared_ptr<Player> player); 37public: 38 virtual bool mayPlace(Level *level, int x, int y, int z); 39 virtual void neighborChanged(Level *level, int x, int y, int z, int type); 40 virtual bool canSurvive(Level *level, int x, int y, int z); 41 virtual int getResourceCount(Random *random); 42 virtual int getResource(int data, Random *random, int playerBonusLevel); 43 int cloneTileId(Level *level, int x, int y, int z); 44};