Player -> player_t

This commit is contained in:
mdiluzio 2014-12-21 11:14:01 +00:00
parent 9e44d5144b
commit 83020d9120
8 changed files with 49 additions and 49 deletions

View file

@ -33,15 +33,15 @@ public:
// Check for a win, returns invalid for no win state reached
// Note: this function will return invalid a draw was reached
// best practice would be to call with GetNumUnits() == 0
Player CheckForWin() const;
player_t CheckForWin() const;
// Get the game information as a string
std::string GetStateAsString() const;
// Issue orders to the game, returns non-zero if orders are incorrect
int IssueOrders( Player player, const std::string& orders );
int IssueOrders( Player player, const COrderVector& orders );
int IssueOrder( Player player, const SOrder & order );
int IssueOrders( player_t player, const std::string& orders );
int IssueOrders( player_t player, const COrderVector& orders );
int IssueOrder( player_t player, const SOrder & order );
// Add a units to the game, nonzero return value indicates error
int AddUnit( CUnit&& unit );
@ -71,7 +71,7 @@ public:
inline int GetTurn() const { return turn; }
// Get a vector of the players in the current game
std::vector<Player> GetPlayers() const;
std::vector<player_t> GetPlayers() const;
private:
@ -79,7 +79,7 @@ private:
static bool CheckForPassThrough( const CUnit& one, const CUnit& two );
// Verify any order or position - non-zero is error
int VerifyOrder( Player player, const SOrder & order ) const;
int VerifyOrder( player_t player, const SOrder & order ) const;
int VerifyPos( uvector2 vec ) const;
// Get a units new position after an order