aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/Common/Tutorial/UseTileTask.h
blob: 1f72fb2ed4d4106af7e9ece751358775fa6c13cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#pragma once
using namespace std;

#include "TutorialTask.h"

class Level;

// 4J Stu - Tasks that involve using a tile, with or without an item. e.g. Opening a chest
class UseTileTask : public TutorialTask
{
private:
	int x,y,z;
	const int tileId;
	bool useLocation;
	bool completed;

public:
	UseTileTask(const int tileId, int x, int y, int z, Tutorial *tutorial, int descriptionId,
		bool enablePreCompletion = false, vector<TutorialConstraint *> *inConstraints = nullptr, bool bShowMinimumTime = false, bool bAllowFade = true, bool bTaskReminders = true );
	UseTileTask(const int tileId, Tutorial *tutorial, int descriptionId,
		bool enablePreCompletion = false, vector<TutorialConstraint *> *inConstraints = nullptr, bool bShowMinimumTime = false, bool bAllowFade = true, bool bTaskReminders = true);
	virtual bool isCompleted();
	virtual void useItemOn(Level *level, shared_ptr<ItemInstance> item, int x, int y, int z, bool bTestUseOnly=false);
};