Class BaseGeneratorConfig
java.lang.Object
com.csse3200.game.entities.configs.BaseEntityConfig
com.csse3200.game.entities.configs.BaseGeneratorConfig
Defines a set of properties for all generators.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new BaseGeneratorConfig with default values. -
Method Summary
Modifier and TypeMethodDescriptionint
getCost()
Gets the cost of the generator.int
Gets the interval of the generator.int
Gets the scrap value of the generator.Methods inherited from class com.csse3200.game.entities.configs.BaseEntityConfig
getAssetPath, getAtlasPath, getDescription, getHealth, getName
-
Constructor Details
-
BaseGeneratorConfig
public BaseGeneratorConfig()Creates a new BaseGeneratorConfig with default values.
-
-
Method Details
-
getInterval
public int getInterval()Gets the interval of the generator.- Returns:
- the interval of the generator
-
getScrapValue
public int getScrapValue()Gets the scrap value of the generator.- Returns:
- the scrap value of the generator
-
getCost
public int getCost()Gets the cost of the generator.- Returns:
- the cost of the generator
-