Question
The game must employ object-oriented principals for all the components. That means the highest class is Game your finished game. You may choose to call
The game must employ object-oriented principals for all the components. That means the highest class is Gameyour finished game. You may choose to call this main class Wonderland or another appropriate name. The Game class should have one main() method that creates an instance of the game and invokes it for game execution. Within Game, necessary classes must include Locations, Items, Characters, Actions, Inventory and Control. You may find more classes are necessary to complete the game.
The Control class is the class that reads user input and checks the input against valid Actions. If an Action is allowed, then the methods required to complete the action should be called on the objects involved (e.g., Action: "take"; object involved: "flashlight"). Certain actions will result in changes in the user's inventory. Other actions will change the user's location. Changes in location will trigger appropriate descriptive outputs based on the room entered and whether it is the first time entering.
Give careful consideration to your how the objects (classes) in your game interact.
Your game can contain any reasonable number of locations (rooms), with a minimum of five (5). A common starting point is near the rabbit hole, and the ending point is somewhere in wonderland. Once you descend into the rabbit hole, you are unable to return. Otherwise, the locations (rooms) and how you connect them is your design choice, which MUST be completely documented as part of the design documents for the game. I need to create an "safe room" to act as a gathering area for your treasures.
Locations should have a minimum of one entrance and one exit (not the same), but at least one room must have more than three (3) exits.
You must portray a minimum of five (5) characters from the book. You must have a minimum of 12 items for the main character to interact with, which should be taken from the book.
You will need to establish a goal for the main character (e.g., Alice), and you must state this at the beginning of the game.
The items, characters, location descriptions and action words should be contained in separate text files, which are opened and loaded into the game at the start of the game.
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