Class BaseDefenderConfig
java.lang.Object
com.csse3200.game.entities.configs.BaseEntityConfig
com.csse3200.game.entities.configs.BaseDefenderConfig
Defines a set of properties for all defenders.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Gets the attack value for this entity.int
Gets the attack value for this entity.int
Gets the state value for this entity.int
getCost()
Gets the cost of the defender.int
Gets the attack speed value for this entity.int
getRange()
Gets the range value for this entity.int
Gets the range type of the defender.Methods inherited from class com.csse3200.game.entities.configs.BaseEntityConfig
getAssetPath, getAtlasPath, getDescription, getHealth, getName
-
Constructor Details
-
BaseDefenderConfig
public BaseDefenderConfig()Creates a new BaseDefenceConfig with default values.
-
-
Method Details
-
getCost
public int getCost()Gets the cost of the defender.- Returns:
- the cost of the defender
-
getRangeType
public int getRangeType()Gets the range type of the defender.- Returns:
- the range type value
-
getRange
public int getRange()Gets the range value for this entity.- Returns:
- the range value
-
getAttackState
public int getAttackState()Gets the state value for this entity.- Returns:
- the state value
-
getAttackSpeed
public int getAttackSpeed()Gets the attack value for this entity.- Returns:
- the attack value
-
getCritChance
public int getCritChance()Gets the attack speed value for this entity.- Returns:
- the attack speed value
-
getAttack
public int getAttack()Gets the attack value for this entity.- Returns:
- the attack value
-