-
Notifications
You must be signed in to change notification settings - Fork 56
/
Copy pathStonesenseState.h
77 lines (61 loc) · 1.69 KB
/
StonesenseState.h
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#pragma once
#include "commonTypes.h"
#include "GameConfiguration.h"
#include "GameState.h"
#include "WorldSegment.h"
#include "allegro5/allegro_font.h"
#include "allegro5/mouse.h"
#include "allegro5/keyboard.h"
#include "allegro5/timer.h"
class ContentLoader;
constexpr auto RANDOM_CUBE = 16;
class MapState
{
public:
};
class StonesenseState
{
public:
FrameTimers stoneSenseTimers;
bool timeToReloadSegment;
bool timeToReloadConfig;
char currentAnimationFrame;
uint32_t currentFrameLong;
bool animationFrameShown;
ALLEGRO_FONT* font;
ALLEGRO_KEYBOARD_STATE keyboard;
ALLEGRO_TIMER* reloadtimer;
ALLEGRO_TIMER* animationtimer;
ALLEGRO_MOUSE_STATE mouse;
int randomCube[RANDOM_CUBE][RANDOM_CUBE][RANDOM_CUBE];
std::unique_ptr<MapState> currentMap;
std::unique_ptr<ContentLoader> contentLoader;
GameConfiguration ssConfig;
GameState ssState;
int MiniMapTopLeftX;
int MiniMapTopLeftY;
int MiniMapBottomRightX;
int MiniMapBottomRightY;
int MiniMapSegmentWidth;
int MiniMapSegmentHeight;
double oneTileInPixels;
ALLEGRO_BITMAP* IMGObjectSheet;
ALLEGRO_BITMAP* IMGCreatureSheet;
ALLEGRO_BITMAP* IMGRampSheet;
ALLEGRO_BITMAP* IMGStatusSheet;
ALLEGRO_BITMAP* IMGProfSheet;
ALLEGRO_BITMAP* IMGJobSheet;
ALLEGRO_BITMAP* IMGBloodSheet;
ALLEGRO_BITMAP* IMGEngFloorSheet;
ALLEGRO_BITMAP* IMGEngLeftSheet;
ALLEGRO_BITMAP* IMGEngRightSheet;
ALLEGRO_BITMAP* IMGLetterSheet;
int mouse_x;
int mouse_y;
int mouse_z;
unsigned int mouse_b;
SegmentWrap map_segment;
int lift_segment_offscreen_x;
int lift_segment_offscreen_y;
};
extern StonesenseState stonesenseState;