diff options
| author | XaviDCR92 <xavi.dcr@gmail.com> | 2017-11-05 05:38:31 +0100 |
|---|---|---|
| committer | XaviDCR92 <xavi.dcr@gmail.com> | 2017-11-05 05:38:31 +0100 |
| commit | 8fba2176bc34aa7e507f0b9d983427bb5e522e17 (patch) | |
| tree | d5e1c7d5560f30581fc5a1957121fc0a198b62f7 /Player.h | |
| parent | 2cf2d608af862e812e7fd3ac580f869141a96fa7 (diff) | |
| download | pocketempires-8fba2176bc34aa7e507f0b9d983427bb5e522e17.tar.gz | |
* 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
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); |
