diff options
| author | XaviDCR92 <xavi.dcr@gmail.com> | 2018-07-10 23:17:34 +0200 |
|---|---|---|
| committer | XaviDCR92 <xavi.dcr@gmail.com> | 2018-07-10 23:17:34 +0200 |
| commit | 20936e93023c18f54d217c66b0e08fa80f4f7d50 (patch) | |
| tree | 613f81844cfbceb5a097c4ccf77dc3688081b3e4 /BaseUnit.h | |
| parent | 14c12aeea30d59e9c811f1cc8c7019053d646033 (diff) | |
| download | pocketempires-20936e93023c18f54d217c66b0e08fa80f4f7d50.tar.gz | |
Camera is now an independent instance, and HumanPlayer only holds a reference to it.
Diffstat (limited to 'BaseUnit.h')
| -rw-r--r-- | BaseUnit.h | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -33,12 +33,13 @@ class BaseUnit public: explicit BaseUnit(); void handler(void); + void create(const uint16_t x, const uint16_t y); protected: uint16_t _hp; /**< Health points. */ - bool _bAlive; /**< Alive flag. */ - uint8_t _x; /**< X coordinate inside map. */ - uint8_t _y; /**< Y coordinate inside map. */ + bool _alive; /**< Alive flag. */ + uint16_t _x; /**< X coordinate inside map. */ + uint16_t _y; /**< Y coordinate inside map. */ }; #endif /* BASEUNIT_H__ */ |
