Class MaterialFactory

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

public class MaterialFactory extends Object
Factory style class used for creating materials of each type with certain components and base images.
  • Method Details

    • createBaseMaterial

      public static Entity createBaseMaterial()
      Creates a base material with the physics, hitbox and possibility to pick up. Used as a base for other materials.
      Returns:
      the base material
    • createGold

      public static Entity createGold()
      Creates a gold material with the image and entity types set.
      Returns:
      the gold material used for crafting.
    • createPoop

      public static Entity createPoop()
      Creates a poop material with the image and entity types set.
      Returns:
      the poop material used for crafting.
    • createIron

      public static Entity createIron()
      Creates a Iron material with the image and entity types set.
      Returns:
      the Iron material used for crafting.
    • createToiletPaper

      public static Entity createToiletPaper()
      Creates a ToiletPaper material with the image and entity types set.
      Returns:
      the ToiletPaper material used for crafting.
    • createSteel

      public static Entity createSteel()
      Creates a steel material with the image and entity types set.
      Returns:
      the steel material used for crafting.
    • createWood

      public static Entity createWood()
      Creates a wood material with the image and entity types set.
      Returns:
      the wood material used for crafting.
    • createPlastic

      public static Entity createPlastic()
      Creates a plastic material with the image and entity types set.
      Returns:
      the plastic material used for crafting.
    • createRubber

      public static Entity createRubber()
      Creates a rubber material with the image and entity types set.
      Returns:
      the rubber material used for crafting.
    • createPlatinum

      public static Entity createPlatinum()
      Creates a platinum material with the image and entity types set.
      Returns:
      the platinum material used for crafting.
    • createSilver

      public static Entity createSilver()
      Creates a silver material with the image and entity types set.
      Returns:
      the silver material used for crafting.