X-Git-Url: https://plomlompom.com/repos/feed.xml?a=blobdiff_plain;ds=sidebyside;f=src%2Fmap_object_actions.h;h=1b2d95b80aa9f10df62f30899935bb3f3f39887b;hb=d701e79e9297470b56315eefd431c62c9aba28b2;hp=46dc92c13ec8239cac7d8c8d334264ab7ecef202;hpb=7290dec4219eaa2325aa00ef6139f715743dba3a;p=plomrogue diff --git a/src/map_object_actions.h b/src/map_object_actions.h index 46dc92c..1b2d95b 100644 --- a/src/map_object_actions.h +++ b/src/map_object_actions.h @@ -12,12 +12,12 @@ struct MapObj; -/* Try to move "actor" one step in direction "d" and handle the consequences: - * either the move succeeds, or another actor is encountered and hit (which - * leads to its lifepoint decreasing by one and potentially its death), or the - * target square is not passable and the move fails. +/* Try to move "actor" one step in direction "d" (where east is 'E', north 'N' + * etc.) and handle the consequences: either the move succeeds, or another actor + * is encountered and hit (which leads to its lifepoint decreasing by one and + * potentially its death), or the target square is not passable, the move fails. */ -extern uint8_t move_actor(struct MapObj * actor, enum dir d); +extern uint8_t move_actor(struct MapObj * actor, char d); @@ -25,7 +25,7 @@ extern uint8_t move_actor(struct MapObj * actor, enum dir d); * the game log with appropriate messages on the move attempt and its results; * turns over to turn_over() when finished. */ -extern void move_player(enum dir d); +extern void move_player(char d);