]> git.localhorst.tv Git - l2e.git/blob - src/common/GameState.h
4080630a21e84e79681c7a029dc8c5fa2bda8c0e
[l2e.git] / src / common / GameState.h
1 #ifndef COMMON_GAMESTATE_H_
2 #define COMMON_GAMESTATE_H_
3
4 #include "Capsule.h"
5 #include "Hero.h"
6 #include "Inventory.h"
7
8 #include <SDL.h>
9
10 namespace common {
11
12 struct GameState {
13
14         GameState();
15
16         Hero heroes[7];
17         int NumHeroes() const { return 7; }
18         Hero *party[4];
19         int partySize;
20
21         Capsule capsules[7];
22         int NumCapsules() const { return 7; }
23         Capsule *capsule;
24
25         Inventory inventory;
26
27         Uint32 money;
28         Uint32 time;
29
30         enum MessageSpeed {
31                 MESSAGE_SPEED_FAST,
32                 MESSAGE_SPEED_NORMAL,
33                 MESSAGE_SPEED_SLOW,
34         };
35         enum Cursor {
36                 CURSOR_CLEAR,
37                 CURSOR_MEMORY,
38         };
39         enum Music {
40                 MUSIC_STEREO,
41                 MUSIC_MONO,
42         };
43         int messageSpeed;
44         int battleCursor;
45         int statusCursor;
46         int music;
47
48 };
49
50 }
51
52 #endif /* COMMON_GAMESTATE_H_ */