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 EntitycreateApple(Entity target)creates an entity for a applestatic EntitycreateBandage(Entity target)creates an entity for a bandagestatic EntitycreateFirstAid(Entity target, InventorySystem inv)creates an entity for a firstAidKitstatic EntitycreateGold(Entity target)creates an entity for a goldstatic EntitycreateMagicPotion(Entity target)creates an entity for a magic potionstatic EntitycreateSyringe(Entity target)creates an entity for a syringestatic EntitycreateWater(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
-