-
Notifications
You must be signed in to change notification settings - Fork 0
/
defines.h
103 lines (88 loc) · 1.28 KB
/
defines.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
/*
* defines.h
* sfmltest1
*
* Created by Steven Hamilton on 6/07/09.
* Copyright 2009 scorch.org. All rights reserved.
*
*/
#ifndef __DEFINES_H__
#define __DEFINES_H__
enum screenType_t {
SCREEN_TITLE,
SCREEN_EMBARK,
SCREEN_INTRO,
SCREEN_MATCH,
SCREEN_RESULT,
SCREEN_HELP,
SCREEN_GAMEOVER,
SCREEN_OPTIONS
};
//creature
enum move_t {
MOVE_RIGHT=6,
MOVE_LEFT=4,
MOVE_UP=8,
MOVE_DOWN=2,
MOVE_UP_RIGHT=9,
MOVE_UP_LEFT=7,
MOVE_DOWN_RIGHT=3,
MOVE_DOWN_LEFT=1,
NO_MOVE=5
};
enum firingMode_t {
NONE,
AIMED,
SNAPSHOT,
};
enum faction_t {
FRIEND,
ENEMY,
NEUTRAL
};
enum creature_t {
HUMAN,
SLITHER,
GIMP,
SPIDER,
};
enum parameter_t {
SQUADSIZE
};
enum gfxId_t{
GRASS_S,
DIRT_S,
STONE_WALL_S,
COBBLES_S,
WATER_S,
RUBBLE_S,
FENCE_S,
TREE_S,
DOOR_S,
WINDOW_S,
PLAYER_S,
SLITHER_S,
GIMP_S,
SPIDER_S,
WEAPON_S,
CORPSE_S,
BULLET_S,
TARGET_S,
SELECTED_S,
LOWWALL_S,
STATUE_S,
BLANK_S,
WELL_S
};
//world
int const NUMBEROFMONSTERS = 4;
int const NUMBEROFPLAYERS = 3;
int const NUMBEROFBASEPLAYERS = 8;
//calcs
double const PI=3.14159265;
//macros
#define DISPLAY DisplayManager::instance()
#define WORLD GameWorld::instance()
#define MSG WORLD.sendMessageToConsole
#define PROMPT WORLD.sendMessageToPrompt
#endif