/********************************************************************
	Minecraft: Pocket Edition - Decompilation Project
	Copyright (C) 2023 iProgramInCpp
	
	The following code is licensed under the BSD 1 clause license.
	SPDX-License-Identifier: BSD-1-Clause
 ********************************************************************/

#pragma once

#include "GameMode.hpp"

class CreativeMode : public GameMode
{
public:
	CreativeMode(Minecraft*);
	bool destroyBlock(int, int, int, int) override;

	float getPickRange() override;
	bool isCreativeType() override;
	bool isSurvivalType() override;

	void initPlayer(Player*) override;
	void startDestroyBlock(int x, int y, int z, int i) override;
	void continueDestroyBlock(int x, int y, int z, int i) override;
	void stopDestroyBlock() override;
	void tick() override;
	void render(float f) override;

public:
	int m_destroyingX;
	int m_destroyingY;
	int m_destroyingZ;
	float m_destroyProgress;
	float m_lastDestroyProgress;
	int m_destroyTicks;
	int m_destroyCooldown;
};

