Package studio.magemonkey.fabled.manager
Class NullAttributeManager
java.lang.Object
studio.magemonkey.fabled.manager.NullAttributeManager
- All Implemented Interfaces:
IAttributeManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addByComponent
(String key, FabledAttribute fabledAttribute) void
addByStat
(String key, FabledAttribute fabledAttribute) forComponent
(EffectComponent component, String key) getAttribute
(String key) Retrieves an attribute templategetKeys()
Retrieves the available attribute keys.Retrieves the available attribute keys including both display names and config keys.Normalizes a config key or name into the config key for a unified identifier to store stats under.
-
Constructor Details
-
NullAttributeManager
public NullAttributeManager()
-
-
Method Details
-
getAttributes
- Specified by:
getAttributes
in interfaceIAttributeManager
-
getAttribute
Description copied from interface:IAttributeManager
Retrieves an attribute template- Specified by:
getAttribute
in interfaceIAttributeManager
- Parameters:
key
- attribute key- Returns:
- template for the attribute
-
forStat
- Specified by:
forStat
in interfaceIAttributeManager
-
forComponent
- Specified by:
forComponent
in interfaceIAttributeManager
-
getKeys
Description copied from interface:IAttributeManager
Retrieves the available attribute keys. This does not include display names for attributes.- Specified by:
getKeys
in interfaceIAttributeManager
- Returns:
- set of available attribute keys
-
getLookupKeys
Description copied from interface:IAttributeManager
Retrieves the available attribute keys including both display names and config keys.- Specified by:
getLookupKeys
in interfaceIAttributeManager
- Returns:
- display name and config keys for attributes
-
normalize
Description copied from interface:IAttributeManager
Normalizes a config key or name into the config key for a unified identifier to store stats under.- Specified by:
normalize
in interfaceIAttributeManager
- Parameters:
key
- key to normalize- Returns:
- config key
-
addByComponent
- Specified by:
addByComponent
in interfaceIAttributeManager
-
addByStat
- Specified by:
addByStat
in interfaceIAttributeManager
-