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-16 13:12:57 +00:00
|
|
|
// Type for a team IDs
|
2014-12-16 13:13:02 +00:00
|
|
|
enum class Team : char
|
|
|
|
{
|
|
|
|
Red = 0,
|
|
|
|
Blue,
|
|
|
|
Green,
|
|
|
|
Yellow,
|
|
|
|
NUM_INVALID
|
|
|
|
};
|
2014-12-16 13:12:57 +00:00
|
|
|
|
|
|
|
// Type for player IDs
|
2014-12-16 13:13:02 +00:00
|
|
|
typedef unsigned char player_id_t;
|
2014-12-16 13:12:57 +00:00
|
|
|
|
|
|
|
// Type for unit IDs
|
|
|
|
typedef unsigned short unit_id_t;
|
|
|
|
|
2014-12-16 13:12:58 +00:00
|
|
|
// Typedef for unit visual representations
|
|
|
|
typedef char unitVis_c;
|
|
|
|
|
2014-12-16 13:13:00 +00:00
|
|
|
// Invalid data for above types
|
|
|
|
static const player_id_t player_id_invalid = std::numeric_limits<player_id_t>::max();
|
|
|
|
static const unit_id_t unit_id_invalid = std::numeric_limits<unit_id_t>::max();
|
|
|
|
static const unitVis_c unitVis_invalid = std::numeric_limits<unitVis_c>::max();
|
|
|
|
|
2014-12-16 13:12:57 +00:00
|
|
|
#endif //_GAME_TYPES_H_
|