Meat - UQcsse3200/2024-studio-2 GitHub Wiki
Usage
Meat is a subclass of the Food class. This item provides values for the quantity, limit, texture, name, and item code of this specific item. The effects of meat are higher than those smaller foods such as Carrot and Apple however still less than (Candy)[Candy] effects
Expected Behaviour
The item should be able to increase the player's hunger stat by 7 and should be deleted from inventory after 3 uses
Creating item
public Meat(Texture foodTexture) {
super("Carrot", 8, 10, 3, new FeedEffect(7));
this.meatTexture = new Texture("foodTexture/meat.png");
}
Image of Meat
downloaded from https://en.ac-illust.com/clip-art/24140526/pixel-art-cartoon-meat-half-eaten and edited by @PHONGNGUYEN1