| 80 | } |
| 81 | |
| 82 | unsigned int Player::numCreaturesInHand(const Seat* seat) const |
| 83 | { |
| 84 | unsigned int cpt = 0; |
| 85 | for(GameEntity* entity : mObjectsInHand) |
| 86 | { |
| 87 | if(entity->getObjectType() != GameEntityType::creature) |
| 88 | continue; |
| 89 | |
| 90 | if(seat != nullptr && entity->getSeat() != seat) |
| 91 | continue; |
| 92 | |
| 93 | ++cpt; |
| 94 | } |
| 95 | return cpt; |
| 96 | } |
| 97 | |
| 98 | unsigned int Player::numObjectsInHand() const |
| 99 | { |
nothing calls this directly
no test coverage detected