liammann / JavaCoursework

Java Group Coursework - 1st Year
0 stars 0 forks source link

drop items #1

Closed JozefStodulski closed 10 years ago

JozefStodulski commented 10 years ago

need command that drops an item out of the inventory and into the current room.

tpunt commented 10 years ago

Has this been resolved yet? If so, then please close it.

Dropping an item from the inventory will mean getting the object from the ArrayList class, and then updating the current location object by pushing this item onto its "objects" field. The just delete the dropped object from the ArrayList class within that person's inventory.

tpunt commented 10 years ago

I've fixed this now.