Class ShipUpgradesFactory
java.lang.Object
com.csse3200.game.entities.factories.ShipUpgradesFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EntityCreate the fuel upgrade for the shipstatic EntityCreate the health upgrade for the shipstatic EntitycreateUpgrade(ShipUpgradesConfig config) Based on given ShipUpgradesConfig, create the relevant stat upgrade
-
Constructor Details
-
ShipUpgradesFactory
public ShipUpgradesFactory()
-
-
Method Details
-
createUpgrade
Based on given ShipUpgradesConfig, create the relevant stat upgrade- Parameters:
config-- Returns:
- the relevant stat ShipUpgrade entity
-
createHealthUpgrade
Create the health upgrade for the ship- Returns:
- the Health stat upgrade entity
-
createFuelUpgrade
Create the fuel upgrade for the ship- Returns:
- the fuel stat upgrade entity
-