![]() |
Routines |
| Prev: 63476 | Up: Map | Next: 63501 |
|
Carry out the "Down" command.
|
||||
| Action_Down | 63480 | 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.
|
||||
| Action_Move | 63482 | CALL ParserValidateNoDirectObject | Call ParserValidateNoDirectObject to check that the command has no object. | |
| 63485 | RET C | Leave the routine when the carry flag is set. | ||
| 63486 | LD B,0 | Call GetRoomPointer to point at the current room's exits. | ||
| 63488 | CALL GetRoomPointer | |||
| 63491 | ADD HL,BC | Point at the exit for this direction. | ||
| 63492 | LD A,(HL) | Read this exit's destination room. | ||
| 63493 | OR A | Refuse the move when that exit is closed. | ||
| 63494 | JP Z,Messaging_YouCantGoInThatDirection_Reply | |||
| 63497 | CALL Handler_ChangeRoom | Call Handler_ChangeRoom to change room. | ||
| 63500 | RET | Return. | ||
|
View the equivalent code in;
|
||||
| Prev: 63476 | Up: Map | Next: 63501 |