Question
C++ For the purposes of this course, you will need to make your own simplified version of Adventure, which will include several of the elements
C++
For the purposes of this course, you will need to make your own simplified version of Adventure, which will include several of the elements from the original game. In particular, your game will need to meet the following minimum requirements.
An overall objective. For example, get the character to Room101.
A point based system. For example, you can give points for visiting locations or for interacting with certain parts of the world.
A character. At a minimum, the character should be a class that has member variables for their name and game score. Of course, you can add more member variables if you want to make your game more complicated.
A map of your world that shows the dependencies between the locations in the world. From a design perspective, you should have a location class with a description for each location. You will need to have at least 25 locations in your world. You need to implement the entire world as a two dimensional array and allow the user to navigate through it.
At least three locations should support some form of interaction. For example, you could have a fountain from which the character can drink or a simple puzzle they need to solve to finish the game. This can be implemented as a function.
A list of commands that the program will accept. You are free to implement as many commands as you like. At a minimum, you will need the following commands: 1. Help Display help for the user 2. N,S,E,W The character should be able to move in one of four directions. This should change their location unless they are on the edge of the map or move to an invalid location. 3. Score The program should display the score.
Constructors, accessor, and mutator functions for all your classes. You may also want some friend functions to help you with input and output.
Separate Compilation Your program should support separate compilation with header files for each class.
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