blob: 2982412e268ea8392457d5e9aafbb05bbbfc5b36 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#pragma once
using namespace std;
#include "TutorialTask.h"
class Level;
// 4J Stu - Tasks that involve placing a tile
class UseItemTask : public TutorialTask
{
private:
const int itemId;
bool completed;
public:
UseItemTask(const int itemId, Tutorial *tutorial, int descriptionId,
bool enablePreCompletion = false, vector<TutorialConstraint *> *inConstraints = NULL, bool bShowMinimumTime = false, bool bAllowFade = true, bool bTaskReminders = true );
virtual bool isCompleted();
virtual void useItem(std::shared_ptr<ItemInstance> item, bool bTestUseOnly=false);
};
|