X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;f=src%2Fserver%2Fmap_object_actions.h;h=7192cb4d97515a91ad806684ea496393c863ba1f;hb=7433f56ec2c6cc51bc497e3c0c67d2fe3e6ab64a;hp=81a3fa62e5dd3de8daf0bbc9d81b8860bc0ed84e;hpb=cc4ed0c49279f08a053a3e3a9a4acba22283a01f;p=plomrogue diff --git a/src/server/map_object_actions.h b/src/server/map_object_actions.h index 81a3fa6..7192cb4 100644 --- a/src/server/map_object_actions.h +++ b/src/server/map_object_actions.h @@ -15,7 +15,7 @@ struct MapObj; struct MapObjAct { - uint8_t id; /* unique id of map object action; must be >0 */ + 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 */ @@ -34,9 +34,10 @@ 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 '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. + * (where noth-east is 'e', east 'd' 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. + * On success, update object's field of view map. */ extern void actor_move(struct MapObj * mo);