the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 49 lines 1.4 kB view raw
1#pragma once 2#include "Tile.h" 3#include "Bush.h" 4 5class ChunkRebuildData; 6class StemTile : public Bush 7{ 8 friend class ChunkRebuildData; 9public: 10 static const wstring TEXTURE_ANGLED; 11 12private: 13 Tile *fruit; 14 Icon *iconAngled; 15 16public: 17 StemTile(int id, Tile *fruit); 18 19 virtual bool mayPlaceOn(int tile); 20public: 21 virtual void tick(Level *level, int x, int y, int z, Random *random); 22 virtual void growCrops(Level *level, int x, int y, int z); 23 24private: 25 float getGrowthSpeed(Level *level, int x, int y, int z); 26 27public: 28 using Tile::getColor; 29 int getColor(int data); 30 31 virtual int getColor(LevelSource *level, int x, int y, int z); 32 virtual void updateDefaultShape(); 33 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 34 virtual int getRenderShape(); 35 36 int getConnectDir(LevelSource *level, int x, int y, int z); 37 38 /** 39 * Using this method instead of destroy() to determine if seeds should be 40 * dropped 41 */ 42 virtual void spawnResources(Level *level, int x, int y, int z, int data, float odds, int playerBonus); 43 44 virtual int getResource(int data, Random *random, int playerBonusLevel); 45 virtual int getResourceCount(Random *random); 46 virtual int cloneTileId(Level *level, int x, int y, int z); 47 void registerIcons(IconRegister *iconRegister); 48 Icon *getAngledTexture(); 49};