diff options
Diffstat (limited to 'Player.h')
| -rw-r--r-- | Player.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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); |
