2026-03-01 12:16:08 +08:00
|
|
|
#pragma once
|
|
|
|
|
#include "Tile.h"
|
|
|
|
|
|
|
|
|
|
class ChunkRebuildData;
|
|
|
|
|
class HugeMushroomTile : public Tile
|
|
|
|
|
{
|
|
|
|
|
friend class ChunkRebuildData;
|
|
|
|
|
public:
|
2026-03-03 03:04:10 +08:00
|
|
|
static const int MUSHROOM_TYPE_BROWN = 0;
|
|
|
|
|
static const int MUSHROOM_TYPE_RED = 1;
|
|
|
|
|
|
2026-03-01 12:16:08 +08:00
|
|
|
static const wstring TEXTURE_STEM;
|
|
|
|
|
static const wstring TEXTURE_INSIDE;
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
static const int HUGE_MUSHROOM_TEXTURE_COUNT = 2;
|
|
|
|
|
static const wstring TEXTURE_TYPE[];
|
|
|
|
|
int type;
|
|
|
|
|
Icon **icons;
|
|
|
|
|
Icon *iconStem;
|
|
|
|
|
Icon *iconInside;
|
|
|
|
|
public:
|
|
|
|
|
HugeMushroomTile(int id, Material *material, int type);
|
2026-03-03 03:04:10 +08:00
|
|
|
Icon *getTexture(int face, int data);
|
|
|
|
|
int getResourceCount(Random *random);
|
|
|
|
|
int getResource(int data, Random *random, int playerBonusLevel);
|
2026-03-01 12:16:08 +08:00
|
|
|
int cloneTileId(Level *level, int x, int y, int z);
|
|
|
|
|
void registerIcons(IconRegister *iconRegister);
|
|
|
|
|
};
|