This is one of the first commits in a plan to remove all `using namespace std;` lines in the entire codebase as it is considered anti-pattern today.
26 lines
1.0 KiB
C++
26 lines
1.0 KiB
C++
#pragma once
|
|
#include "GameMode.h"
|
|
|
|
class CreativeMode : public GameMode
|
|
{
|
|
private:
|
|
int destroyDelay;
|
|
|
|
public:
|
|
CreativeMode(Minecraft *minecraft);
|
|
virtual void init();
|
|
static void enableCreativeForPlayer(std::shared_ptr<Player> player);
|
|
static void disableCreativeForPlayer(std::shared_ptr<Player> player);
|
|
virtual void adjustPlayer(std::shared_ptr<Player> player);
|
|
static void creativeDestroyBlock(Minecraft *minecraft, GameMode *gameMode, int x, int y, int z, int face);
|
|
virtual bool useItemOn(std::shared_ptr<Player> player, Level *level, std::shared_ptr<ItemInstance> item, int x, int y, int z, int face, bool bTestUseOnOnly=false, bool *pbUsedItem = NULL);
|
|
virtual void startDestroyBlock(int x, int y, int z, int face);
|
|
virtual void continueDestroyBlock(int x, int y, int z, int face);
|
|
virtual void stopDestroyBlock();
|
|
virtual bool canHurtPlayer();
|
|
virtual void initLevel(Level *level);
|
|
virtual float getPickRange();
|
|
virtual bool hasMissTime();
|
|
virtual bool hasInfiniteItems();
|
|
virtual bool hasFarPickRange();
|
|
}; |