Create a player and non-playable character objects

Assignment Help C/C++ Programming
Reference no: EM131755073

Topic: Project C++: A player engine for RPG fighting

An engine is needed to create a player and non-playable character objects. Players will require an inventory of Weapons, Armor, and potions. Each fighter can equip armor and a weapon. Characters will start at a level one. At this will give them an attack power of 1, and a defense of 1.

Health is the number of health points player has.

Attack is the damage done to an enemy

Defense is how well you defend when attacked. The enemy must roll better than this to hit you.

Experience is the minimum needed to reach a specified level.

Player stats level 1 level 2 level 3 level 4 level 5 level 6 level 7 level 8 level 9

Health 10 15 20 25 30 35 40 45 50

Attack Power 1 2 3 4 5 6 7 8 9

Defense 1 2 3 4 5 6 7 8 9

Experience 0 20 40 80 160 220 440 880 1760

Weapons tell how well you can attack. The weapon must be equipped to use. Power bonus is added to players attack power during attack. This determines how much damage is dealt with an enemy if hit.

Weapon Sword Axe Dagger of Striking

Roll min 0 1 5

Roll max 10 10 15

Power bonus 0 1 3

Armor, when equipped, adds to defense, making player harder to hit during an attack.

Armor None Leather Chainmail

Defense bonus 0 1 3

Potions can be part of inventory and are needed for healing. (restoring health points of player).

For part one create player objects and inventory objects. Use test driver function calls to test that they are being created and that accessors and mutators work.

(Driver functions are functions used for testing and debugging.)

After creating your objects, the game needs to have a controller (or engine) to run. This is a recommended model of how to manage the game flow. (note if you have a different method that is ok as long as requirements are met.)

Note that I have a separate function called test that will allow me to run test code. I have made the choice value for this 99 (const int TEST = 99). I did this so I can call the test without the user knowing the debug option.

When the game starts, you should have a display similar to this:

Text Fighter v0.1

(((Press Enter)))

1: Play Game

2: Quit

Playing the game will then run the actual game. Thus generate the player character set the level, health, beginning armor.

A scenario should output; something like "An enemy comes into view ready to attack you. What do you do?" At this point a menu of options can show with options to attack, take potion (this is usually to heal), or run.

Attack will commence player to run an attack function against the enemy. Something like player.Attack(enemy);

After the player attack, the program should check if the enemy has health remaining. If not battle is over and rewards can be issued to the player. The player should have the option to equip and new weapons or armor (this can be done automatically if that's simpler.) experience should be rewarded. And then the player goes to next battle.

If the enemy does not die (enemy.currentHealth!=0 ) then enemy should attack; enemy.Attack(player);

If player health falls below 0 then player dies and the current game run should end. This should send the game back to the main menu.

Requirements for Grade:

These need to be present:

Player Object Class

Weapon Object class

Armor Object Class

Title Screen

Test Function

Used to test object creation and unit test functions

/> Game Engine

In game menu (or help display with control options)

Battle logic

Reward logic

Header file structure

These standards need to be met:

Program runs (no syntax errors)

Code is readable

Logic is clean (clean of most logical errors)

Attachment:- Assignment File.rar

Reference no: EM131755073

Questions Cloud

Present the given data in a well-labeled bar graph : Birth days Births are not evenly distributed across the days of the week. Here are the average numbers of babies born on each day of the week in the United.
Sports-related head injuries : There has been increased attention lately to sports-related head injuries. Frontline recently published an article about the NFL's "concussion crisis
What is the adjusted basis of mr. ds stock on december : No distributions were made in 2015 or 2016 by the corporation. What is the adjusted basis of Mr. D's stock on December 31, 2016
Make a bar graph to display the given data : Deaths among young people Among persons aged 15 to 24 years in the United States, the leading causes of death and number of deaths in a recent year.
Create a player and non-playable character objects : Topic: Project C++: A player engine for RPG fighting. An engine is needed to create a player and non-playable character objects
Contrast the information from the video with actual outcomes : This video was developed just as the Patient Protection and Affordable Care Act (commonly referred to as ACA) was due to be implemented.
What amount of net operating loss will be available taylor : What amount of net operating loss will be available to Taylor for the year ended December
What percent of students plan to major in business : Which major? About 1.6 million first-year students enroll in colleges and universities each year. What do they plan to study?
Assume solange uses a perpetual system : Assume Solange uses a perpetual system, Assume Solange uses the perpetual system and a count

Reviews

len1755073

12/7/2017 6:23:39 AM

Detailed Question: Hello everyone, I'm beginner programmer and got a task to finish but I'm lost. Please help me to start the project. After creating your objects, the game needs to have a controller (or engine) to run. This is a recommended model of how to manage the game flow. (note if you have a different method that is ok as long as requirements are met.) Note that I have a separate function called test that will allow me to run test code. I have made the choice value for this 99 (const int TEST = 99). I did this so I can call the test without the user knowing the debug option.

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd