]> git.localhorst.tv Git - l2e.git/blob - src/common/GameState.h
added Compiler to turn an interpretation into an object file
[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 capsule;
23         int NumCapsules() const { return 7; }
24         Capsule &GetCapsule() { return capsules[capsule]; }
25         const Capsule &GetCapsule() const { return capsules[capsule]; }
26
27         Inventory inventory;
28
29         Uint32 money;
30         Uint32 time;
31
32         enum MessageSpeed {
33                 MESSAGE_SPEED_FAST,
34                 MESSAGE_SPEED_NORMAL,
35                 MESSAGE_SPEED_SLOW,
36         };
37         enum Cursor {
38                 CURSOR_CLEAR,
39                 CURSOR_MEMORY,
40         };
41         enum Music {
42                 MUSIC_STEREO,
43                 MUSIC_MONO,
44         };
45         int messageSpeed;
46         int battleCursor;
47         int statusCursor;
48         int music;
49
50 };
51
52 }
53
54 #endif