MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / isOutside

Method isOutside

source/game/StarPlayer.cpp:2503–2508  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

canBeamUpMethod · 0.45

Calls 2

isUndergroundMethod · 0.45
tileIsOccupiedMethod · 0.45

Tested by

no test coverage detected