From 20936e93023c18f54d217c66b0e08fa80f4f7d50 Mon Sep 17 00:00:00 2001 From: XaviDCR92 Date: Tue, 10 Jul 2018 23:17:34 +0200 Subject: Camera is now an independent instance, and HumanPlayer only holds a reference to it. --- BaseUnit.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'BaseUnit.h') diff --git a/BaseUnit.h b/BaseUnit.h index 4ce1186..aa9e16a 100644 --- a/BaseUnit.h +++ b/BaseUnit.h @@ -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__ */ -- cgit v1.2.3