Move source code into source subfolder
This commit is contained in:
parent
870f459f75
commit
d0d3834449
23 changed files with 0 additions and 0 deletions
25
source/game/gametypes.h
Normal file
25
source/game/gametypes.h
Normal file
|
@ -0,0 +1,25 @@
|
|||
#ifndef _GAME_TYPES_H_
|
||||
#define _GAME_TYPES_H_
|
||||
|
||||
#include <limits> // std::numeric_limits
|
||||
|
||||
// Type for a team IDs
|
||||
enum class Team : char
|
||||
{
|
||||
Red = 0,
|
||||
Blue,
|
||||
Green,
|
||||
Yellow,
|
||||
NUM_INVALID
|
||||
};
|
||||
|
||||
|
||||
typedef unsigned char player_id_t; // Type for player IDs
|
||||
typedef unsigned short unit_id_t; // Type for unit IDs
|
||||
typedef char unitVis_c; // Typedef for unit visual representations
|
||||
|
||||
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();
|
||||
|
||||
#endif //_GAME_TYPES_H_
|
Loading…
Add table
Add a link
Reference in a new issue