ttrts/source/game/gametypes.h
mdiluzio 9e44d5144b Rename all usages of Team to Player
This was confusingly inconsistent in the codebase.
fixes #7
2014-12-21 11:04:26 +00:00

23 lines
No EOL
561 B
C++

#ifndef _GAME_TYPES_H_
#define _GAME_TYPES_H_
#include <limits> // std::numeric_limits
// Type for a Player IDs
enum class Player : 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_