mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-25 10:13:40 +00:00
27 lines
867 B
C++
27 lines
867 B
C++
#pragma once
|
|
// using namespace std;
|
|
|
|
#include "TutorialTask.h"
|
|
|
|
// A task that creates an maintains an area constraint until it is activated
|
|
class AreaTask : public TutorialTask {
|
|
public:
|
|
enum EAreaTaskCompletionStates {
|
|
eAreaTaskCompletion_CompleteOnActivation,
|
|
eAreaTaskCompletion_CompleteOnConstraintsSatisfied,
|
|
};
|
|
|
|
private:
|
|
EAreaTaskCompletionStates m_completionState;
|
|
eTutorial_State m_tutorialState;
|
|
|
|
public:
|
|
AreaTask(eTutorial_State state, Tutorial* tutorial,
|
|
std::vector<TutorialConstraint*>* inConstraints,
|
|
int descriptionId = -1,
|
|
EAreaTaskCompletionStates completionState =
|
|
eAreaTaskCompletion_CompleteOnActivation);
|
|
virtual bool isCompleted();
|
|
virtual void setAsCurrentTask(bool active = true);
|
|
virtual void onStateChange(eTutorial_State newState);
|
|
}; |