diff options
| author | Sopár Adrián <adrian.sopar@protonmail.com> | 2024-06-20 09:28:14 +0200 |
|---|---|---|
| committer | Sopár Adrián <adrian.sopar@protonmail.com> | 2024-06-20 09:28:14 +0200 |
| commit | 74ea6dc86646cee9915292d73d8c7afef01ef3e0 (patch) | |
| tree | 9a58866f7765dad8ba56f1f40b1fa031e9d2687d /src/game/operations.h | |
First commit. This is mostly the state of the project as I left it around the end of 2019.HEADmaster
Diffstat (limited to 'src/game/operations.h')
| -rw-r--r-- | src/game/operations.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/src/game/operations.h b/src/game/operations.h new file mode 100644 index 0000000..2f2af47 --- /dev/null +++ b/src/game/operations.h @@ -0,0 +1,44 @@ +#ifndef H_MAZE_GAME_OPERATION +#define H_MAZE_GAME_OPERATION + +#include "game.h" + +enum op_res +{ + OPR_NONE, + OPR_QUIT +}; + +enum move +{ + MOVE_UP, + MOVE_DOWN, + MOVE_LEFT, + MOVE_RIGHT, + MOVE_BEGINNING +}; + +enum display +{ + DISP_PATH +}; + +enum op_res move_player(struct game_state *state, int data); + +enum op_res move_maze(struct game_state *state, int data); + +enum op_res quit(struct game_state *state, int data); + +enum op_res turn_display_switch(struct game_state *state, int data); + +enum op_res new_random(struct game_state *state, int data); + +enum op_res center(struct game_state *state, int data); + +enum op_res help_by_n_move(struct game_state *state, int data); + +enum op_res solve(struct game_state *state, int data); + +enum op_res start_command_prompt(struct game_state *state, int data); + +#endif
\ No newline at end of file |
