Im making a game,an rpg (yeah again another dude trying to make one of those), and I've managed to make most of it except the inventory and how it behaves with the rest of the world, right now I want to move items between lists in a logic way, for example I kill a monster, the monster drops a tomato, Tomato() will be created inside the ArrayList worldInventory, and drawn at x,y, if the player walks by the tomato, that tomato should be moved into ArrayList Inventory, if the player desires to equip the tomato, the tomato should be moved into the ArrayList equipped.
So to make things more understandable I have 3 lists:
ArrayList<Item> worldInventory
ArrayList<Item> Inventory
ArrayList<Item> equipped.
I want to move copies of Tomato() between them, and If a Tomato() has its values changed inside a list and it's moved I want that Tomato() to retain its values.
;D I'll give a big sized internet choco-cookie for whoever helps me out, much appreciated. Thanks n.n