Galactic Bloodshed
Macros
csp.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CSP_VERSION_INFO   10 /* version XX */
 
#define CSP_VERSION_OPTIONS   11 /* options set YY */
 
#define CSP_CLIENT_ON   30 /* client mode on */
 
#define CSP_CLIENT_OFF   31 /* client mode off */
 
#define CSP_KNOWLEDGE   32
 
#define CSP_SCOPE_PROMPT   40
 
#define CSP_UPDATE_START   50 /* update started */
 
#define CSP_UPDATE_END   51 /* update finshed */
 
#define CSP_SEGMENT_START   52 /* segment started */
 
#define CSP_SEGMENT_END   53 /* segment finished */
 
#define CSP_RESET_START   54 /* reset started */
 
#define CSP_RESET_END   55 /* reset finished */
 
#define CSP_BACKUP_START   56 /* backup started */
 
#define CSP_BACKUP_END   57 /* backup finished */
 
#define CSP_UPDATES_SUSPENDED   58 /* updates suspended */
 
#define CSP_UPDATES_RESUMED   59 /* updates resumed */
 
#define CSP_SURVEY_INTRO   101 /* planet info */
 
#define CSP_SURVEY_SECTOR   102 /* sector info */
 
#define CSP_SURVEY_END   103 /* end of command(EOC) */
 
#define CSP_RELATION_INTRO   201 /* race # & name */
 
#define CSP_RELATION_DATA   202 /* the data */
 
#define CSP_RELATION_END   203 /* end of command(EOC) */
 
#define CSP_PROFILE_INTRO   301 /* header */
 
#define CSP_PROFILE_PERSONAL   302
 
#define CSP_PROFILE_DYNAMIC   303
 
#define CSP_PROFILE_DYNAMIC_OTHER   304
 
#define CSP_PROFILE_RACE_STATS   305
 
#define CSP_PROFILE_RACE_STATS_OTHER   306
 
#define CSP_PROFILE_PLANET   307
 
#define CSP_PROFILE_SECTOR   308
 
#define CSP_PROFILE_DISCOVERY   309 /* discoveries */
 
#define CSP_PROFILE_END   310
 
#define CSP_WHO_INTRO   401 /* header */
 
#define CSP_WHO_DATA   402 /* actual data */
 
#define CSP_WHO_COWARDS   403 /* send either # of cowards */
 
#define CSP_WHO_END   403 /* or WHO_END as terminator */
 
#define CSP_EXPLORE_INTRO   501
 
#define CSP_EXPLORE_STAR   502
 
#define CSP_EXPLORE_STAR_ALIENS   503
 
#define CSP_EXPLORE_STAR_DATA   504
 
#define CSP_EXPLORE_STAR_END   505
 
#define CSP_EXPLORE_END   506
 
#define CSP_MAP_INTRO   601
 
#define CSP_MAP_DYNAMIC_1   602
 
#define CSP_MAP_DYNAMIC_2   603
 
#define CSP_MAP_ALIENS   604
 
#define CSP_MAP_DATA   605
 
#define CSP_MAP_END   606
 
#define CSP_LOGIN_COMMAND   1101 /* login command */
 
#define CSP_VERSION_COMMAND   1102 /* version command */
 
#define CSP_SURVEY_COMMAND   1103 /* imap command */
 
#define CSP_RELATION_COMMAND   1104 /* relation command */
 
#define CSP_PROFILE_COMMAND   1105 /* profile command */
 
#define CSP_WHO_COMMAND   1106 /* who command */
 
#define CSP_EXPLORE_COMMAND   1107 /* exploration command */
 
#define CSP_MAP_COMMAND   1108 /* map command */
 
#define CSP_SCOPE_COMMAND   1110 /* request a prompt */
 
#define CSP_ORBIT_COMMAND   1501 /* orbit command */
 
#define CSP_ZOOM_COMMAND   1502 /* zoom command */
 
#define CSP_PLANDUMP_COMMAND   1503 /* planet dump command */
 
#define CSP_SHIPDUMP_COMMAND   1504 /* ship dump command */
 
#define CSP_PLANDUMP_INTRO   2000 /* planet name */
 
#define CSP_PLANDUMP_CONDITIONS   2001 /* conditions */
 
#define CSP_PLANDUMP_STOCK   2002 /* stockpiles */
 
#define CSP_PLANDUMP_PROD   2003 /* production last update */
 
#define CSP_PLANDUMP_MISC   2004 /* rest of stuff */
 
#define CSP_PLANDUMP_NOEXPL   2005 /* planet not explored */
 
#define CSP_STAR_UNEXPL   2010 /* star is not explored */
 
#define CSP_ORBIT_OUTPUT_INTRO   2020 /* orbit parameters */
 
#define CSP_ORBIT_STAR_DATA   2021 /* star info */
 
#define CSP_ORBIT_UNEXP_PL_DATA   2022 /* unexplored planet info */
 
#define CSP_ORBIT_EXP_PL_DATA   2023 /* explored planet info */
 
#define CSP_ORBIT_SHIP_DATA   2024 /* ship info */
 
#define CSP_ORBIT_OUTPUT_END   2025 /* end of command(EOC) */
 
#define CSP_SHIPDUMP_GEN   2030 /* General information */
 
#define CSP_SHIPDUMP_STOCK   2031 /* Stock information */
 
#define CSP_SHIPDUMP_STATUS   2032 /* Status information */
 
#define CSP_SHIPDUMP_WEAPONS   2033 /* Weapons information */
 
#define CSP_SHIPDUMP_FACTORY   2034 /* Factory information */
 
#define CSP_SHIPDUMP_DEST   2035 /* Destination information */
 
#define CSP_SHIPDUMP_PTACT_GEN   2036 /* General planet tactical */
 
#define CSP_SHIPDUMP_PTACT_PDIST   2037 /* distance between planet's */
 
#define CSP_SHIPDUMP_STACT_PDIST   2038 /* distance between a ship a*/
 
#define CSP_SHIPDUMP_PTACT_INFO   2039 /* for a ship from a planet */
 
#define CSP_SHIPDUMP_STACT_INFO   2040 /* ifor a ship from a ship */
 
#define CSP_SHIPDUMP_ORDERS   2041 /* Ship orders */
 
#define CSP_SHIPDUMP_THRESH   2042 /* Ship threshloading */
 
#define CSP_SHIPDUMP_SPECIAL   2043 /* Ship specials */
 
#define CSP_SHIPDUMP_HYPER   2044 /* Hyper drive usage */
 
#define CSP_SHIPDUMP_END   2055 /* end of command (EOC) */
 
#define CSP_ERR   9900 /* error */
 
#define CSP_ERR_TOO_MANY_ARGS   9901 /* too many args */
 
#define CSP_ERR_TOO_FEW_ARGS   9902 /* too few args */
 
#define CSP_ERR_UNKNOWN_COMMAND   9903 /* unknown command */
 
#define CSP_ERR_NOSUCH_PLAYER   9904 /* no such player */
 
#define CSP_ERR_NOSUCH_PLACE   9905 /* no such place - scope err */
 
#define CSP_MAX_SERVER_COMMAND   2000
 
#define CSP_ZOOM   35
 

Macro Definition Documentation

◆ CSP_BACKUP_END

#define CSP_BACKUP_END   57 /* backup finished */

Definition at line 33 of file csp.h.

◆ CSP_BACKUP_START

#define CSP_BACKUP_START   56 /* backup started */

Definition at line 32 of file csp.h.

◆ CSP_CLIENT_OFF

#define CSP_CLIENT_OFF   31 /* client mode off */

Definition at line 19 of file csp.h.

◆ CSP_CLIENT_ON

#define CSP_CLIENT_ON   30 /* client mode on */

Definition at line 18 of file csp.h.

◆ CSP_ERR

#define CSP_ERR   9900 /* error */

Definition at line 144 of file csp.h.

◆ CSP_ERR_NOSUCH_PLACE

#define CSP_ERR_NOSUCH_PLACE   9905 /* no such place - scope err */

Definition at line 149 of file csp.h.

◆ CSP_ERR_NOSUCH_PLAYER

#define CSP_ERR_NOSUCH_PLAYER   9904 /* no such player */

Definition at line 148 of file csp.h.

◆ CSP_ERR_TOO_FEW_ARGS

#define CSP_ERR_TOO_FEW_ARGS   9902 /* too few args */

Definition at line 146 of file csp.h.

◆ CSP_ERR_TOO_MANY_ARGS

#define CSP_ERR_TOO_MANY_ARGS   9901 /* too many args */

Definition at line 145 of file csp.h.

◆ CSP_ERR_UNKNOWN_COMMAND

#define CSP_ERR_UNKNOWN_COMMAND   9903 /* unknown command */

Definition at line 147 of file csp.h.

◆ CSP_EXPLORE_COMMAND

#define CSP_EXPLORE_COMMAND   1107 /* exploration command */

Definition at line 94 of file csp.h.

◆ CSP_EXPLORE_END

#define CSP_EXPLORE_END   506

Definition at line 75 of file csp.h.

◆ CSP_EXPLORE_INTRO

#define CSP_EXPLORE_INTRO   501

Definition at line 70 of file csp.h.

◆ CSP_EXPLORE_STAR

#define CSP_EXPLORE_STAR   502

Definition at line 71 of file csp.h.

◆ CSP_EXPLORE_STAR_ALIENS

#define CSP_EXPLORE_STAR_ALIENS   503

Definition at line 72 of file csp.h.

◆ CSP_EXPLORE_STAR_DATA

#define CSP_EXPLORE_STAR_DATA   504

Definition at line 73 of file csp.h.

◆ CSP_EXPLORE_STAR_END

#define CSP_EXPLORE_STAR_END   505

Definition at line 74 of file csp.h.

◆ CSP_KNOWLEDGE

#define CSP_KNOWLEDGE   32

Definition at line 20 of file csp.h.

◆ CSP_LOGIN_COMMAND

#define CSP_LOGIN_COMMAND   1101 /* login command */

Definition at line 88 of file csp.h.

◆ CSP_MAP_ALIENS

#define CSP_MAP_ALIENS   604

Definition at line 83 of file csp.h.

◆ CSP_MAP_COMMAND

#define CSP_MAP_COMMAND   1108 /* map command */

Definition at line 95 of file csp.h.

◆ CSP_MAP_DATA

#define CSP_MAP_DATA   605

Definition at line 84 of file csp.h.

◆ CSP_MAP_DYNAMIC_1

#define CSP_MAP_DYNAMIC_1   602

Definition at line 81 of file csp.h.

◆ CSP_MAP_DYNAMIC_2

#define CSP_MAP_DYNAMIC_2   603

Definition at line 82 of file csp.h.

◆ CSP_MAP_END

#define CSP_MAP_END   606

Definition at line 85 of file csp.h.

◆ CSP_MAP_INTRO

#define CSP_MAP_INTRO   601

Definition at line 80 of file csp.h.

◆ CSP_MAX_SERVER_COMMAND

#define CSP_MAX_SERVER_COMMAND   2000

Definition at line 151 of file csp.h.

◆ CSP_ORBIT_COMMAND

#define CSP_ORBIT_COMMAND   1501 /* orbit command */

Definition at line 100 of file csp.h.

◆ CSP_ORBIT_EXP_PL_DATA

#define CSP_ORBIT_EXP_PL_DATA   2023 /* explored planet info */

Definition at line 119 of file csp.h.

◆ CSP_ORBIT_OUTPUT_END

#define CSP_ORBIT_OUTPUT_END   2025 /* end of command(EOC) */

Definition at line 121 of file csp.h.

◆ CSP_ORBIT_OUTPUT_INTRO

#define CSP_ORBIT_OUTPUT_INTRO   2020 /* orbit parameters */

Definition at line 116 of file csp.h.

◆ CSP_ORBIT_SHIP_DATA

#define CSP_ORBIT_SHIP_DATA   2024 /* ship info */

Definition at line 120 of file csp.h.

◆ CSP_ORBIT_STAR_DATA

#define CSP_ORBIT_STAR_DATA   2021 /* star info */

Definition at line 117 of file csp.h.

◆ CSP_ORBIT_UNEXP_PL_DATA

#define CSP_ORBIT_UNEXP_PL_DATA   2022 /* unexplored planet info */

Definition at line 118 of file csp.h.

◆ CSP_PLANDUMP_COMMAND

#define CSP_PLANDUMP_COMMAND   1503 /* planet dump command */

Definition at line 102 of file csp.h.

◆ CSP_PLANDUMP_CONDITIONS

#define CSP_PLANDUMP_CONDITIONS   2001 /* conditions */

Definition at line 107 of file csp.h.

◆ CSP_PLANDUMP_INTRO

#define CSP_PLANDUMP_INTRO   2000 /* planet name */

Definition at line 106 of file csp.h.

◆ CSP_PLANDUMP_MISC

#define CSP_PLANDUMP_MISC   2004 /* rest of stuff */

Definition at line 110 of file csp.h.

◆ CSP_PLANDUMP_NOEXPL

#define CSP_PLANDUMP_NOEXPL   2005 /* planet not explored */

Definition at line 111 of file csp.h.

◆ CSP_PLANDUMP_PROD

#define CSP_PLANDUMP_PROD   2003 /* production last update */

Definition at line 109 of file csp.h.

◆ CSP_PLANDUMP_STOCK

#define CSP_PLANDUMP_STOCK   2002 /* stockpiles */

Definition at line 108 of file csp.h.

◆ CSP_PROFILE_COMMAND

#define CSP_PROFILE_COMMAND   1105 /* profile command */

Definition at line 92 of file csp.h.

◆ CSP_PROFILE_DISCOVERY

#define CSP_PROFILE_DISCOVERY   309 /* discoveries */

Definition at line 59 of file csp.h.

◆ CSP_PROFILE_DYNAMIC

#define CSP_PROFILE_DYNAMIC   303

Definition at line 53 of file csp.h.

◆ CSP_PROFILE_DYNAMIC_OTHER

#define CSP_PROFILE_DYNAMIC_OTHER   304

Definition at line 54 of file csp.h.

◆ CSP_PROFILE_END

#define CSP_PROFILE_END   310

Definition at line 60 of file csp.h.

◆ CSP_PROFILE_INTRO

#define CSP_PROFILE_INTRO   301 /* header */

Definition at line 51 of file csp.h.

◆ CSP_PROFILE_PERSONAL

#define CSP_PROFILE_PERSONAL   302

Definition at line 52 of file csp.h.

◆ CSP_PROFILE_PLANET

#define CSP_PROFILE_PLANET   307

Definition at line 57 of file csp.h.

◆ CSP_PROFILE_RACE_STATS

#define CSP_PROFILE_RACE_STATS   305

Definition at line 55 of file csp.h.

◆ CSP_PROFILE_RACE_STATS_OTHER

#define CSP_PROFILE_RACE_STATS_OTHER   306

Definition at line 56 of file csp.h.

◆ CSP_PROFILE_SECTOR

#define CSP_PROFILE_SECTOR   308

Definition at line 58 of file csp.h.

◆ CSP_RELATION_COMMAND

#define CSP_RELATION_COMMAND   1104 /* relation command */

Definition at line 91 of file csp.h.

◆ CSP_RELATION_DATA

#define CSP_RELATION_DATA   202 /* the data */

Definition at line 45 of file csp.h.

◆ CSP_RELATION_END

#define CSP_RELATION_END   203 /* end of command(EOC) */

Definition at line 46 of file csp.h.

◆ CSP_RELATION_INTRO

#define CSP_RELATION_INTRO   201 /* race # & name */

Definition at line 44 of file csp.h.

◆ CSP_RESET_END

#define CSP_RESET_END   55 /* reset finished */

Definition at line 31 of file csp.h.

◆ CSP_RESET_START

#define CSP_RESET_START   54 /* reset started */

Definition at line 30 of file csp.h.

◆ CSP_SCOPE_COMMAND

#define CSP_SCOPE_COMMAND   1110 /* request a prompt */

Definition at line 96 of file csp.h.

◆ CSP_SCOPE_PROMPT

#define CSP_SCOPE_PROMPT   40

Definition at line 23 of file csp.h.

◆ CSP_SEGMENT_END

#define CSP_SEGMENT_END   53 /* segment finished */

Definition at line 29 of file csp.h.

◆ CSP_SEGMENT_START

#define CSP_SEGMENT_START   52 /* segment started */

Definition at line 28 of file csp.h.

◆ CSP_SHIPDUMP_COMMAND

#define CSP_SHIPDUMP_COMMAND   1504 /* ship dump command */

Definition at line 103 of file csp.h.

◆ CSP_SHIPDUMP_DEST

#define CSP_SHIPDUMP_DEST   2035 /* Destination information */

Definition at line 129 of file csp.h.

◆ CSP_SHIPDUMP_END

#define CSP_SHIPDUMP_END   2055 /* end of command (EOC) */

Definition at line 139 of file csp.h.

◆ CSP_SHIPDUMP_FACTORY

#define CSP_SHIPDUMP_FACTORY   2034 /* Factory information */

Definition at line 128 of file csp.h.

◆ CSP_SHIPDUMP_GEN

#define CSP_SHIPDUMP_GEN   2030 /* General information */

Definition at line 124 of file csp.h.

◆ CSP_SHIPDUMP_HYPER

#define CSP_SHIPDUMP_HYPER   2044 /* Hyper drive usage */

Definition at line 138 of file csp.h.

◆ CSP_SHIPDUMP_ORDERS

#define CSP_SHIPDUMP_ORDERS   2041 /* Ship orders */

Definition at line 135 of file csp.h.

◆ CSP_SHIPDUMP_PTACT_GEN

#define CSP_SHIPDUMP_PTACT_GEN   2036 /* General planet tactical */

Definition at line 130 of file csp.h.

◆ CSP_SHIPDUMP_PTACT_INFO

#define CSP_SHIPDUMP_PTACT_INFO   2039 /* for a ship from a planet */

Definition at line 133 of file csp.h.

◆ CSP_SHIPDUMP_PTACT_PDIST

#define CSP_SHIPDUMP_PTACT_PDIST   2037 /* distance between planet's */

Definition at line 131 of file csp.h.

◆ CSP_SHIPDUMP_SPECIAL

#define CSP_SHIPDUMP_SPECIAL   2043 /* Ship specials */

Definition at line 137 of file csp.h.

◆ CSP_SHIPDUMP_STACT_INFO

#define CSP_SHIPDUMP_STACT_INFO   2040 /* ifor a ship from a ship */

Definition at line 134 of file csp.h.

◆ CSP_SHIPDUMP_STACT_PDIST

#define CSP_SHIPDUMP_STACT_PDIST   2038 /* distance between a ship a*/

Definition at line 132 of file csp.h.

◆ CSP_SHIPDUMP_STATUS

#define CSP_SHIPDUMP_STATUS   2032 /* Status information */

Definition at line 126 of file csp.h.

◆ CSP_SHIPDUMP_STOCK

#define CSP_SHIPDUMP_STOCK   2031 /* Stock information */

Definition at line 125 of file csp.h.

◆ CSP_SHIPDUMP_THRESH

#define CSP_SHIPDUMP_THRESH   2042 /* Ship threshloading */

Definition at line 136 of file csp.h.

◆ CSP_SHIPDUMP_WEAPONS

#define CSP_SHIPDUMP_WEAPONS   2033 /* Weapons information */

Definition at line 127 of file csp.h.

◆ CSP_STAR_UNEXPL

#define CSP_STAR_UNEXPL   2010 /* star is not explored */

Definition at line 114 of file csp.h.

◆ CSP_SURVEY_COMMAND

#define CSP_SURVEY_COMMAND   1103 /* imap command */

Definition at line 90 of file csp.h.

◆ CSP_SURVEY_END

#define CSP_SURVEY_END   103 /* end of command(EOC) */

Definition at line 41 of file csp.h.

◆ CSP_SURVEY_INTRO

#define CSP_SURVEY_INTRO   101 /* planet info */

Definition at line 39 of file csp.h.

◆ CSP_SURVEY_SECTOR

#define CSP_SURVEY_SECTOR   102 /* sector info */

Definition at line 40 of file csp.h.

◆ CSP_UPDATE_END

#define CSP_UPDATE_END   51 /* update finshed */

Definition at line 27 of file csp.h.

◆ CSP_UPDATE_START

#define CSP_UPDATE_START   50 /* update started */

Definition at line 26 of file csp.h.

◆ CSP_UPDATES_RESUMED

#define CSP_UPDATES_RESUMED   59 /* updates resumed */

Definition at line 36 of file csp.h.

◆ CSP_UPDATES_SUSPENDED

#define CSP_UPDATES_SUSPENDED   58 /* updates suspended */

Definition at line 35 of file csp.h.

◆ CSP_VERSION_COMMAND

#define CSP_VERSION_COMMAND   1102 /* version command */

Definition at line 89 of file csp.h.

◆ CSP_VERSION_INFO

#define CSP_VERSION_INFO   10 /* version XX */

Definition at line 14 of file csp.h.

◆ CSP_VERSION_OPTIONS

#define CSP_VERSION_OPTIONS   11 /* options set YY */

Definition at line 15 of file csp.h.

◆ CSP_WHO_COMMAND

#define CSP_WHO_COMMAND   1106 /* who command */

Definition at line 93 of file csp.h.

◆ CSP_WHO_COWARDS

#define CSP_WHO_COWARDS   403 /* send either # of cowards */

Definition at line 65 of file csp.h.

◆ CSP_WHO_DATA

#define CSP_WHO_DATA   402 /* actual data */

Definition at line 64 of file csp.h.

◆ CSP_WHO_END

#define CSP_WHO_END   403 /* or WHO_END as terminator */

Definition at line 66 of file csp.h.

◆ CSP_WHO_INTRO

#define CSP_WHO_INTRO   401 /* header */

Definition at line 63 of file csp.h.

◆ CSP_ZOOM

#define CSP_ZOOM   35

Definition at line 153 of file csp.h.

◆ CSP_ZOOM_COMMAND

#define CSP_ZOOM_COMMAND   1502 /* zoom command */

Definition at line 101 of file csp.h.