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 "TutorialEnum.h"
4#include "TutorialConstraint.h"
5
6class AABB;
7class Tutorial;
8class GameType;
9
10class ChangeStateConstraint : public TutorialConstraint
11{
12private:
13 AABB *movementArea;
14 bool contains; // If true we must stay in this area, if false must stay out of this area
15 bool m_changeGameMode;
16 GameType *m_targetGameMode;
17 GameType *m_changedFromGameMode;
18
19 eTutorial_State m_targetState;
20 eTutorial_State *m_sourceStates;
21 DWORD m_sourceStatesCount;
22
23 bool m_bHasChanged;
24 eTutorial_State m_changedFromState;
25
26 bool m_bComplete;
27
28 Tutorial *m_tutorial;
29
30public:
31 virtual ConstraintType getType() { return e_ConstraintChangeState; }
32
33 ChangeStateConstraint( Tutorial *tutorial, eTutorial_State targetState, eTutorial_State sourceStates[], DWORD sourceStatesCount, double x0, double y0, double z0, double x1, double y1, double z1, bool contains = true, bool changeGameMode = false, GameType *targetGameMode = NULL );
34 ~ChangeStateConstraint();
35
36 virtual void tick(int iPad);
37};