Clean up CXX Flags and remove statements relating to us being cool. If you have to say it, it ain't true

This commit is contained in:
Marc Di Luzio 2014-12-16 13:13:02 +00:00
parent 43a2c58c56
commit 7a75fbd369
15 changed files with 110 additions and 57 deletions

View file

@ -4,25 +4,27 @@
#include <limits> // std::numeric_limits
// Type for a team IDs
typedef unsigned short team_id_t;
enum class Team : char
{
Red = 0,
Blue,
Green,
Yellow,
NUM_INVALID
};
// Type for player IDs
typedef unsigned short player_id_t;
typedef unsigned char player_id_t;
// Type for unit IDs
typedef unsigned short unit_id_t;
// Type for the unit type-id
typedef char unitType_c;
// Typedef for unit visual representations
typedef char unitVis_c;
// Invalid data for above types
static const team_id_t team_id_invalid = std::numeric_limits<team_id_t>::max();
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 unitType_c unitType_invalid = std::numeric_limits<unitType_c>::max();
static const unitVis_c unitVis_invalid = std::numeric_limits<unitVis_c>::max();
#endif //_GAME_TYPES_H_