Class ItemFactory

java.lang.Object
com.deco2800.game.entities.factories.ItemFactory

public class ItemFactory
extends java.lang.Object
  • Constructor Details

  • Method Details

    • createFirstAid

      public static Entity createFirstAid​(Entity target, InventorySystem inv)
      creates an entity for a firstAidKit
      Parameters:
      target - The entity which is passed on to the first Aid component
      Returns:
      entity
    • createApple

      public static Entity createApple​(Entity target)
      creates an entity for a apple
      Parameters:
      target - The entity which is passed on to the first Aid component
      Returns:
      entity
    • createWater

      public static Entity createWater​(Entity target)
      creates an entity for a water
      Parameters:
      target - The entity which is passed on to the first Aid component
      Returns:
      entity
    • createMagicPotion

      public static Entity createMagicPotion​(Entity target)
      creates an entity for a magic potion
      Parameters:
      target - The entity which is passed on to the first Aid component
      Returns:
      entity
    • createSyringe

      public static Entity createSyringe​(Entity target)
      creates an entity for a syringe
      Parameters:
      target - The entity which is passed on to the first Aid component
      Returns:
      entity
    • createBandage

      public static Entity createBandage​(Entity target)
      creates an entity for a bandage
      Parameters:
      target - The entity which is passed on to the first Aid component
      Returns:
      entity
    • createGold

      public static Entity createGold​(Entity target)
      creates an entity for a gold
      Parameters:
      target - The entity which is passed on to the gold component
      Returns:
      entity