C++ Three Classes Menu for game

profileaalaz

 There are two parts to this assignment. First, you should refactor your class to only have private data members and a public interface using getters/setters as necessary. If your class uses helper functions, then make sure they are appropriately declared as private so a user cannot inadvertantly call one of them. Be sure to add const where appropriate for all functions and parameters do not modify the corresponding values.

Second, you must acquire three other magic items from your classmates to use (see the next section). Include their .h and .cpp files into your project. Then in your main.cpp create objects of these new classes. You can then present the user with a menu as to which magic item they want to use or use all four in sequence. 

 

Functional Requirements

To receive full credit, the following requirements must be met:

  • Your "magic item" class should have at least two data members and, in addition to constructors and getter/setter functions, at least three other member functions. One of these other functions should be an introduction() function that tells the user how to use the "magic item" to win a prize.
  • Both files associated with your "magic item" class should include your name.
  • Your main.cpp must use at least three "magic items" written by others (in addition to your own), as well as let the user know whether he/she won the prize.

I uploaded all the needed .cpp and .h files including my own and the main.cpp where the game needs to be 

  • 6 years ago
  • 130
Answer(1)

Purchase the answer to view it

blurred-text
NOT RATED
  • attachment
    Magic_Game.zip