| 296 | |
| 297 | |
| 298 | bool Player::isDropHandPossible(Tile *t, unsigned int index) |
| 299 | { |
| 300 | // if we have a creature to drop |
| 301 | if (index >= mObjectsInHand.size()) |
| 302 | { |
| 303 | OD_LOG_ERR("seatId=" + Helper::toString(getSeat()->getId()) + ", index=" + Helper::toString(index) + ", size=" + Helper::toString(mObjectsInHand.size())); |
| 304 | return false; |
| 305 | } |
| 306 | |
| 307 | GameEntity* entity = mObjectsInHand[index]; |
| 308 | return entity->tryDrop(getSeat(), t); |
| 309 | } |
| 310 | |
| 311 | void Player::dropHand(Tile *t, unsigned int index) |
| 312 | { |
no test coverage detected