Käynnissä

Inventory for rpg

Create a class for an inventory system for an RPG. Your solution should contain the following classes

An Interface called IContainer ­ items that implement IContainer can have other things put inside them

Add method ­ adds an item to the container. You may NOT calculate or store the totals for the container here TotalCount property ­ returns how many items are in the container including any containers inside. You MUST calculate the totalCount recursively when this method is called

TotalWeight property ­ returns the total weight of the container including any containers inside. You MUST calculate the totalWeight recursively when this method is called

A class called Inventory that implements IContainer

The constructor should pass in the number of items in the inventory An abstract base class called Item

Each item should have a cost and a weight property

Several inherited objects from a typical RPG. Each item should have a different cost and weight A BagOfHolding class which inherits from Item and implements IContainer

You should write some test code to test all of your classes. For example, it might look something like this. Make sure that you test the recursive TotalCount and TotalWeight methods

var inventory = new Inventory(3);

[url removed, login to view](new Sword());

[url removed, login to view](new Potion());

var bagOfHolding = new BagOfHolding(4);

[url removed, login to view](bagOfHolding);

[url removed, login to view](new Sword());

[url removed, login to view]("The number of items in the inventory is {0} ",

[url removed, login to view]);

[url removed, login to view]("The total weight of the inventory is {0} ",

[url removed, login to view]);

In C# programming using visual Studio

Taidot: C# -ohjelmointi

Näytä lisää: beastmaster class armor, genders mod 1.5 2, rpg inventory wiki, rpg inventory mod 1.7.10 curse, subcommon mod 1.10 2, rpg inventory mod 1.7.10 9minecraft, class armor mod, rpg inventory plugin, i m looking for a sport shoe designer to create a new product for me company in thailand that could make different sports clothi, example php code create order report using fpdf, example tier code create datalist mysql database using, look 100000 friends code myspace, create emails look websites, customized articulate presenter design different look, flash rpg create isometric

Tietoa työnantajasta:
( 3 arvostelua ) Lorain, United States

Projektin tunnus: #15606177

Myönnetty käyttäjälle:

tyronewright

Hi there, I'm a c# developer with more than 4 years full time working experience I am looking to build a reputation on this site. Allow me to send you the solution before the bid deadline and if you're happy then award Lisää

10 $ USD 1 päivässä
(0 arvostelua)
0.0

5 freelancers are bidding on average $15 for this job

RameshMarand

Hello Mate, Hope you are doing well. Can we have a $kype call to discuss the scope in detail so that I can give you an exact estimation for your project? We work at $15/hr We are leading software Development Lisää

15 $ USD 30 päivässä
(1 arvostelu)
3.1
nishainsan22

hlo sir I read your requirement and I can handle it. it will my pleasure to work with you. just give me a chance

19 $ USD 2 päivässä
(0 arvostelua)
0.0
17 $ USD 1 päivässä
(0 arvostelua)
0.0
DimaDobrotvorsky

Hi, i would like to get you offer I had some experience with vector and logo design Also you can see my works on my profile or at the [url removed, login to view] i develop my own game now And i can share my rpg ico Lisää

15 $ USD 1 päivässä
(0 arvostelua)
0.0