With each tutorial, we'll expand upon a simple gaming system object model. For the moment, however, we'll concentrate on the minimal subset of objects required to implement simple gameplay.
There are two primary objects which are required :-
Represents a room, corridor, path, or other physical location which can be described.
Exit objects lead from one location to another, and have as attributes a direction, a long description of the direction (SOUTHEAST), and a short description (SE).
In this tutorial, we'll cover the design and implmentation of each of these objects, as well as writing a simple applet to show how locations and exits work.