aboutsummaryrefslogtreecommitdiff
path: root/src/game/inc
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2022-09-27 17:03:06 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2022-11-01 16:26:16 +0100
commit980858186149651df5543b6fc99a4f7db0cdd089 (patch)
treed347200b0a562d84df505097651ad0642f207fdd /src/game/inc
parent39f50e601d395bbd2d78d0147ac530b756da2fff (diff)
downloadjancity-980858186149651df5543b6fc99a4f7db0cdd089.tar.gz
WIP
Diffstat (limited to 'src/game/inc')
-rw-r--r--src/game/inc/game.h22
1 files changed, 21 insertions, 1 deletions
diff --git a/src/game/inc/game.h b/src/game/inc/game.h
index 5298b9f..66e5e79 100644
--- a/src/game/inc/game.h
+++ b/src/game/inc/game.h
@@ -1,15 +1,35 @@
#ifndef GAME_H
#define GAME_H
-#include <stddef.h>
+#include <peripheral.h>
#ifdef __cplusplus
extern "C"
{
#endif
+enum
+{
+ GAME_MAX_PLAYERS = 4,
+ GAME_PLAYER_NAME_LEN = 16
+};
+
struct game_cfg
{
+ struct game_cfg_player
+ {
+ enum game_cfg_player_type
+ {
+ GAME_CFG_PLAYER_TYPE_HUMAN,
+ GAME_CFG_PLAYER_TYPE_BOT,
+ GAME_CFG_PLAYER_TYPE_NET
+ } type;
+
+ char name[GAME_PLAYER_NAME_LEN];
+ } *players;
+
+ size_t n;
+ union peripheral *p;
};
int game_resinit(void);