diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2024-01-28 03:01:13 +0100 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2024-01-28 15:17:49 +0100 |
| commit | fd53c7da8c5f2b79b87f624e313ff508072361ad (patch) | |
| tree | db569413cd3d42034a22368a7980aa99d7d55235 /src/player/inc | |
| parent | e49e3073c67af785447ddb0ecbdc521b68cf3ea9 (diff) | |
| download | jancity-fd53c7da8c5f2b79b87f624e313ff508072361ad.tar.gz | |
Big rushed update
Diffstat (limited to 'src/player/inc')
| -rw-r--r-- | src/player/inc/human_player.h | 12 | ||||
| -rw-r--r-- | src/player/inc/player.h | 2 |
2 files changed, 13 insertions, 1 deletions
diff --git a/src/player/inc/human_player.h b/src/player/inc/human_player.h index 9cfd498..19c4670 100644 --- a/src/player/inc/human_player.h +++ b/src/player/inc/human_player.h @@ -2,6 +2,9 @@ #define HUMAN_PLAYER_H #include <camera.h> +#include <gui/button.h> +#include <gui/container.h> +#include <gui/rounded_rect.h> #include <keyboard.h> #include <instance.h> #include <input.h> @@ -34,6 +37,15 @@ struct human_player union peripheral *periph; struct input in; + struct human_player_item + { + bool show; + struct gui_button show_btn; + struct gui_rounded_rect rr; + struct gui_container topcnt; + struct gui_button add_walker, add_car, exit; + } item; + struct sel_instance { enum sel_type diff --git a/src/player/inc/player.h b/src/player/inc/player.h index cc191ca..06463f9 100644 --- a/src/player/inc/player.h +++ b/src/player/inc/player.h @@ -18,7 +18,7 @@ typedef unsigned player_team; enum { - PLAYER_MAX_UNITS = 5, + PLAYER_MAX_UNITS = 10, PLAYER_MAX_BUILDINGS = 5 }; |
