Uses of Class
com.bdtripp.hauntedhouse.model.Item
Packages that use Item
-
Uses of Item in com.bdtripp.hauntedhouse.model
Methods in com.bdtripp.hauntedhouse.model that return ItemModifier and TypeMethodDescriptionReturns an item in the inventoryFinds an item with a given nameCharacter.getItemForReward()Returns the item as a rewardCharacter.getItemSought()Returns the item that the character is seekingWorld.getKey()Returns the key used to unlock a specific exit in the world.Inventory.removeItem(Item item) Removes an item from the inventoryRoom.removeItem(Item item) Removes an item from the roomMethods in com.bdtripp.hauntedhouse.model with parameters of type ItemModifier and TypeMethodDescriptionvoidAdds an item to the inventoryvoidAdds an item to the roombooleanChecks if a particular item is in the inventoryMakes a player ingest an itemInventory.removeItem(Item item) Removes an item from the inventoryRoom.removeItem(Item item) Removes an item from the roomConstructors in com.bdtripp.hauntedhouse.model with parameters of type ItemModifierConstructorDescriptionCharacter(String name, String initialDialog, String acceptanceDialog, Item itemSought, Item itemForReward) Create a character with a name, dialog, item they are seeking, and item they give as a reward.Create the game world that has a player, rooms, a starting room, key etc.