Prev: F2BD Up: Map Next: F2C7
F2C2: Test Entity Overlap
Find a simple entity at StateData_SimpleEntities whose bounds overlap IX, ignoring entities with bit 05 set. Used for trap offers, put-downs and falls. On a hit, clear carry and store the entity at Pointer_LastCollidedEntity; on a miss, set carry.
Input
IX Address of complex state data for the subject entity
Test_EntityOverlap F2C2 LD BC,$0000 Load BC with 0000 (reject bit 05, then same room).
F2C5 JR Test_EntityOverlap_Scan Jump to Test_EntityOverlap_Scan to scan with the standard mask.
Prev: F2BD Up: Map Next: F2C7