forked from JohnAnthony/TROG
-
Notifications
You must be signed in to change notification settings - Fork 0
/
game.hpp
55 lines (49 loc) · 1.25 KB
/
game.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#ifndef GAME_H
#define GAME_H
#include "level.hpp"
#include "character.hpp"
#include "geometry.hpp"
#include "enemy.hpp"
#include "scrollable_menu.hpp"
#include <string>
class Level;
namespace GameMode {
typedef enum {
MAP_WALK,
MAP_LOOK,
INFO_SCREEN,
CHARACTER_SCREEN,
INVENTORY_SCREEN,
POTION_SELECT,
READING_SELECT
} Type;
}
class Game {
public:
Game(Character *c);
~Game(void);
bool Run(void);
GameMode::Type HandleInput(int c);
void GoUpALevel(void);
void GoDownALevel(void);
void SwitchGameMode(GameMode::Type gmt);
void MoveCharacter(Direction::Type d);
void DrawLookTarget(void);
void MoveLookTarget(Direction::Type d);
void DoPickup(void);
void HandleResize(int signal);
void DoAttack(Character *c, Enemy *e);
void DoWait(void);
void RepopulatePotionMenu(void);
void RepopulateBookMenu(void);
Level* levels;
Level* cur_level;
Character* character;
int cur_floor;
bool running;
GameMode::Type game_mode;
Point target; //Look target
ScrollableMenu *PotionSelectMenu;
ScrollableMenu *BookSelectMenu;
};
#endif