Class BaseEntityConfig
java.lang.Object
com.csse3200.game.entities.configs.BaseEntityConfig
- Direct Known Subclasses:
BaseDefenderConfig
,BaseEnemyConfig
,BaseGeneratorConfig
Defines a basic set of properties stored in entities config files to be loaded by Entity
Factories.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the asset path of the entity.Gets the atlas path of the entity.Gets the description of the entity.int
Gets the health of the entity.getName()
Gets the name of the entity.
-
Constructor Details
-
BaseEntityConfig
public BaseEntityConfig()Creates a new BaseEntityConfig with default values.
-
-
Method Details
-
getName
Gets the name of the entity.- Returns:
-
getDescription
Gets the description of the entity.- Returns:
- the description of the entity
-
getHealth
public int getHealth()Gets the health of the entity.- Returns:
- the health of the entity
-
getAssetPath
Gets the asset path of the entity.- Returns:
- the asset path of the entity
-
getAtlasPath
Gets the atlas path of the entity.- Returns:
- the atlas path of the entity
-