Class CrystalFactory

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

public class CrystalFactory extends Object
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 Details

    • createCrystal

      public static Entity createCrystal(String texture, String name)
      Creates a crystal entity.
      Returns:
      entity