#pragma once

#include "GameMode.hpp"

class Abilities;
class Minecraft;

class SurvivalMode: public GameMode
{
	typedef GameMode super;
public:
	SurvivalMode(Minecraft& minecraft);

	bool destroyBlock(Player* player, int x, int y, int z, int face);
	void startDestroyBlock(Player* player, int x, int y, int z, int face);
	void continueDestroyBlock(Player* player, int x, int y, int z, int face);
	void stopDestroyBlock(Player* player);

	bool canHurtPlayer() { return true; }

	bool isSurvivalType() { return true; }

	void initAbilities( Abilities& abilities );
private:
	int xDestroyBlock;
	int yDestroyBlock;
	int zDestroyBlock;
};

