Prev: E492 Up: Map Next: E4B9
E4A7: Retire Expired Entity
Used by the routine at Tick_Entity_Colour_Timer.
Erases the entity sprite via Erase_Entity_Sprite, writes the Process_Tracked_Enemy_Entity_Advance advance handler to the entity record (retiring the entity from active update processing), and returns through Retire_Expired_Entity_Advance. Reached when a colour timer spawned by Kill_Tracked_Enemy_Entity expires.
Retire_Expired_Entity E4A7 PUSH HL Stash HL, advance one byte, and erase the sprite via Erase_Entity_Sprite.
E4A8 INC HL
E4A9 CALL Erase_Entity_Sprite
E4AC POP HL Write the Process_Tracked_Enemy_Entity_Advance handler to the entity record and advance.
E4AD DEC HL
E4AE LD DE,$E41C
E4B1 LD (HL),D
E4B2 DEC HL
E4B3 LD (HL),E
This entry point is used by the routines at Process_Cluster_Entity and Retire_Cluster_Entity.
Retire_Expired_Entity_Advance E4B4 LD DE,$000E Advance the entity pointer by 0E bytes and return.
E4B7 ADD HL,DE
E4B8 RET
Prev: E492 Up: Map Next: E4B9