Class BaseItemConfig
java.lang.Object
com.csse3200.game.entities.configs.BaseItemConfig
Defines a basic set of properties stored in item config files to be loaded by Item Factories.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
DeserializedItemConfig is a wrapper class for the BaseItemConfig class. -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
BaseItemConfig
public BaseItemConfig()Creates a new BaseItemConfig.
-
-
Method Details
-
getName
Gets the name of the item.- Returns:
- the name of the item
-
getDescription
Gets the description of the item.- Returns:
- the description of the item
-
getEventName
Gets the event name of the item.- Returns:
- the event name of the item
-
getAssetPath
Gets the asset path of the item.- Returns:
- the asset path of the item
-
getCost
public int getCost()Gets the cost of the item.- Returns:
- the cost of the item
-