Making the tutrial works - Part 2

This commit is contained in:
Futuray-pgm 2024-07-27 21:17:49 +02:00
parent a779387ef4
commit 39f4313f1f
1 changed files with 14 additions and 9 deletions

View File

@ -54,14 +54,23 @@
#include "log.h"
#include "common.h"
#include "keycode.h"
#include <string>
#define TUTORIAL_WALK 0
#define TUTORIAL_LOOK 1
#define TUTORIAL_DIG_PLACE 2
#define TUTORIAL_JUMP 1
// #define TUTORIAL_LOOK 2 # FIXME : find a way to check if the player look around
#define TUTORIAL_INVENTORY 2
// #define TUTORIAL_DIG_PLACE 3 # FIXME : find a way to check if the player push Leftclick
#define TUTORIAL_EAT 3
#define TUTORIAL_INVENTORY 4
#define TUTORIAL_KEY_WALK VLKC_FORWARD
#define TUTORIAL_KEY_JUMP VLKC_JUMP
// #define TUTORIAL_KEY_LOOK ???
#define TUTORIAL_KEY_INVENTORY VLKC_INVENTORY
// #define TUTORIAL_KEY_DIG_PLACE VLKC_FORWARD
#define TUTORIAL_KEY_EAT VLKC_USE
class Tutorial
{
@ -72,17 +81,13 @@ public:
virtual ~Tutorial();
std::string getText(int num);
void setCurrentTutorialToNext();
void setCurrentTutorialToNumber(int number);
int getCurrentTutorialNumber();
int getCurrentTutorialCompletionValue();
std::string getCurrentTutorialText();
std::string getNumberText(int number);
int currentTutorial;
};
#endif