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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started