> look east
[controller works out the array location using the east exit]
[controller checks the in memory cache (the list) for a loaded room]
[if it exists in the cache]
[use the room in memory]
[if it exists in a db or exists as a hashed file]
[load the room from the file/db]
[dynamically generate the room's description]
[cache the room in the list]
[display]
To the east you see:
A rocky path at the base of a mountain.
You see:
There is a small mound here, a head on a rusty pike and a longsword.
There are 3 exits: north, south and west.
[remove the room from memory, possibly with a time delay in case the player moves that way]
> look east
[controller works out the array location using the east exit]
[controller checks the in memory cache (the list) for a loaded room]
[if it exists in the cache]
[use the room in memory]
[if it exists in a db or exists as a hashed file]
[load the room from the file/db]
[dynamically generate the room's description]
[cache the room in the list]
[display]
To the east you see:
A rocky path at the base of a mountain.
You see:
There is a small mound here, a head on a rusty pike and a longsword.
There are 3 exits: north, south and west.
[remove the room from memory, possibly with a time delay in case the player moves that way]