Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

//header.h #pragma once #include lt;iostreamgt; #include lt;conio.hgt; #include lt;stdio.hgt; #include lt;time.hgt; #include lt;stdlib.hgt;...

jacobocordova

Hey was wondering if you could help me again with some new code to my program? I need help adding and correcting new functionality to my current code. No functionality of current code or code context should be changed. Here is the break down:

What I'm wanting is to expand the game board to 10 x 10, add a new threat to the player: thief, and am wanting the thief to be invisible on the game board even if the player finds the torch. In addition, am wanting a new object added to the game board: eye. Object only interacts with the player one time, and only in the spot found. When found, makes all objects on board visible including thief. Once player moves, object is no longer accessible, game board goes to previous state, thief is invisible. Object eye is only able to be found by the player.

Player

If player finds weapon and runs into the thief, thief steals weapon and moves away from the player two spaces, with interacting message.

ex msg: Thief found you. Stole weapon and moved away.

If player finds torch and runs into the thief, thief blows out torch, objects on board are not visible, and thief moves away from the player two spaces. Torch is reset on game board with interacting message.

ex msg: Thief found you. Blew out torch and moved away two spaces. New torch in cave.

If player finds noisemaker and runs into the thief, player keeps noisemaker and thief moves away from player two spaces, with interacting message.

ex msg: Thief found you and moved away. You keep noisemaker.

If player uses noisemaker, both thief and monster are paused on board for two player moves only.

Player can only use noisemaker three times.

If player has found weapon and torch, runs into thief, thief blows out torch, objects are not visible, thief steals weapon and moves away two spaces. Torch is reset on game board, all with a interacting message.

ex. msg: Thief found you. Blew out torch, stole weapon and moved away. New torch in cave.

If player has found all three items weapon, torch and noisemaker and encounters thief, thief steals weapon, blows out torch, moves away two spaces, objects are not visible, player keeps noisemaker, with interacting message.

ex. msg: Thief found you. Blew out torch, stole weapon and moved away. You keep noisemaker. New torch in cave.

If player encounters thief without an object, thief moves away two spaces with interacting message.

ex. msg: You felt the slight breeze of something else.

Thief

Thief should have ability of random movement on the board.

The thief should have the ability to find the treasure with interacting message. If found by thief game is over.

The thief should have the ability to find the weapon with interacting message.

If weapon found by thief, and re-encounters player, resolve in combatRoll.

If weapon found by thief, and encounters monster, resolve in combatRoll.

If thief encounters monster without weapon, thief dies.

The thief should not have the ability to find the noisemaker or torch.

Coloring scheme for thief needs to be added.

As you can see from my file I have already started working on alot of the features. All of the comment tags with w6 are what I have updated and added into the code for this week. The w7 tags are what I have already started to add and work on. There seems to be alot of errors mainly with the thief object, so far I think. I'm having an issue with getting my thief object added to the game properly. I need help with correcting how the thief :: player, thief :: monster and monster :: thief interaction work. I'm not exactly sure how to add how to add in to move the thief back two spaces with interaction with player, or how to add in to have the thief steal weapon from player, or blow out and reset the torch functionality. I also need help resolving the combat between the three, and adding the eye functionality to the game. I also need help correcting the color schemeing errors with the thief and eye. I've attached my main.cpp and header.h files. If you please could not change the context of my code that would be great (if you have questions on this let me know). Please let me know if there are any questions with the above.

  • Attachment 1
  • Attachment 2
Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question