(Formerly known as character[].prevroom, which is now obsolete)
readonly int Character.PreviousRoom
Gets the room number that the character was previously in. If the character is still
in the room that they started in, this will be -1. Otherwise, it will be the room number
of the room that they were last in.
This is a read-only property. It is set automatically by ChangeRoom.
Example:
Display("EGO's previous room was %d.", cEgo.PreviousRoom);
will display the EGO character's previous room.
|