MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / GetLizardEntityList

Function GetLizardEntityList

TombEngine/Objects/TR3/Entity/PunaBoss.cpp:76–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74 }
75
76 static std::vector<int> GetLizardEntityList(const ItemInfo& item)
77 {
78 auto entityList = std::vector<int>{};
79
80 for (auto& currentEntity : g_Level.Items)
81 {
82 if (currentEntity.ObjectNumber == ID_LIZARD &&
83 currentEntity.RoomNumber == item.RoomNumber &&
84 currentEntity.HitPoints > 0 &&
85 currentEntity.Status == ITEM_INVISIBLE &&
86 !(currentEntity.Flags & IFLAG_KILLED))
87 {
88 entityList.push_back(currentEntity.Index);
89 }
90 }
91
92 return entityList;
93 }
94
95 static Vector3 GetLizardTargetPosition(ItemInfo& item)
96 {

Callers 1

GetLizardItemNumberFunction · 0.85

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected