MCPcopy Create free account
hub / github.com/crossuo/crossuo / CorpsePixelsInXY

Method CorpsePixelsInXY

src/Managers/AnimationManager.cpp:1455–1473  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1453}
1454
1455bool CAnimationManager::CorpsePixelsInXY(CGameItem *obj, int x, int y)
1456{
1457 if (g_CorpseManager.InList(obj->Serial, 0))
1458 {
1459 return false;
1460 }
1461
1462 m_Sitting = 0;
1463 Anim.Direction = (obj->Layer & 0x7F) & 7;
1464 bool mirror = false;
1465
1466 GetAnimDirection(Anim.Direction, mirror);
1467
1468 uint8_t animIndex = obj->AnimIndex;
1469 Anim.Group = GetDieGroupIndex(obj->GetGraphicForAnimation(), obj->UsedLayer != 0);
1470
1471 return TestPixels(obj, x, y, mirror, animIndex) ||
1472 DrawEquippedLayers(true, obj, x, y, mirror, Anim.Direction, animIndex, 0);
1473}
1474
1475uint16_t CAnimationManager::ConvertBodyIfNeeded(uint16_t graphic, bool isParent)
1476{

Callers 1

SelectMethod · 0.80

Calls 2

InListMethod · 0.80

Tested by

no test coverage detected