Files
MinecraftConsoles/Minecraft.Client/Common/Tutorial/ChangeStateConstraint.h
ModMaker101 a9be52c41a Project modernization (#630)
* Fixed boats falling and a TP glitch #266

* Replaced every C-style cast with C++ ones

* Replaced every C-style cast with C++ ones

* Fixed boats falling and a TP glitch #266

* Updated NULL to nullptr and fixing some type issues

* Modernized and fixed a few bugs

- Replaced most instances of `NULL` with `nullptr`.
- Replaced most `shared_ptr(new ...)` with `make_shared`.
- Removed the `nullptr` macro as it was interfering with the actual nullptr keyword in some instances.

* Fixing more conflicts

* Replace int loops with size_t and start work on overrides
2026-03-08 09:56:03 +07:00

37 lines
1006 B
C++

#pragma once
#include "TutorialEnum.h"
#include "TutorialConstraint.h"
class AABB;
class Tutorial;
class GameType;
class ChangeStateConstraint : public TutorialConstraint
{
private:
AABB *movementArea;
bool contains; // If true we must stay in this area, if false must stay out of this area
bool m_changeGameMode;
GameType *m_targetGameMode;
GameType *m_changedFromGameMode;
eTutorial_State m_targetState;
eTutorial_State *m_sourceStates;
DWORD m_sourceStatesCount;
bool m_bHasChanged;
eTutorial_State m_changedFromState;
bool m_bComplete;
Tutorial *m_tutorial;
public:
virtual ConstraintType getType() { return e_ConstraintChangeState; }
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 = nullptr );
~ChangeStateConstraint();
virtual void tick(int iPad);
};