Question: please use java. Thanks 1 The Character Interface For the purposes of this project, a Character has the following characteristics: An equipped weapon An equipped

please use java. Thanksplease use java. Thanks 1 The Character Interface For the purposes ofthis project, a Character has the following characteristics: An equipped weapon Anequipped set of armor pieces A list of items, weapons, armor, orotherwise, that are not currently equipped. This list is called the "inventory.". Each armor piece has a "slot ID" associated with it. Each

1 The Character Interface For the purposes of this project, a Character has the following characteristics: An equipped weapon An equipped set of armor pieces A list of items, weapons, armor, or otherwise, that are not currently equipped. This list is called the "inventory." . Each armor piece has a "slot ID" associated with it. Each slot ID represents a part of the body where armor can be worn, for instance, head, chest, feet, etc. For each slot ID / body part, only one piece of armor can be equipped. For instance, if slot ID 3 represents the feet and iron Boots with slot ID = 3 are equipped, then it would be illegal to equip Leather Shoes that also have slot ID 3. However, it would be legal to simultaneously equip Iron Boots with slot ID = 3 and Leather Jacket with slot ID : 0. More details on armor and slot IDs are provided in the description of the Armor interface. An implementation of the Character interface must, at a minimum, contain the following methods Iterator inventory Returns an iterator that goes through the items in the inventory (that is, items that are not equipped as armor or a weapon). The items should be sorted in descending value-to-weight ratio (see the description of the Item interface for details)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!