diff options
| author | XaviDCR92 <xavi.dcr@gmail.com> | 2018-07-26 21:22:28 +0200 |
|---|---|---|
| committer | XaviDCR92 <xavi.dcr@gmail.com> | 2018-07-26 21:22:28 +0200 |
| commit | c3a69de5c2e822d91e8284ac65eda83fed6476ba (patch) | |
| tree | fce44421bdb8230cfcb2b614ea00b26439f4e67d /BaseUnit.h | |
| parent | bfdc0b9f497ef10f6687abcc55d93405c611af11 (diff) | |
| download | pocketempires-c3a69de5c2e822d91e8284ac65eda83fed6476ba.tar.gz | |
+ BaseUnit.cpp, BaseUnit.h: added simple member functions for extracting BaseUnit protected data.
+ HumanPlayer.cpp: started implementing unit selection. Still TODO.
Diffstat (limited to 'BaseUnit.h')
| -rw-r--r-- | BaseUnit.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -34,6 +34,9 @@ class BaseUnit explicit BaseUnit(void); void handler(void); void create(const uint16_t x, const uint16_t y); + bool isAlive(void); + bool isSelected(void); + uint16_t getX(void); protected: uint16_t _hp; /**< Health points. */ |
