Class ItemFactory
java.lang.Object
com.deco2800.game.entities.factories.ItemFactory
public class ItemFactory
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description ItemFactory()
-
Method Summary
Modifier and Type Method Description static Entity
createApple(Entity target)
creates an entity for a applestatic Entity
createBandage(Entity target)
creates an entity for a bandagestatic Entity
createFirstAid(Entity target, InventorySystem inv)
creates an entity for a firstAidKitstatic Entity
createGold(Entity target)
creates an entity for a goldstatic Entity
createMagicPotion(Entity target)
creates an entity for a magic potionstatic Entity
createSyringe(Entity target)
creates an entity for a syringestatic Entity
createWater(Entity target)
creates an entity for a water
-
Constructor Details
-
ItemFactory
public ItemFactory()
-
-
Method Details
-
createFirstAid
creates an entity for a firstAidKit- Parameters:
target
- The entity which is passed on to the first Aid component- Returns:
- entity
-
createApple
creates an entity for a apple- Parameters:
target
- The entity which is passed on to the first Aid component- Returns:
- entity
-
createWater
creates an entity for a water- Parameters:
target
- The entity which is passed on to the first Aid component- Returns:
- entity
-
createMagicPotion
creates an entity for a magic potion- Parameters:
target
- The entity which is passed on to the first Aid component- Returns:
- entity
-
createSyringe
creates an entity for a syringe- Parameters:
target
- The entity which is passed on to the first Aid component- Returns:
- entity
-
createBandage
creates an entity for a bandage- Parameters:
target
- The entity which is passed on to the first Aid component- Returns:
- entity
-
createGold
creates an entity for a gold- Parameters:
target
- The entity which is passed on to the gold component- Returns:
- entity
-