From d1ff79438d7d20390c2b169dafae603216a7a70a Mon Sep 17 00:00:00 2001 From: Aidan McHugh Date: Sun, 21 Nov 2021 21:07:48 -0500 Subject: [PATCH] Use typedefs. --- player.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/player.h b/player.h index eb373d1..1d62475 100644 --- a/player.h +++ b/player.h @@ -12,6 +12,8 @@ class Player; #include "card.h" typedef std::map> CONTINENT_DATA; +// We store the player number as a uint8_t. This does give us a maximum player count of 256. Should be plenty. +typedef char PLAYER_NUMBER; class Player{ public: @@ -35,11 +37,11 @@ class Player{ void removeTerritory(Territory* t); private: - char player_num; + PLAYER_NUMBER player_num; char num_territories = 0; std::list territories; std::list cards; std::map continents; }; -#endif \ No newline at end of file +#endif