mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-06-05 17:42:54 +00:00
28 lines
660 B
C++
28 lines
660 B
C++
#pragma once
|
|
#include "PlantTile.h"
|
|
|
|
class Random;
|
|
|
|
class Mushroom : public Bush {
|
|
friend class Tile;
|
|
|
|
private:
|
|
std::wstring texture;
|
|
|
|
protected:
|
|
Mushroom(int id, const std::wstring& texture);
|
|
|
|
public:
|
|
virtual void updateDefaultShape(); // 4J Added override
|
|
virtual void tick(Level* level, int x, int y, int z, Random* random);
|
|
virtual bool mayPlace(Level* level, int x, int y, int z);
|
|
|
|
protected:
|
|
virtual bool mayPlaceOn(int tile);
|
|
|
|
public:
|
|
virtual bool canSurvive(Level* level, int x, int y, int z);
|
|
bool growTree(Level* level, int x, int y, int z, Random* random);
|
|
void registerIcons(IconRegister* iconRegister);
|
|
};
|