-
Notifications
You must be signed in to change notification settings - Fork 0
/
commands.h
31 lines (23 loc) · 922 Bytes
/
commands.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/**
* \file commands.h
* \brief Agave Tequilana - Command Handling
*/
#ifndef COMMANDS_H_INCLUDED
#define COMMANDS_H_INCLUDED
#include "config.h"
#include "state.h"
/** Process commands.
Reads all commands given by players and updates them in pState.
Commands are verified against pState (=previous turn's state),
not the current universe state.
@param [in,out] pState Game state
@param [in] pConfig Configuration */
void ProcessCommands(struct State* pState, const struct Config* pConfig);
/** Process messages (legacy message processing).
Reads all messages given by players and updates them in pState.
Messages are verified against pState (=previous turn's state),
not the current universe state.
@param [in,out] pState Game state
@param [in] pConfig Configuration */
void ProcessMessages(struct State* pState, const struct Config* pConfig);
#endif