the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#pragma once
2
3#include "TutorialTask.h"
4
5// A tutorial task that requires each of the task to be completed in order until the last one is complete.
6// If an earlier task that was complete is now not complete then it's hint should be shown.
7class ProcedureCompoundTask : public TutorialTask
8{
9public:
10 ProcedureCompoundTask(Tutorial *tutorial )
11 : TutorialTask(tutorial, -1, false, NULL, false, true, false )
12 {}
13
14 ~ProcedureCompoundTask();
15
16 void AddTask(TutorialTask *task);
17
18 virtual int getDescriptionId();
19 virtual int getPromptId();
20 virtual bool isCompleted();
21 virtual void onCrafted(shared_ptr<ItemInstance> item);
22 virtual void handleUIInput(int iAction);
23 virtual void setAsCurrentTask(bool active = true);
24 virtual bool ShowMinimumTime();
25 virtual bool hasBeenActivated();
26 virtual void setShownForMinimumTime();
27 virtual bool AllowFade();
28
29 virtual void useItemOn(Level *level, shared_ptr<ItemInstance> item, int x, int y, int z, bool bTestUseOnly=false);
30 virtual void useItem(shared_ptr<ItemInstance> item, bool bTestUseOnly=false);
31 virtual void onTake(shared_ptr<ItemInstance> item, unsigned int invItemCountAnyAux, unsigned int invItemCountThisAux);
32 virtual void onStateChange(eTutorial_State newState);
33
34private:
35 vector<TutorialTask *> m_taskSequence;
36};