Files
MinecraftConsoles/Minecraft.Client/Common/Tutorial/TutorialMode.h
void_17 7074f35e4b shared_ptr -> std::shared_ptr
This is one of the first commits in a plan to remove all `using namespace std;` lines in the entire codebase as it is considered anti-pattern today.
2026-03-02 15:58:20 +07:00

28 lines
920 B
C++

#pragma once
using namespace std;
#include "..\..\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; }
};