aboutsummaryrefslogtreecommitdiff
path: root/src/player/inc
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2024-01-27 15:58:53 +0100
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2024-01-27 17:38:11 +0100
commit0aef4f319caa2572d459b18e4e994122d53abcbe (patch)
treec27f3cee65e565db4bf5f457d03190f227cccdf4 /src/player/inc
parent39ecbd690b2327db4328123f3f9a50c8492794ad (diff)
downloadjancity-0aef4f319caa2572d459b18e4e994122d53abcbe.tar.gz
Remove resource, tech and old game resources
Diffstat (limited to 'src/player/inc')
-rw-r--r--src/player/inc/human_player.h5
-rw-r--r--src/player/inc/player.h11
2 files changed, 2 insertions, 14 deletions
diff --git a/src/player/inc/human_player.h b/src/player/inc/human_player.h
index abc25e9..9cfd498 100644
--- a/src/player/inc/human_player.h
+++ b/src/player/inc/human_player.h
@@ -39,8 +39,7 @@ struct human_player
enum sel_type
{
INSTANCE_TYPE_UNIT,
- INSTANCE_TYPE_BUILDING,
- INSTANCE_TYPE_RESOURCE
+ INSTANCE_TYPE_BUILDING
} type;
union sel_data
@@ -61,8 +60,6 @@ struct human_player
} target;
size_t n_sel;
- bool top_gui;
- uint32_t gui_res[MAX_RESOURCE_TYPES];
};
int human_player_init(const struct human_player_cfg *cfg, struct human_player *h);
diff --git a/src/player/inc/player.h b/src/player/inc/player.h
index 153740c..10557b3 100644
--- a/src/player/inc/player.h
+++ b/src/player/inc/player.h
@@ -5,8 +5,6 @@
#include <camera.h>
#include <instance.h>
#include <pad.h>
-#include <resource.h>
-#include <tech.h>
#include <unit.h>
#include <stdbool.h>
#include <stddef.h>
@@ -36,13 +34,7 @@ struct player
bool alive;
struct unit units[PLAYER_MAX_UNITS];
struct building buildings[PLAYER_MAX_BUILDINGS];
- uint32_t resources[MAX_RESOURCE_TYPES];
unsigned char pop, bpop;
-
- struct
- {
- struct unit_tech u;
- } tree;
};
struct player_cfg
@@ -55,8 +47,7 @@ struct player_cfg
struct player_others
{
struct player *pl;
- struct resource *res;
- size_t n_pl, n_res;
+ size_t n_pl;
};
int player_init(const struct player_cfg *cfg, struct player *pl);