From c3a69de5c2e822d91e8284ac65eda83fed6476ba Mon Sep 17 00:00:00 2001 From: XaviDCR92 Date: Thu, 26 Jul 2018 21:22:28 +0200 Subject: + BaseUnit.cpp, BaseUnit.h: added simple member functions for extracting BaseUnit protected data. + HumanPlayer.cpp: started implementing unit selection. Still TODO. --- BaseUnit.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'BaseUnit.h') diff --git a/BaseUnit.h b/BaseUnit.h index a5dfc35..7eafcb3 100644 --- a/BaseUnit.h +++ b/BaseUnit.h @@ -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. */ -- cgit v1.2.3