Programming Assignment 3: Adventure Game 3.0
Contents
Overview
In this PA, you will modify your PA2 to use structures (structs and/or classes) and polish it up. Unlike PAs 1 and 2, PA3 has only two milestones, as listed below.
(Back to top)Specifications
Your completed submission must have at least the following components (you're welcome add additional features to the game!):
- all components specified for PA2
- at least one struct and or class
- where appropriate, a struct or class instance should be passed between functions to reduce the number of function parameters
Milestones
Milestone 1: Class/Struct design
Come up with one or more structs or classes to keep track of data and associated behavior (if using classes). At least one struct or class is required to have five or more data members. Add the class and/or struct definitions at the top of your program. You do no have to use the structs/classes any where in the code just yet—you'll be doing that for Milestone 2.
Be sure to include a comment above each struct and class that explains its purpose. Also be sure to choose an appropriate name for the class/struct; it should be a noun, start with a capital letter, and be informative.
Add your struct and/or class definitions at the top of your code and submit the .cpp file here. You can view the rubric here.
Milestone 2: Implementation
For this milestone, integrate your classes/structs into the code. Replace declarations and updated uses of variables that are now wrapped in structs or classes with instances of those structs/classes. Functions that used to take several parameters that are now data members of a struct or class should take an instance of that struct or class in place of the individual parameters. You will need to update not only the function signatures and invocations, but also the code inside.
Submit your .cpp file here. You can view the rubric here.
(Back to top)