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

Method hitPoly

source/game/StarMonster.cpp:243–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241}
242
243Maybe<PolyF> Monster::hitPoly() const {
244 PolyF hitBody = m_monsterVariant.selfDamagePoly;
245 hitBody.rotate(m_movementController->rotation());
246 hitBody.translate(position());
247 return hitBody;
248}
249
250List<DamageNotification> Monster::applyDamage(DamageRequest const& damage) {
251 if (!inWorld())

Callers

nothing calls this directly

Calls 3

rotateMethod · 0.45
rotationMethod · 0.45
translateMethod · 0.45

Tested by

no test coverage detected