mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-25 15:43:37 +00:00
22 lines
666 B
C++
22 lines
666 B
C++
#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;
|
|
|
|
public:
|
|
UseItemTask(const int itemId, Tutorial* tutorial, int descriptionId,
|
|
bool enablePreCompletion = false,
|
|
std::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);
|
|
}; |