Class MaterialFactory
java.lang.Object
com.deco2800.game.entities.factories.MaterialFactory
Factory style class used for creating materials of each type with certain components and base images.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Entity
Creates a base material with the physics, hitbox and possibility to pick up.static Entity
Creates a gold material with the image and entity types set.static Entity
Creates a Iron material with the image and entity types set.static Entity
Creates a plastic material with the image and entity types set.static Entity
Creates a platinum material with the image and entity types set.static Entity
Creates a poop material with the image and entity types set.static Entity
Creates a rubber material with the image and entity types set.static Entity
Creates a silver material with the image and entity types set.static Entity
Creates a steel material with the image and entity types set.static Entity
Creates a ToiletPaper material with the image and entity types set.static Entity
Creates a wood material with the image and entity types set.
-
Method Details
-
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
Creates a gold material with the image and entity types set.- Returns:
- the gold material used for crafting.
-
createPoop
Creates a poop material with the image and entity types set.- Returns:
- the poop material used for crafting.
-
createIron
Creates a Iron material with the image and entity types set.- Returns:
- the Iron material used for crafting.
-
createToiletPaper
Creates a ToiletPaper material with the image and entity types set.- Returns:
- the ToiletPaper material used for crafting.
-
createSteel
Creates a steel material with the image and entity types set.- Returns:
- the steel material used for crafting.
-
createWood
Creates a wood material with the image and entity types set.- Returns:
- the wood material used for crafting.
-
createPlastic
Creates a plastic material with the image and entity types set.- Returns:
- the plastic material used for crafting.
-
createRubber
Creates a rubber material with the image and entity types set.- Returns:
- the rubber material used for crafting.
-
createPlatinum
Creates a platinum material with the image and entity types set.- Returns:
- the platinum material used for crafting.
-
createSilver
Creates a silver material with the image and entity types set.- Returns:
- the silver material used for crafting.
-