forked from ReMinecraftPE/mcpe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSurvivalMode.hpp
39 lines (32 loc) · 1.03 KB
/
SurvivalMode.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/********************************************************************
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 SurvivalMode : public GameMode
{
public:
SurvivalMode(Minecraft*);
void startDestroyBlock(int x, int y, int z, int i) override;
bool destroyBlock(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;
float getPickRange() override;
bool isCreativeType() override;
bool isSurvivalType() override;
void initPlayer(Player*) override;
bool canHurtPlayer() override;
public:
int m_destroyingX;
int m_destroyingY;
int m_destroyingZ;
float m_destroyProgress;
float m_lastDestroyProgress;
int m_destroyTicks;
int m_destroyCooldown;
};