23 lines
No EOL
555 B
C++
23 lines
No EOL
555 B
C++
#ifndef _GAME_TYPES_H_
|
|
#define _GAME_TYPES_H_
|
|
|
|
#include <limits> // std::numeric_limits
|
|
|
|
// Type for a team IDs
|
|
enum class Team : char
|
|
{
|
|
Red = 0,
|
|
Green,
|
|
Yellow,
|
|
Blue,
|
|
NUM_INVALID
|
|
};
|
|
|
|
|
|
typedef unsigned short unit_id_t; // Type for unit IDs
|
|
typedef char unitVis_c; // Typedef for unit visual representations
|
|
|
|
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();
|
|
|
|
#endif //_GAME_TYPES_H_
|