mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-06-01 01:22:52 +00:00
31 lines
837 B
C++
31 lines
837 B
C++
#pragma once
|
|
#include "Tile.h"
|
|
|
|
class ChunkRebuildData;
|
|
class HugeMushroomTile : public Tile {
|
|
friend class ChunkRebuildData;
|
|
|
|
public:
|
|
static const int MUSHROOM_TYPE_BROWN = 0;
|
|
static const int MUSHROOM_TYPE_RED = 1;
|
|
|
|
static const std::wstring TEXTURE_STEM;
|
|
static const std::wstring TEXTURE_INSIDE;
|
|
|
|
private:
|
|
static const int HUGE_MUSHROOM_TEXTURE_COUNT = 2;
|
|
static const std::wstring TEXTURE_TYPE[];
|
|
int type;
|
|
Icon** icons;
|
|
Icon* iconStem;
|
|
Icon* iconInside;
|
|
|
|
public:
|
|
HugeMushroomTile(int id, Material* material, int type);
|
|
Icon* getTexture(int face, int data);
|
|
int getResourceCount(Random* random);
|
|
int getResource(int data, Random* random, int playerBonusLevel);
|
|
int cloneTileId(Level* level, int x, int y, int z);
|
|
void registerIcons(IconRegister* iconRegister);
|
|
};
|