Galactic Bloodshed
csp_types.h
Go to the documentation of this file.
1 // Copyright 2014 The Galactic Bloodshed Authors. All rights reserved.
2 // Use of this source code is governed by a license that can be
3 // found in the COPYING file.
4 
5 /* csp_types.h: Variables and defines used internally in CSP related functions
6  */
7 
8 #ifndef CSP_TYPES_H
9 #define CSP_TYPES_H
10 
11 /* character to be found in column 0 of a CSP output line */
12 /* sent by server to client */
13 #define CSP_CLIENT '|'
14 
15 /* identifier sent by client to server when sending a command/request */
16 #define CSP_SERVER "CSP"
17 
18 /* Maximum depth of scope ie: nested ships */
19 #define CSPD_MAXSHIP_SCOPE 10
20 #define CSPD_NOSHIP 0
21 
22 /* Maximum number of unique letters in star and planet names */
23 #define MAX_SCOPE_LTRS 4
24 
25 /* Levels for sending the prompt used in CSP_PROMPT */
26 enum LOCATION {
27  CSPD_UNIV, /* 0 */
28  CSPD_STAR, /* 1 */
29  CSPD_PLAN, /* 2 */
31 };
32 
33 /* used in CSP_PROFILE among other places */
34 enum RACE_TYPE {
36  CSPD_RACE_MORPH, /* 1 */
38 };
39 
40 /* used in CSP_PROFILE and CSP_RELATION */
41 enum RELATION {
46 };
47 
48 /* used in CSP_MAP */
49 enum TROOPS {
55 };
56 
57 /* used in CSP_PROFILE for discoveries */
59  CSPD_HYPERDRIVE, /* 0 */
60  CSPD_CRYSTAL, /* 1 */
61  CSPD_LASER, /* 2 */
62  CSPD_CEW, /* 3 */
63  CSPD_AVPM, /* 4 */
66 };
67 
69  CSPD_NORMAL, /* 0 */
70  CSPD_DIETY, /* 1 */
71  CSPD_GUEST /* 2 */
72 };
73 
85 };
86 
96 };
97 
104 };
105 
106 #define CSPD_XTAL_SYMBOL 'x'
107 #define CSPD_TROOP_MINE_SYMBOL 'X'
108 #define CSPD_TROOP_ALLIED_SYMBOL 'A'
109 #define CSPD_TROOP_ENEMY_SYMBOL 'E'
110 #define CSPD_TROOP_NEUTRAL_SYMBOL 'N'
111 
112 #endif // CSP_TYPES_H
LOCATION
Definition: csp_types.h:26
PLANET_TYPES
Definition: csp_types.h:87
COMMUNICATION
Definition: csp_types.h:98
RELATION
Definition: csp_types.h:41
SECTOR_TYPES
Definition: csp_types.h:74
TROOPS
Definition: csp_types.h:49
RACE_TYPE
Definition: csp_types.h:34
DISCOVERIES
Definition: csp_types.h:58
PLAYER_TYPE
Definition: csp_types.h:68