|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface AbilityComponent
Descriptor class for ability components. These are managed by by the Ability library.
AbilityComponents.addAbilityComponent(String, java.util.Map),
AbilityComponents.componentCheck(com.planet_ink.coffee_mud.MOBS.interfaces.MOB, List, boolean),
AbilityComponents.getAbilityComponentMap()| Nested Class Summary | |
|---|---|
static class |
AbilityComponent.CompConnector
Connector descriptors for connecting component descriptions together |
static class |
AbilityComponent.CompLocation
Where worn locations for determining where a component must be |
static class |
AbilityComponent.CompType
An component type item filter for determining how to interpret the kind of item to compare |
| Method Summary | |
|---|---|
int |
getAmount()
Returns the number of items matching this component which must be present. |
MaskingLibrary.CompiledZMask |
getCompiledMask()
Returns the compiled zapper mask to determine whether a given agent qualifies this item as a component. |
AbilityComponent.CompConnector |
getConnector()
Returns an enum describing how this component "connects" with the following component logically. |
AbilityComponent.CompLocation |
getLocation()
Returns an enum value describing where an item must be to be considered a valid component. |
long |
getLongType()
For resource and material type item component filters, this will return the type comparison object as a long value. |
java.lang.String |
getMaskStr()
Returns the raw zapper mask to determine whether a given agent qualifies this item as a component. |
java.lang.String |
getStringType()
For resource and material type item component filters, this will return the type comparison object as a String value. |
java.lang.String |
getSubType()
Returns the item filter type for determining whether an item is a component. |
AbilityComponent.CompType |
getType()
Returns the item filter type for determining whether an item is a component. |
boolean |
isConsumed()
Gets whether or not this component is consumed upon use |
void |
setAmount(int amount)
Sets the number of items matching this component which must be present. |
void |
setConnector(AbilityComponent.CompConnector connector)
Sets an enum describing how this component "connects" with the following component logically. |
void |
setConsumed(boolean isConsumed)
Sets whether or not this component is consumed upon use |
void |
setLocation(AbilityComponent.CompLocation location)
Sets an enum value describing where an item must be to be considered a valid component. |
void |
setMask(java.lang.String maskStr)
Sets the raw zapper mask to determine whether a given agent qualifies this item as a component. |
void |
setType(AbilityComponent.CompType type,
java.lang.Object typeObj,
java.lang.String subType)
Sets the item filter type for determining whether an item is a component. |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.CMObject |
|---|
copyOf, ID, initializeClass, name, newInstance |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Method Detail |
|---|
AbilityComponent.CompConnector getConnector()
AbilityComponent.CompConnector,
setConnector(CompConnector)void setConnector(AbilityComponent.CompConnector connector)
connector - a connector enumAbilityComponent.CompConnector,
getConnector()AbilityComponent.CompLocation getLocation()
AbilityComponent.CompLocation,
setLocation(CompLocation)void setLocation(AbilityComponent.CompLocation location)
location - where an item must be to be a componentAbilityComponent.CompLocation,
getLocation()boolean isConsumed()
setConsumed(boolean)void setConsumed(boolean isConsumed)
isConsumed - true if consumed, false otherwiseisConsumed()int getAmount()
setAmount(int)void setAmount(int amount)
amount - the number of items matching this component which must be presentgetAmount()AbilityComponent.CompType getType()
AbilityComponent.CompType,
setType(CompType, Object, String)
void setType(AbilityComponent.CompType type,
java.lang.Object typeObj,
java.lang.String subType)
type - the CompType enumtypeObj - either a Integer object or a StringsubType - the typeObj subTypeAbilityComponent.CompType,
getType(),
getSubType(),
getLongType(),
getStringType()java.lang.String getSubType()
AbilityComponent.CompType,
setType(CompType, Object, String)long getLongType()
setType(CompType, Object, String)java.lang.String getStringType()
setType(CompType, Object, String)MaskingLibrary.CompiledZMask getCompiledMask()
getMaskStr(),
setMask(String),
MaskingLibraryjava.lang.String getMaskStr()
getCompiledMask(),
setMask(String),
MaskingLibraryvoid setMask(java.lang.String maskStr)
maskStr - the raw zapper maskgetCompiledMask(),
getMaskStr(),
MaskingLibrary
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||