2026-03-01 12:16:08 +08:00
|
|
|
#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();
|
2026-03-02 17:37:16 +07:00
|
|
|
virtual void useItem(shared_ptr<ItemInstance> item, bool bTestUseOnly=false);
|
2026-03-01 12:16:08 +08:00
|
|
|
};
|