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

Method Active

TombEngine/Game/room.cpp:69–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69bool RoomData::Active() const
70{
71 if (flipNumber == NO_VALUE)
72 return true;
73
74 // Since engine swaps whole room memory block but substitutes flippedRoom,
75 // both original room number and flippedRoom must be chekhed for equality,
76 // as well as NO_VALUE if checking non-flipped rooms.
77 return (!FlipStats[flipNumber] && flippedRoom != originalRoom && flippedRoom != NO_VALUE) ||
78 ( FlipStats[flipNumber] && flippedRoom == originalRoom);
79}
80
81void RoomData::GenerateCollisionMesh()
82{

Callers 15

CollectRoomsMethod · 0.80
KayakToItemCollisionFunction · 0.80
IsPointInRoomFunction · 0.80
FillCollideableItemListFunction · 0.80
TestVolumesFunction · 0.80
GetNearbyItemsFunction · 0.80
GetNearbyStaticsFunction · 0.80
GetCollidedObjectsFunction · 0.80
TestForObjectOnLedgeFunction · 0.80

Calls

no outgoing calls

Tested by 2

TestVolumesFunction · 0.64
TestForObjectOnLedgeFunction · 0.64