C++ Program Visual Studio

For this week’s Final Project Milestone you implemented the Room Map in wk7_Room.cpp. That Map code will support the app code you write for this assignment. Be sure to complete the Milestone assignment first!

  1. Start with these files: wk6_completed_code.zip provided below.
  2. This week’s starter code provides the Look command. Build the app and try it out!
  3. Study these files: wk7_app_init_rooms.cpp and wk7_app.h.
  4. Use Cut/Paste to customize wk7_app_init_rooms.cpp with your room initialization code. After this step you should have two room initialization functions.
  5. Make sure the room initialization function prototypes are correct in wk7_app.h. The function names should correspond to your custom room names.
  6. Choose a direction from the room you already had to the new room you just added. Use one of the provided direction constants: ROOM_NORTH, ROOM_SOUTH, etc.
  7. >>> This is wrong: In wk7_app_init_rooms.cpp, at the bottom of the room initialization function for the room you already had, add code to set one of the room map direction pointers to the pointer for your new room. <<< Instead, initialize both rooms first. Save the returned room pointers in global variables. Only then can you initialize the room map pointers – all the the room pointers need to be valid first!
  8. Room and room map initialization code snippet
  9. >>> You don’t need to do this. Set all other room map direction pointers for the old room to point to the old room. <<< Instead, just set the room pointers you need as in the code above.
  10. Choose a direction from the new room to the room you already had.
  11. >>> This is wrong – you took care of this in Step 7 above: In wk7_app_init_rooms.cpp, at the bottom of the room initialization function for the new room, add code to set one of the room map direction pointers to the pointer for your old room. <<<
  12. >>> You don’t need to do this. Set all other room map direction pointers for the new room to point to the new room. <<< Instead, just set the room pointers you need as in the code above.
  13. In the file wk7_app.cpp, change the way you handle each direction command. Instead of displaying direction text, update the current room pointer with the room map pointer for that direction. I put sample code for this in one of the direction command cases in the app’s switch statement.
  14. Code the setRoomDirectionPtr() and getRoomDirectionPtr() member functions in this file. The new Room member functions for the Room Map are similar to the Room direction text member functions you previously coded.

Assignment Requirements

Your game app should compile cleanly with the provided class declaration files (don’t edit these files!):

  • wk7_Treasure.h
  • wk7_Room.h
  • wk7_Player.h

Your running app should handle all direction commands by “moving” the player to the appropriate room, based on your room map pointers.

Research Paper 101
Calculate your paper price
Pages (550 words)
Approximate price: -

Reasons to trust Research Paper 101

On Time Delivery

We pride ourselves in meeting the deadlines of our customers. We take your order, assign a writer but allow some more time for ourselves to edit the paper before delivering to you. You are guaranteed a flawless paper on a timely manner...

24x7 Customer Live Support

Our team at Research Paper 101 is committed to handling your paper according to the specfications and are available 24*7 for communication. Whenever you need a quick help, you can talk to our writers via the system messaging or contact support via live chat and we will deliver your message instantly.

Experienced Subject Experts

Online Experts from Research Paper 101 are qualified both academically and in their experiences. Many are Masters and Phd holders and therefore, are qualified to handle complex assignments that require critical thinking and analyses...

Customer Satisfaction

We offer dissertation papers as per students’ wishes. We also help craft out the best topics and design concept papers. By ordering with us, you are guaranteed of defending and making through those hard faced professors in the defense panel!

100% Plagiarism Free

We at Research Paper 101 take plagiarism as a serious offence. From the start, we train our writers to write all their papers from scratch. We also check if the papers have been cited appropriately. Our website also has a tool designed to check for plagiarism that has been made erroniusly. In essense, the paper you get will be 100% legit...

Affordable Prices

We understand that being a student is very challenging, some students balance between work and studies in order to survive. We therefore offer pocket friendly rates that are very competitive in the market.

Try it now!

Calculate the price of your order

Total price:

How it works?

Follow these simple steps to get your paper done

Place your order

Fill in the order form and provide all details of your assignment.

Proceed with the payment

Choose the payment system that suits you most.

Receive the final file

Once your paper is ready, we will email it to you.

Our Services

No need to work on your paper at night. Sleep tight, we will cover your back. We offer all kinds of writing services.


Essay Writing Service

No matter what kind of academic paper you need and how urgent you need it, you are welcome to choose your academic level and the type of your paper at an affordable price. We take care of all your paper needs and give a 24/7 customer care support system.


Admission Essays & Business Writing Help

An admission essay is an essay or other written statement by a candidate, often a potential student enrolling in a college, university, or graduate school. You can be rest assurred that through our service we will write the best admission essay for you.


Editing Support

Our academic writers and editors make the necessary changes to your paper so that it is polished. We also format your document by correctly quoting the sources and creating reference lists in the formats APA, Harvard, MLA, Chicago / Turabian.


Revision Support

If you think your paper could be improved, you can request a review. In this case, your paper will be checked by the writer or assigned to an editor. You can use this option as many times as you see fit. This is free because we want you to be completely satisfied with the service offered.

Need help? Chat with Us