penguins  1.0.0
interactive.h
Go to the documentation of this file.
1 #pragma once
2 
5 
6 #include "game.h"
7 #include "utils.h"
8 
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12 
13 int run_interactive_mode(void);
14 
15 void print_board(const Game* game);
16 void print_player_stats(const Game* game);
17 void print_game_state(const Game* game);
18 
19 void interactive_placement(Game* game);
20 void handle_placement_input(Game* game, Coords* selected);
21 
22 void interactive_movement(Game* game);
23 void handle_movement_input(Game* game, Coords* penguin, Coords* target);
24 
25 #ifdef __cplusplus
26 }
27 #endif
The core of the unified game logic library, contains the Game struct.
void print_game_state(const Game *game)
Definition: interactive.c:122
void handle_placement_input(Game *game, Coords *selected)
Definition: interactive.c:234
int run_interactive_mode(void)
Definition: interactive.c:133
void interactive_movement(Game *game)
Definition: interactive.c:267
void print_board(const Game *game)
Definition: interactive.c:53
void interactive_placement(Game *game)
Definition: interactive.c:220
void print_player_stats(const Game *game)
Definition: interactive.c:102
void handle_movement_input(Game *game, Coords *penguin, Coords *target)
Definition: interactive.c:282
A pair of 2D coordinates, used for addressing the Game::board_grid.
Definition: utils.h:15
The central struct of the application, holds the game data and settings.
Definition: game.h:237