Escape
to
Pokagon

Movement Only Text Implementation in C++

This version builds upon the previous version of parsing the data file to create a functional text-based adventure game in that the adventurer can successfully move about the rooms. This is a very important test program as it serves as the basis for all further development. Essentially, if the student can reach this point by utilizing proper and appropriate techniques, then the student will have an excellent opportunity to complete the full assignment. The program serves to exercise the Room class and verify the representation and manipulation of the set of rooms in the main program. For this implementation, simple one-word commands indicating the direction of travel is the only allowed input (save for 'quit' to terminate the game).
Resources:  
The header file for the Room class is freely available, as is the sample data file. The header documentation file for the full version of the program can be edited for use here. Access to the source code files is limited to faculty members only; links are given to the code request page with an indication as to how large the files are.

Adventure Engine Code - Movement Only Version:
Main program adventure.cpp (2 KB)  
Room class room.cpp (7 KB) room.h (1 KB)
Generic data files exampleRoomData.txt (3 KB)  

Head back to Pokagon....

Follow the twisty link back to the nifty adventure assignment....
Web page created 9 February 2002 by John K. Estell, ECCS Department, Ohio Northern University.