X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=src%2Fserver%2Fmap_object_actions.h;h=17c4b1e3b8c80daa2e72aae089c7e2e0ac265d7c;hb=9591db5a35ff15c0950eb692625d297faefd0646;hp=1eca5917995b4c0076ee11abb814710c2d563921;hpb=0255432b4e8d3a7b3aec71c4e43e7fb063c45833;p=plomrogue diff --git a/src/server/map_object_actions.h b/src/server/map_object_actions.h index 1eca591..17c4b1e 100644 --- a/src/server/map_object_actions.h +++ b/src/server/map_object_actions.h @@ -15,18 +15,15 @@ struct MapObj; struct MapObjAct { + uint8_t id; /* identifies action in MapObj.command; therefore must be >0 */ struct MapObjAct * next; void (* func) (struct MapObj *); /* function called after .effort turns */ char * name; /* human-readable identifier */ - uint8_t id; /* unique id of map object action; must be >0 */ uint8_t effort; /* how many turns the action takes */ }; -/* Init MapObjAct chain at world.map_obj_acts. */ -extern void init_map_object_actions(); - /* Free MapObjAct * chain starting at "moa". */ extern void free_map_object_actions(struct MapObjAct * moa); @@ -37,7 +34,7 @@ extern uint8_t get_moa_id_by_name(char * name); extern void actor_wait(struct MapObj * mo); /* Actor "mo" tries to move one step in direction described by char mo->arg - * (where east is 'E', north 'N') etc. Move either succeeds, or another actor is + * (where east is '6', north '8') etc. Move either succeeds, or another actor is * encountered and hit (which leads ot its lifepoint decreasing by one and * eventually death), or the move fails due to an impassable target square. */ @@ -50,8 +47,7 @@ extern void actor_drop(struct MapObj * mo); extern void actor_pick(struct MapObj * mo); /* Actor "mo" tries to use inventory object indexed by number mo->args. - * (Currently the only valid use is consuming an item named "MAGIC MEAT", - * which increments the actors lifepoints.) + * (Currently the only valid use is consuming items defined as consumable.) */ extern void actor_use(struct MapObj * mo);