2014-12-16 13:12:57 +00:00
|
|
|
#ifndef _GAME_TYPES_H_
|
|
|
|
#define _GAME_TYPES_H_
|
|
|
|
|
2014-12-16 13:13:00 +00:00
|
|
|
#include <limits> // std::numeric_limits
|
|
|
|
|
2014-12-21 11:04:26 +00:00
|
|
|
// Type for a Player IDs
|
|
|
|
enum class Player : char
|
2014-12-16 13:13:02 +00:00
|
|
|
{
|
|
|
|
Red = 0,
|
|
|
|
Green,
|
|
|
|
Yellow,
|
2014-12-20 15:35:18 +00:00
|
|
|
Blue,
|
2014-12-16 13:13:02 +00:00
|
|
|
NUM_INVALID
|
|
|
|
};
|
2014-12-16 13:12:57 +00:00
|
|
|
|
|
|
|
|
2014-12-16 13:13:02 +00:00
|
|
|
typedef unsigned short unit_id_t; // Type for unit IDs
|
2014-12-21 10:45:08 +00:00
|
|
|
typedef char unitvis_c; // Typedef for unit visual representations
|
2014-12-16 13:12:57 +00:00
|
|
|
|
2014-12-16 13:13:00 +00:00
|
|
|
static const unit_id_t unit_id_invalid = std::numeric_limits<unit_id_t>::max();
|
2014-12-21 10:45:08 +00:00
|
|
|
static const unitvis_c unitvis_invalid = std::numeric_limits<unitvis_c>::max();
|
2014-12-16 13:13:00 +00:00
|
|
|
|
2014-12-16 13:12:57 +00:00
|
|
|
#endif //_GAME_TYPES_H_
|