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

Method playerCanReachEntity

source/game/StarWorldClient.cpp:2191–2193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2189}
2190
2191bool WorldClient::playerCanReachEntity(EntityId entityId, bool preferInteractive) const {
2192 return m_mainPlayer->isAdmin() || canReachEntity(m_mainPlayer->position(), m_mainPlayer->interactRadius(), entityId, preferInteractive);
2193}
2194
2195void WorldClient::disconnectAllWires(Vec2I wireEntityPosition, WireNode const& node) {
2196 m_outgoingPackets.append(make_shared<DisconnectAllWiresPacket>(wireEntityPosition, node));

Callers 5

updateMethod · 0.80
tickMethod · 0.80
updateMethod · 0.80
updateMethod · 0.80
tickMethod · 0.80

Calls 4

canReachEntityFunction · 0.85
isAdminMethod · 0.45
positionMethod · 0.45
interactRadiusMethod · 0.45

Tested by

no test coverage detected