I´m trying to create a little game in my university class. One of the classes I have called "Hero" and I get a message when I´m trying to complice. "Cannot find symbol - method getWeight". But I know that I have a method called getWeight in my Item Class. What is the problem?
(In this method I want the Hero to pick up the Item if it is not to heavy).
public boolean pickUpItem (String description, Item item)
if (mItems.getWeight() < (mStrength.getStrength() * 1.5))
System.out.printl ("You can´t pick up the item, it´s too heavy for you!");