45 lines
1.4 KiB
C++
45 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);
|
|
|
|
protected:
|
|
uint16_t _hp; /**< Health points. */
|
|
bool _bAlive; /**< Alive flag. */
|
|
uint8_t _x; /**< X coordinate inside map. */
|
|
uint8_t _y; /**< Y coordinate inside map. */
|
|
};
|
|
|
|
#endif /* BASEUNIT_H__ */
|