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 TypeMethodDescriptionvoidaddByComponent(String key, FabledAttribute fabledAttribute) voidaddByStat(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:
getAttributesin interfaceIAttributeManager
-
getAttribute
Description copied from interface:IAttributeManagerRetrieves an attribute template- Specified by:
getAttributein interfaceIAttributeManager- Parameters:
key- attribute key- Returns:
- template for the attribute
-
forStat
- Specified by:
forStatin interfaceIAttributeManager
-
forComponent
- Specified by:
forComponentin interfaceIAttributeManager
-
getKeys
Description copied from interface:IAttributeManagerRetrieves the available attribute keys. This does not include display names for attributes.- Specified by:
getKeysin interfaceIAttributeManager- Returns:
- set of available attribute keys
-
getLookupKeys
Description copied from interface:IAttributeManagerRetrieves the available attribute keys including both display names and config keys.- Specified by:
getLookupKeysin interfaceIAttributeManager- Returns:
- display name and config keys for attributes
-
normalize
Description copied from interface:IAttributeManagerNormalizes a config key or name into the config key for a unified identifier to store stats under.- Specified by:
normalizein interfaceIAttributeManager- Parameters:
key- key to normalize- Returns:
- config key
-
addByComponent
- Specified by:
addByComponentin interfaceIAttributeManager
-
addByStat
- Specified by:
addByStatin interfaceIAttributeManager
-