Prev: 38448 Up: Map Next: 38534
38491: Turn: Print The Location Text
Used by the routine at YouSeePreposition.
Prints the location text, draws the picture, waits for a key, and lists the exits and what is here.
From here starts the "intro" to a location;
  • Print the "You see[0x16]" text
  • Handle printing the location data message for this location (if one exists)
  • Handles initiating the location graphics/ drawing (if it exists)
  • Handles waiting for a keypress (if something was drawn)
  • Prints available exits
YouSeeStart 38491 LD B,A Store A in B temporarily.
38492 CALL LocateLocation Call LocateLocation to set IX to point to the appropriate location data for the current location.
38495 CALL PrintMessage Call PrintMessage to print message.
38498 LD L,(IX+8) Load the location data offset for the current location description.
38501 LD H,(IX+9)
38504 LD A,H Use byte 9 of this object again.
38505 OR L Combine this flag with the low byte.
38506 CALL YouSeePrint Call YouSeePrint to print the location description.
38509 LD A,B Call Drawing with the location id.
38510 CALL Drawing
38513 LD A,(32631) Test if LocationID contains 255, call Turn_WaitForAKey if it does not (i.e. wait for a keypress only if something has been drawn).
38516 INC A
38517 CALL NZ,Turn_WaitForAKey
38520 CALL Print_LineBreak Call Print_LineBreak to print a newline.
38523 LD A,B Call MessageListTheObjects with the location id.
38524 CALL MessageListTheObjects
This entry point is used by the routine at YouSeeController.
YouSee_Exits 38527 LD A,B Call DisplayExits with the location id.
38528 CALL DisplayExits
38531 JP TurnDescribeWhatIsHere Jump to TurnDescribeWhatIsHere to describe what is here.
Prev: 38448 Up: Map Next: 38534