mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-25 15:03:37 +00:00
25 lines
581 B
C++
25 lines
581 B
C++
#pragma once
|
|
// using namespace std;
|
|
|
|
#include <unordered_map>
|
|
|
|
#include "TutorialTask.h"
|
|
|
|
class Tutorial;
|
|
|
|
// Information messages
|
|
class InfoTask : public TutorialTask {
|
|
private:
|
|
std::unordered_map<int, bool> completedMappings;
|
|
|
|
bool CompletionMaskIsValid();
|
|
|
|
public:
|
|
InfoTask(
|
|
Tutorial* tutorial, int descriptionId, int promptId = -1,
|
|
bool requiresUserInput = false, int iMapping = 0);
|
|
virtual bool isCompleted();
|
|
virtual int getPromptId();
|
|
virtual void setAsCurrentTask(bool active = true);
|
|
virtual void handleUIInput(int iAction);
|
|
}; |