Class CrystalFactory
java.lang.Object
com.deco2800.game.entities.factories.CrystalFactory
Factory to create crystal entity.
Predefined crystal properties are loaded from a config stored as a json file and should have the properties stores in 'CrystalConfig'.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Entity
createCrystal
(String texture, String name) Creates a crystal entity.
-
Method Details
-
createCrystal
Creates a crystal entity.- Returns:
- entity
-