Prev: 55748 Up: Map Next: 55786
55776: Dispatch Entity State Handler
Used by the routine at Main_Game_Loop.
Called once per frame by the main game loop at Main_Game_Loop. Reads the state flag at Entity_State_Flag; if 2 (complete) returns immediately. Otherwise loads the dispatch pointer from Entity_State_Pointer and jumps through it to the active entity state handler.
Dispatch_Entity_State_Handler 55776 LD A,(50479) Return if the entity state is complete (2).
55779 CP 2
55781 RET Z
55782 LD HL,(50465) Load the entity state dispatch pointer from Entity_State_Pointer and jump through it.
55785 JP (HL)
Prev: 55748 Up: Map Next: 55786