Question: Colossal Cave Adventure game. The major structural items in this program are Rooms, which are locations that the player can visit. The cave map function

Colossal Cave Adventure game. The major structural items in this program are

Rooms, which are locations that the player can visit. The cave map function is distributed among the rooms. Given a Direction (N, S, E, W, etc), each room knows the other rooms accessible to it. Cave items, which can be found in various Rooms, and which the player can pick up, discard and use. properties files that provide locale-dependent language support for each room and item. All properties files are held in a "resources" directory.

An Cave Element (whether it be an item like an axe, or a room like the wellhouse) consists of

a subclass of either CCaveItem or CCaveRoom a properties file (or possibly several related properties files for Localization support), such as food.properties or wellhouse.properties an entry in either ItemDirectory or RoomDirectory

The package and directory structure follows:

ccave.common contains the cave map, and the global interfaces and compass direction ccave.item contains classes associated with Cave items, such as food or waterccave

location contains classes associated with the rooms of the cave ccave.provided contains classes provided by the instructor ccave.test contains various test classes resources directory containing all properties files

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!