Prev: 29068 Up: Map Next: 29088
29072: Set a character's destination to Sam's current location
Used by the routines at 29088 and 31362. Copies Sam's coordinates and location identifier into bytes 10, 11 and 12 of the character's buffer.
H Character number (215-229)
29072 CALL 25944 Get Sam's x-, y- and z-coordinates in E, D and A
29075 LD C,A C=Sam's z-coordinate
This entry point is used by the routines at 29100 and 29361 with H=222 or 223 (a policeman) and E, D and C holding the destination x-, y- and z-coordinates.
29076 LD L,10 Copy the coordinates into bytes 10 and 11 of the character's buffer, thus making it his destination
29078 LD (HL),E
29079 INC L
29080 LD (HL),D
This entry point is used by the routine at 31944 with DE holding the character's destination y- and x-coordinates (copied from his command list) and C=1.
29081 CALL 60734 Obtain an identifier for the location whose coordinates are in D, E and C
29084 LD L,12 Copy the location identifier into byte 12 of the character's buffer
29086 LD (HL),A
29087 RET
Prev: 29068 Up: Map Next: 29088