mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-25 10:53:36 +00:00
32 lines
1.1 KiB
C++
32 lines
1.1 KiB
C++
#pragma once
|
|
// using namespace std;
|
|
|
|
#include "../../Minecraft.Client/Player/MultiPlayerGameMode.h"
|
|
#include "Tutorial.h"
|
|
|
|
class TutorialMode : public MultiPlayerGameMode {
|
|
protected:
|
|
Tutorial* tutorial;
|
|
int m_iPad;
|
|
|
|
// Function to make this an abstract class
|
|
virtual bool isImplemented() = 0;
|
|
|
|
public:
|
|
TutorialMode(int iPad, Minecraft* minecraft, ClientConnection* connection);
|
|
virtual ~TutorialMode();
|
|
|
|
virtual void startDestroyBlock(int x, int y, int z, int face);
|
|
virtual bool destroyBlock(int x, int y, int z, int face);
|
|
virtual void tick();
|
|
virtual bool useItemOn(std::shared_ptr<Player> player, Level* level,
|
|
std::shared_ptr<ItemInstance> item, int x, int y,
|
|
int z, int face, Vec3* hit,
|
|
bool bTestUseOnly = false, bool* pbUsedItem = NULL);
|
|
virtual void attack(std::shared_ptr<Player> player,
|
|
std::shared_ptr<Entity> entity);
|
|
|
|
virtual bool isInputAllowed(int mapping);
|
|
|
|
Tutorial* getTutorial() { return tutorial; }
|
|
}; |