Class CompanionConfig
java.lang.Object
com.csse3200.game.entities.configs.BaseEntityConfig
com.csse3200.game.entities.configs.HealthEntityConfig
com.csse3200.game.entities.configs.CompanionConfig
Defines the properties stored in Companion config files to be loaded by the Companion Factory.
Extends
BaseEntityConfig
to inherit common entity configuration properties.-
Field Summary
FieldsModifier and TypeFieldDescriptionint
int
int
boolean
int
Fields inherited from class com.csse3200.game.entities.configs.HealthEntityConfig
maxHealth
Fields inherited from class com.csse3200.game.entities.configs.BaseEntityConfig
position, requiredTextures, scale, spritePath
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.csse3200.game.entities.configs.BaseEntityConfig
getTextures
-
Field Details
-
speed
public int speed -
health
public int health -
baseAttack
public int baseAttack -
attackMultiplier
public int attackMultiplier -
isImmune
public boolean isImmune
-
-
Constructor Details
-
CompanionConfig
public CompanionConfig()
-
-
Method Details
-
equals
- Overrides:
equals
in classHealthEntityConfig
-
hashCode
public int hashCode()- Overrides:
hashCode
in classHealthEntityConfig
-