| 1670 | } |
| 1671 | |
| 1672 | Player* GameMap::getPlayer(const std::string& pName) const |
| 1673 | { |
| 1674 | for (Player* player : mPlayers) |
| 1675 | { |
| 1676 | if (player->getNick().compare(pName) == 0) |
| 1677 | { |
| 1678 | return player; |
| 1679 | } |
| 1680 | } |
| 1681 | |
| 1682 | return nullptr; |
| 1683 | } |
| 1684 | |
| 1685 | Player* GameMap::getPlayerBySeatId(int seatId) const |
| 1686 | { |
no outgoing calls
no test coverage detected