diff options
| author | XaviDCR92 <xavi.dcr@gmail.com> | 2018-07-10 00:04:16 +0200 |
|---|---|---|
| committer | XaviDCR92 <xavi.dcr@gmail.com> | 2018-07-10 00:04:16 +0200 |
| commit | 14c12aeea30d59e9c811f1cc8c7019053d646033 (patch) | |
| tree | 7bff078a702a1b2949c37930adfc6fd2fc45c3cb /Player.h | |
| parent | 188d74cb789f33967daf6daa5af17d41b6f59d4e (diff) | |
| download | pocketempires-14c12aeea30d59e9c811f1cc8c7019053d646033.tar.gz | |
More work on Unit/BaseUnit concepts.
Diffstat (limited to 'Player.h')
| -rw-r--r-- | Player.h | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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__ */ |
