summaryrefslogtreecommitdiff
path: root/Player.h
diff options
context:
space:
mode:
Diffstat (limited to 'Player.h')
-rw-r--r--Player.h10
1 files changed, 5 insertions, 5 deletions
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);