Mercurial > hg > batmud > maputils
comparison liblocfile.h @ 1770:cc59f80b0e78
Various cleanups.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 27 Oct 2017 04:35:51 +0300 |
parents | 3f52fa562a46 |
children | 7c254d090221 |
comparison
equal
deleted
inserted
replaced
1769:57276229a8c8 | 1770:cc59f80b0e78 |
---|---|
43 * of this settings is addition of "GUILD", "SHRINE"-type strings to labels, | 43 * of this settings is addition of "GUILD", "SHRINE"-type strings to labels, |
44 * but this information can be used in other ways too. | 44 * but this information can be used in other ways too. |
45 */ | 45 */ |
46 #define LOCF_NONE (0x00000) | 46 #define LOCF_NONE (0x00000) |
47 | 47 |
48 /* Marker types */ | 48 // Marker types |
49 #define LOCF_M_SCENIC1 (0x000001) /* '?' Scenic marker */ | 49 #define LOCF_M_SCENIC1 (0x000001) // '?' Scenic marker |
50 #define LOCF_M_SCENIC2 (0x000002) /* '%' Shrine marker/etc */ | 50 #define LOCF_M_SCENIC2 (0x000002) // '%' Shrine marker/etc |
51 #define LOCF_M_PCITY (0x000004) /* 'C' Player city */ | 51 #define LOCF_M_PCITY (0x000004) // 'C' Player city |
52 #define LOCF_M_CITY (0x000008) /* 'c' City */ | 52 #define LOCF_M_CITY (0x000008) // 'c' City |
53 #define LOCF_M_MASK (0x00000F) | 53 #define LOCF_M_MASK (0x00000F) |
54 | 54 |
55 /* Location types */ | 55 // Location types |
56 #define LOCF_T_SHRINE (0x000010) /* 'S' Raceshrine */ | 56 #define LOCF_T_SHRINE (0x000010) // 'S' Raceshrine |
57 #define LOCF_T_GUILD (0x000020) /* 'G' Guild */ | 57 #define LOCF_T_GUILD (0x000020) // 'G' Guild |
58 #define LOCF_T_SS (0x000040) /* 'P' Player guild/Secret Society */ | 58 #define LOCF_T_SS (0x000040) // 'P' Player guild/Secret Society |
59 #define LOCF_T_MONSTER (0x000080) /* 'M' Special monster */ | 59 #define LOCF_T_MONSTER (0x000080) // 'M' Special monster |
60 #define LOCF_T_TRAINER (0x000100) /* 'T' Guild trainer */ | 60 #define LOCF_T_TRAINER (0x000100) // 'T' Guild trainer |
61 #define LOCF_T_FORT (0x000200) /* 'F' Regions fort */ | 61 #define LOCF_T_FORT (0x000200) // 'F' Regions fort |
62 #define LOCF_T_MASK (0x00FFF0) | 62 #define LOCF_T_MASK (0x00FFF0) |
63 #define LOCF_MASK (LOCF_M_MASK | LOCF_T_MASK) | 63 #define LOCF_MASK (LOCF_M_MASK | LOCF_T_MASK) |
64 | 64 |
65 /* Extra flags */ | 65 // Extra flags |
66 #define LOCF_INVIS (0x010000) /* '-' Invisible marker / Don't show label */ | 66 #define LOCF_INVIS (0x010000) // '-' Invisible marker / Don't show label |
67 #define LOCF_CLOSED (0x020000) /* '!' Area is CLOSED */ | 67 #define LOCF_CLOSED (0x020000) // '!' Area is CLOSED |
68 #define LOCF_INSTANCED (0x040000) /* 'I' Location is "instanced" for each player */ | 68 #define LOCF_INSTANCED (0x040000) // 'I' Location is "instanced" for each player |
69 #define LOCF_INVALID (0x400000) /* Possibly invalid location */ | 69 #define LOCF_INVALID (0x400000) // Possibly invalid location |
70 #define LOCF_NOMARKER (0x800000) /* Location has no marker in mapdata or explicitly defined */ | 70 #define LOCF_NOMARKER (0x800000) // Location has no marker in mapdata or explicitly defined |
71 #define LOCF_Q_MASK (0xFF0000) | 71 #define LOCF_Q_MASK (0xFF0000) |
72 | 72 |
73 | 73 |
74 /* Misc constants | 74 /* Misc constants |
75 */ | 75 */ |
76 #define LOC_MAX_NAMES (64) /* Probably more than enough? */ | 76 #define LOC_MAX_NAMES (64) // Probably more than enough? |
77 #define LOC_MARKERS "?%C" | 77 #define LOC_MARKERS "?%C" |
78 #define LOC_MAX_FILES (64) | 78 #define LOC_MAX_FILES (64) |
79 | 79 |
80 | 80 |
81 #define NAME_ORIG (0x00001) /* '@' Original area name or coder */ | 81 #define NAME_ORIG (0x00001) // '@' Original area name or coder |
82 #define NAME_RECODER (0x00002) /* '!' Converter or recoder of area */ | 82 #define NAME_RECODER (0x00002) // '!' Converter or recoder of area |
83 #define NAME_MAINTAINER (0x00004) /* '%' Maintainer */ | 83 #define NAME_MAINTAINER (0x00004) // '%' Maintainer |
84 #define NAME_EXPANDER (0x00008) /* '&' Expander, adding new things */ | 84 #define NAME_EXPANDER (0x00008) // '&' Expander, adding new things |
85 | 85 |
86 | 86 |
87 /* Structures | 87 /* Structures |
88 */ | 88 */ |
89 typedef struct | 89 typedef struct |