Class ConsumableItemFactory

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

@Deprecated public class ConsumableItemFactory extends ItemFactory
Deprecated.
Factory to create item entities with predefined components.

Each item entity type should have a creation method that returns a corresponding entity. Predefined entity properties can be loaded from configs stored as json files which are defined in "ItemConfigs".

  • Method Details

    • createItem

      public static Entity createItem(Entity target, String texturePath)
      Deprecated.
    • getConsumeableTimeIncrease

      public static int getConsumeableTimeIncrease()
      Deprecated.