From 8fba2176bc34aa7e507f0b9d983427bb5e522e17 Mon Sep 17 00:00:00 2001 From: XaviDCR92 Date: Sun, 5 Nov 2017 05:38:31 +0100 Subject: * Modified shadows for Town centre. * Bugfixes in unit movement and collision detection. Now it should work fine. * Added include guards to all *.i files. * Other minor changes --- Player.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Player.h') diff --git a/Player.h b/Player.h index 07101ed..e7c15fc 100644 --- a/Player.h +++ b/Player.h @@ -13,7 +13,7 @@ * Defines * * **************************************/ -#define PLAYER_NAME_LENGTH 16 +#define PLAYER_NAME_LENGTH 16 #define PLAYER_MAX_UNITS_BUILDINGS 32 /* ************************************** @@ -22,9 +22,9 @@ typedef struct t_Resource { - uint8_t Wood; - uint8_t Gold; - uint8_t Food; + uint16_t Wood; + uint16_t Gold; + uint16_t Food; }TYPE_RESOURCES; /* ************************************** @@ -44,7 +44,7 @@ class Player char* getName(void) {return name;} void setHuman(bool value) { human = value; } bool isHuman(void) {return human;} - bool createUnit(TYPE_UNIT_ID id, TYPE_COLLISION_BLOCK cb); + void createUnit(TYPE_UNIT_ID id, TYPE_COLLISION_BLOCK cb); uint8_t getPopulation(void) {return (unit_i + 1);} void ShowResources(void); -- cgit v1.2.3