mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-20 23:25:34 +00:00
exclude unused GameMode implementations, format Platform/Common/Tutorial
This commit is contained in:
@@ -1,28 +1,32 @@
|
||||
#pragma once
|
||||
//using namespace std;
|
||||
// using namespace std;
|
||||
|
||||
#include "../../Minecraft.Client/Player/MultiPlayerGameMode.h"
|
||||
#include "Tutorial.h"
|
||||
|
||||
class TutorialMode : public MultiPlayerGameMode
|
||||
{
|
||||
class TutorialMode : public MultiPlayerGameMode {
|
||||
protected:
|
||||
Tutorial *tutorial;
|
||||
int m_iPad;
|
||||
Tutorial* tutorial;
|
||||
int m_iPad;
|
||||
|
||||
// Function to make this an abstract class
|
||||
virtual bool isImplemented() = 0;
|
||||
|
||||
// Function to make this an abstract class
|
||||
virtual bool isImplemented() = 0;
|
||||
public:
|
||||
TutorialMode(int iPad, Minecraft *minecraft, ClientConnection *connection);
|
||||
virtual ~TutorialMode();
|
||||
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 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);
|
||||
virtual bool isInputAllowed(int mapping);
|
||||
|
||||
Tutorial *getTutorial() { return tutorial; }
|
||||
Tutorial* getTutorial() { return tutorial; }
|
||||
};
|
||||
Reference in New Issue
Block a user