Create a text based fantasy arena combat game

Assignment Help Computer Engineering
Reference no: EM132217609

Build a Fantasy Fighting arena combat game in C++ you will be designing and implementing a store with purchasable goods .

You will apply the use of Inheritance, Polymorphism, and File/O in your design and implementation. The following outline the minimum Fantasy Fighting Game requirements:

Create a text based fantasy arena combat game.

The game should consist of the following main elements:

A store to buy equipment (better weapons, better armor, more max-health)

An arena to fight for money.

Game logic using both store and arena.

The ability to save your player progress (Use file I/O for this).

The ability to load your player through Command line and Prompt.

The ability for the player to view their character sheet at will.

For this Topic, you will use inheritance to create a minimum set of classes for the following objects in the game:

- Base Classes:

o Inventory (base class for store and fighting characters)

o Salable item (base class for all salable items)

- Store Items:

o Weapon (inherited from salable item)

o Armor (inherited from salable item)

o Health (inherited from salable item)

o And others as you see fit You will derive a store class from the inventory base class.

You will derive things to buy from at least one category of goods to stock the store (at a minimum pick from weapon, armor, or health).

Your store will be initially be loaded with salable items that are created from input data loaded from a file. You will use the standard File I/O classes available in C++ for this part of the assignment.

The store should have a complete set of appropriate action methods (i.e. behavior). Examples include but not limited to putting a salable item in cart, remove a salable item from a cart, check out, print store items, print cart items, etc. Your salable items should also provide the appropriate interface and inherited behavior using your derived classes.

Examples include but not limited to cost/value, weight, etc. As you define your game logic your chosen category of goods could be expanded on the inherited characteristics as appropriate. A weapon, for example, could also have attack power, etc. The above information should be designed with extension in mind as these classes as they will all be reused when you finish writing your game in the next Topic.

For this project in particular, in addition to the above, you will code some driver logic in a main() that allows the user to interact and use the store. The store should first be instantiated and populated with at least 4 salable items created using input data loaded from a file.

The user should then be able to buy items, which are stored in a vector of salable items, such that any salable item can be stored in a “shopping cart”. When the user is done shopping and checks out from the store a list of the purchases should be printed to the screen along with the user's final money balance.

Store actions can be invoked from a simple menu system or as a series of inline code statements however all of the functionality of the store needs to be demonstrated. You are expected to sanity-check the user's input and require re-entry (or cancellation) of every invalid submission.

Reference no: EM132217609

Questions Cloud

What is two-factor authentication : Of these three fundamental controls, which two are used by the Domain User Admin to create users and assign rights to resources?
Write a program that reads a sentence as input and converts : Write a program that reads a sentence as input and converts each word to "Pig Latin."
What is the corresponding c statement : For the contents of registers $s0 and $s1 as specified above, what is the value of $t0 for the following assembly code?
Give the associated range of destination host addresses : Consider a datagram network using 8-bit host addresses. Suppose a router uses longest prefix matching and has the following forwarding table.
Create a text based fantasy arena combat game : Build a Fantasy Fighting arena combat game in C++ you will be designing and implementing a store with purchasable goods .
Write some statements that use a while loop to associate s : Associate the sum of the non-negative values in the list numbers with the variable sum .
Write the definition of a class player containing : A constructor that takes two int arguments and assigns the first one to counter and the second one to limit.
Calculate the average of the values contained in the integer : Calculate the average (as a double) of the values contained in the integer variables num1, num2, num3 and assign that average to the double.
Write a program that prints the 128-character ascii table : Write a program that prints the 128-character ASCII table. It should print the table in eight tab-separated columns.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Write the while loop that lets the users enter a number

Write the while loop that lets the users enter a number. The number should be multiplied with produce and the result stored back to the variable product.

  Design a pulse-mode circuit

Design a pulse-mode circuit using the following state table.

  Write a function called minimum that return smallest integer

Write a function called Minimum that returns the smallest of its three Integer parameters.

  Create a proper database using microsoft access

create a proper database using Microsoft Access. Continue your project by using the original Microsoft Excel spreadsheets to load data

  Draw a uml class diagram that shows the relations

The bank supports the following transactions involving accounts belonging to the same customer: withdrawal, transfer, deposit.

  What it is role is in the overall program

Improve the program's functionality by utilizing at least 5 of the concepts from the list below. Document how the game works, including how you utilized each of the chosen concepts and what it's role is in the overall program.

  Designing a solution to the problem

Designing a solution to the problem and implementing the design using principles of correct syntax

  What variety of cable will work to make an association

What variety of cable will work to make an association

  Explain the basic primary tasks and procedural changes

Explain the basic primary tasks, ongoing evaluations, and major policy and procedural changes that would be needed to perform as the BC lead / manager.

  Develop a prototype of e-commerce website

Electronic Commerce Systems ISY10058 - develop a prototype of e-commerce website for a real or fictional business - develop the website according

  Why do all the crc generating polynomials end with a one

List the types of errors that cannot escape a cyclic redundancy checksum system. Why do all the CRC generating polynomials end with a 1?

  What is the address of the instruction that caused the abend

What is the address of the next instruction which will be executed? What is the value of the condition code at the time of the ABEND?

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