aboutsummaryrefslogtreecommitdiff
path: root/src/game/commands.h
blob: 8e2cc5fc505d15b17bfb91f94bc80a0e1e3ec8d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef H_MAZE_GAME_COMMANDS
#define H_MAZE_GAME_COMMANDS

#include "game.h"

enum cmd_res_type
{
    CRT_SUCCESS,
    CRT_FAIL,
    CRT_QUIT
};

#define MAX_CR_TEXT_LENGTH 256
#define MAX_ARGS_COUNT 100

struct cmd_res
{
    enum cmd_res_type type;
    char text[MAX_CR_TEXT_LENGTH];
};

struct cmd_res run_command(struct game_state *state, char *command);

#endif