| 2501 | } |
| 2502 | |
| 2503 | bool Player::isOutside() { |
| 2504 | if (!inWorld()) |
| 2505 | return false; |
| 2506 | return !world()->isUnderground(position()) |
| 2507 | && !world()->tileIsOccupied(Vec2I::floor(mouthPosition()), TileLayer::Background); |
| 2508 | } |
| 2509 | |
| 2510 | void Player::dropSelectedItems(function<bool(ItemPtr)> filter) { |
| 2511 | if (!world()) |
no test coverage detected