Prev: A140 Up: Map Next: A193
A15C: Actor : Create a door event for a person.
Used by the routine at Action_b.
Input
Output
Actor_CreateDoorEvent A15C CALL LinkList_CreateNewBg Create data node for object.
A15F RET Z No more nodes left.
A160 LD HL,Event_NumDoors
A163 INC (HL)
A164 LD HL,EventDoorOpenClose Store object handling function.
A167 LD (IX+$03),L
A16A LD (IX+$04),H
A16D LD (IX+$02),$92
A171 LD DE,(People_TempCoordEW)
A175 LD HL,(People_TempCoordNS)
A178 LD A,(Temp_DirCompass)
A17B LD (IX+$0A),A
A17E LD (IX+$05),L
A181 LD (IX+$06),H
A184 LD (IX+$07),E
A187 LD (IX+$08),D
A18A LD (IX+$09),$10
A18E LD (IX+$0E),$01
A192 RET
Prev: A140 Up: Map Next: A193