mirror of
https://github.com/celisej567/mcpe.git
synced 2026-01-03 05:49:04 +03:00
* macOS Support & Cleanup * Fix malformed comments in build-wasm.bat * Emscripten Fixes * * Add shebang to the grabsounds.py script Since it was changed from rw- to rwx, I'll add the shebang so that it actually runs properly. * * Re-add the patch_data and readme files. * * Remove sound data. * Fix some more things. * Think it's ready to pull now... --------- Co-authored-by: BrentDaMage <BrentDaMage@users.noreply.github.com> Co-authored-by: iProgramInCpp <iprogramincpp@gmail.com>
40 lines
1.0 KiB
C++
40 lines
1.0 KiB
C++
/********************************************************************
|
|
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;
|
|
};
|
|
|