home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add (crude) field of view to player's view of map.
[plomrogue]
/
src
/
server
/
map_objects.h
diff --git
a/src/server/map_objects.h
b/src/server/map_objects.h
index a73aa801bdd2e0777d007d2383164c2bfd23ef84..d18e3c259f4df1f422420dc77da12a34c4ee74e2 100644
(file)
--- a/
src/server/map_objects.h
+++ b/
src/server/map_objects.h
@@
-27,19
+27,18
@@
struct MapObj
struct MapObjDef
{
struct MapObjDef
{
+ uint8_t id; /* map object definition identifier / sets .type */
struct MapObjDef * next;
char char_on_map; /* map object symbol to appear on map */
char * name; /* string to describe object in game log */
struct MapObjDef * next;
char char_on_map; /* map object symbol to appear on map */
char * name; /* string to describe object in game log */
- uint8_t id; /* map object definition identifier / sets .type */
uint8_t corpse_id; /* type to change map object into upon destruction */
uint8_t lifepoints; /* default start value for map object's .lifepoints */
uint8_t corpse_id; /* type to change map object into upon destruction */
uint8_t lifepoints; /* default start value for map object's .lifepoints */
+ uint8_t consumable; /* can be eaten if !0, for so much hitpoint win */
+ uint8_t start_n; /* how many of these does the map start with? */
};
};
-/* Initialize map object definitions chain. */
-extern void init_map_object_defs();
-
/* Free map object definitions chain starting at "mod_start". */
extern void free_map_object_defs(struct MapObjDef * mod_start);
/* Free map object definitions chain starting at "mod_start". */
extern void free_map_object_defs(struct MapObjDef * mod_start);