X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;ds=sidebyside;f=src%2Fserver%2Fmap_object_actions.h;h=8133e538451f00df7195b0bfafa222a126cee79a;hb=a1b5e2eaa1136d6ee40d6ec2e262cfab368c5880;hp=40535a510ad756e410a07a90d647370c9bc75ccd;hpb=5ae8d71f6b87c0cfc6b3ecf974f2cfbd6a611733;p=plomrogue diff --git a/src/server/map_object_actions.h b/src/server/map_object_actions.h index 40535a5..8133e53 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,9 +34,9 @@ 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. */ extern void actor_move(struct MapObj * mo);