![]() |
Routines |
| Prev: 36596 | Up: Map | Next: 36627 |
|
Move in the given direction, or report that there is no exit.
|
||||
| ActionDown | 36600 | LD C,5 | Select the down exit. | |
|
This entry point is used by the routines at Action_North, Action_South, Action_East, Action_West and Action_Up.
|
||||
| ActionDown_Step1 | 36602 | CALL Parser_ValidateNoDirectObject | Return if the command names an object: the player is told to rephrase it. | |
| 36605 | RET C | |||
| 36606 | LD B,0 | Read the exit byte for the chosen direction. | ||
| 36608 | CALL GetRoomPointer | |||
| 36611 | ADD HL,BC | |||
| 36612 | LD A,(HL) | |||
| 36613 | OR A | That direction is closed when the exit byte is zero. | ||
| 36614 | JR Z,ActionDown_Step2 | |||
| 36616 | CALL MovePlayerToRoom | Call MovePlayerToRoom to move the player. | ||
| 36619 | RET | Return. | ||
| ActionDown_Step2 | 36620 | LD HL,30769 | Print You can't go in that direction.. | |
| 36623 | CALL PrintStringAndANewline | |||
| 36626 | RET | Return. | ||
| Prev: 36596 | Up: Map | Next: 36627 |