summaryrefslogtreecommitdiff
path: root/Player.h
diff options
context:
space:
mode:
authorXaviDCR92 <xavi.dcr@gmail.com>2018-07-10 00:04:16 +0200
committerXaviDCR92 <xavi.dcr@gmail.com>2018-07-10 00:04:16 +0200
commit14c12aeea30d59e9c811f1cc8c7019053d646033 (patch)
tree7bff078a702a1b2949c37930adfc6fd2fc45c3cb /Player.h
parent188d74cb789f33967daf6daa5af17d41b6f59d4e (diff)
downloadpocketempires-14c12aeea30d59e9c811f1cc8c7019053d646033.tar.gz
More work on Unit/BaseUnit concepts.
Diffstat (limited to 'Player.h')
-rw-r--r--Player.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/Player.h b/Player.h
index 6e89052..b0a91c7 100644
--- a/Player.h
+++ b/Player.h
@@ -6,6 +6,7 @@
* **************************************/
#include <stdint.h>
+#include "Unit.h"
/* **************************************
* Defines *
@@ -39,11 +40,13 @@ class Player
protected:
enum
{
- MAX_NAME_LENGTH = 16
+ MAX_NAME_LENGTH = 16,
+ MAX_UNITS = 32
};
- uint16_t _resourcesMap[MAX_RESOURCE_TYPES] = {0};
- char _name[MAX_NAME_LENGTH] = {0};
+ uint16_t _resourcesMap[MAX_RESOURCE_TYPES];
+ char _name[MAX_NAME_LENGTH];
+ Unit _unitsMap[MAX_UNITS];
};
#endif /* PLAYER_H__ */