… | |
… | |
164 | */ |
164 | */ |
165 | INTERFACE_CLASS (region) |
165 | INTERFACE_CLASS (region) |
166 | struct region : zero_initialised |
166 | struct region : zero_initialised |
167 | { |
167 | { |
168 | shstr ACC (RW, name); /* Shortend name of the region as maps refer to it */ |
168 | shstr ACC (RW, name); /* Shortend name of the region as maps refer to it */ |
|
|
169 | shstr ACC (RW, match); // a perl regex that matches map paths |
169 | region *ACC (RW, parent); /* |
170 | region *ACC (RW, parent); /* |
170 | * Pointer to the region that is a parent of the current |
171 | * Pointer to the region that is a parent of the current |
171 | * region, if a value isn't defined in the current region |
172 | * region, if a value isn't defined in the current region |
172 | * we traverse this series of pointers until it is. |
173 | * we traverse this series of pointers until it is. |
173 | */ |
174 | */ |
174 | shstr ACC (RW, longname); /* Official title of the region, this might be defined |
175 | shstr ACC (RW, longname); /* Official title of the region, this might be defined |
175 | * to be the same as name*/ |
176 | * to be the same as name*/ |
176 | shstr ACC (RW, msg); /* the description of the region */ |
177 | shstr ACC (RW, msg); /* the description of the region */ |
177 | shstr ACC (RW, jailmap); /*where a player that is arrested in this region should be imprisoned. */ |
178 | shstr ACC (RW, jailmap); /*where a player that is arrested in this region should be imprisoned. */ |
178 | int ACC (RW, index); |
179 | int ACC (RW, index); |
179 | uint32 ACC (RW, counter); /* A generic counter for holding temporary data. */ |
180 | uint32 ACC (RW, counter); /* A generic counter for holding temporary data. */ |
180 | sint16 ACC (RW, jailx), ACC (RW, jaily); /* The coodinates in jailmap to which the player should be sent. */ |
181 | sint16 ACC (RW, jailx), ACC (RW, jaily);/* The coodinates in jailmap to which the player should be sent. */ |
181 | bool ACC (RW, fallback); /* whether, in the event of a region not existing, |
182 | bool ACC (RW, fallback); /* whether, in the event of a region not existing, |
182 | * this should be the one we fall back on as the default */ |
183 | * this should be the one we fall back on as the default */ |
183 | |
184 | |
184 | static region *default_region (); |
185 | static region *default_region (); |
185 | static region *find (const char *name); |
186 | static region *find (const char *name); |
186 | static region *find_fuzzy (const char *name); |
187 | static region *find_fuzzy (const char *name); |