aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/Common/Tutorial/ProgressFlagTask.h
blob: 9baea5a57c6a02b82c35869ed7f499233a60aa79 (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
25
#pragma once
using namespace std;
#include "Tutorial.h"
#include "TutorialTask.h"

class ProgressFlagTask : public TutorialTask
{
public:
	enum EProgressFlagType
	{
		e_Progress_Set_Flag,
		e_Progress_Flag_On,
	};
private:
	char *flags; // Not a member of this object
	char m_mask;
	EProgressFlagType m_type;
public:
	ProgressFlagTask(char *flags, char mask, EProgressFlagType type, Tutorial *tutorial ) :
	TutorialTask(tutorial, -1, false, nullptr ),
		flags( flags ), m_mask( mask ), m_type( type )
	{}

	virtual bool isCompleted();
};