forked from oerkki/voxelands
Making the tutrial works - Part 2
This commit is contained in:
parent
a779387ef4
commit
39f4313f1f
|
@ -54,14 +54,23 @@
|
||||||
|
|
||||||
#include "log.h"
|
#include "log.h"
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
#include "keycode.h"
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#define TUTORIAL_WALK 0
|
#define TUTORIAL_WALK 0
|
||||||
#define TUTORIAL_LOOK 1
|
#define TUTORIAL_JUMP 1
|
||||||
#define TUTORIAL_DIG_PLACE 2
|
// #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_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
|
class Tutorial
|
||||||
{
|
{
|
||||||
|
@ -72,17 +81,13 @@ public:
|
||||||
virtual ~Tutorial();
|
virtual ~Tutorial();
|
||||||
|
|
||||||
std::string getText(int num);
|
std::string getText(int num);
|
||||||
|
|
||||||
void setCurrentTutorialToNext();
|
void setCurrentTutorialToNext();
|
||||||
|
|
||||||
void setCurrentTutorialToNumber(int number);
|
void setCurrentTutorialToNumber(int number);
|
||||||
|
|
||||||
int getCurrentTutorialNumber();
|
int getCurrentTutorialNumber();
|
||||||
|
int getCurrentTutorialCompletionValue();
|
||||||
std::string getCurrentTutorialText();
|
std::string getCurrentTutorialText();
|
||||||
|
|
||||||
std::string getNumberText(int number);
|
std::string getNumberText(int number);
|
||||||
|
|
||||||
int currentTutorial;
|
int currentTutorial;
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue