Prev: C069 Up: Map Next: C099
C082: Is the robot in the doorway?
Used by the routine at FIRST_PILLAR.
If the robot's legs, record 0, are in use, use doorways (bit 3 of +7) and are within the doorway's limits (IS_NEAR_TO), sets bit 0 of their flags: while it is set the collision code lets him past the line of the wall, and his move (HANDLE_EXIT_SCREEN) sees whether he has walked out of the room, and clears it. Knight Lore's chk_plyr_spec_near_arch, which looks at records 0 to 3.
Input
IX the first pillar, holding the middle at +$09 to +$0B
L how near in U
H how near in V
CHK_PLYR_NEAR_ARCH C082 LD IY,OBJECTS the robot's legs, if there are any
C086 LD A,(IY+$00)
C089 AND A
C08A RET Z
C08B BIT 3,(IY+$07) not one that uses doorways
C08F RET Z
C090 CALL IS_NEAR_TO not in the doorway
C093 RET NC
C094 SET 0,(IY+$07) in it: he may cross the line of the wall
C098 RET
Prev: C069 Up: Map Next: C099