Class BaseEnemyConfig
java.lang.Object
com.csse3200.game.entities.configs.BaseEntityConfig
com.csse3200.game.entities.configs.BaseEnemyConfig
An abstract class representing the stats defining an enemy, including combat stats, movement
speed,
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
DeserializedEnemyConfig is a wrapper class for the BaseEnemyConfig class. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Gets the attack value for this entity.int
Gets the coins rewarded value for this entity.int
Gets the invulnerability ms value for this entity.int
Gets the max teleports value for this entity.float
Gets the movement speed value for this entity.float
getScale()
Gets the scale value for this entity.float
Gets the teleport chance value for this entity.float
Gets the teleport cooldown seconds value for this entity.boolean
Checks if this entity is a teleport robot.Methods inherited from class com.csse3200.game.entities.configs.BaseEntityConfig
getAssetPath, getAtlasPath, getDescription, getHealth, getName
-
Constructor Details
-
BaseEnemyConfig
public BaseEnemyConfig()Creates a new BaseEntityConfig with default values.
-
-
Method Details
-
getAttack
public int getAttack()Gets the attack value for this entity.- Returns:
- the attack value
-
getMovementSpeed
public float getMovementSpeed()Gets the movement speed value for this entity.- Returns:
- the movement speed value
-
isTeleportRobot
public boolean isTeleportRobot()Checks if this entity is a teleport robot.- Returns:
- true if this entity is a teleport robot, false otherwise
-
getTeleportCooldownSeconds
public float getTeleportCooldownSeconds()Gets the teleport cooldown seconds value for this entity.- Returns:
- the teleport cooldown seconds value
-
getTeleportChance
public float getTeleportChance()Gets the teleport chance value for this entity.- Returns:
- the teleport chance value
-
getMaxTeleports
public int getMaxTeleports()Gets the max teleports value for this entity.- Returns:
- the max teleports value
-
getInvulnerabilityMs
public int getInvulnerabilityMs()Gets the invulnerability ms value for this entity.- Returns:
- the invulnerability ms value
-
getScale
public float getScale()Gets the scale value for this entity.- Returns:
- the scale value
-
getCoinsRewarded
public int getCoinsRewarded()Gets the coins rewarded value for this entity.- Returns:
- the coins rewarded value
-