PocketEmpires/BaseUnit.h

46 lines
1.4 KiB
C++

#ifndef BASEUNIT_H__
#define BASEUNIT_H__
/* *******************************************************************
* Includes
* ******************************************************************/
#include <stdbool.h>
#include <stdint.h>
/* *******************************************************************
* Defines
* ******************************************************************/
/* *******************************************************************
* Global types definition
* ******************************************************************/
/* *******************************************************************
* Global variables declaration
* ******************************************************************/
/* *******************************************************************
* Global functions declaration
* ******************************************************************/
/* *******************************************************************
* Class definition
* ******************************************************************/
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 _alive; /**< Alive flag. */
uint16_t _x; /**< X coordinate inside map. */
uint16_t _y; /**< Y coordinate inside map. */
};
#endif /* BASEUNIT_H__ */