Class AbstractConversionTrigger
- java.lang.Object
-
- ca.cgjennings.apps.arkham.component.conversion.AbstractConversionTrigger
-
- All Implemented Interfaces:
ConversionTrigger
- Direct Known Subclasses:
ManualConversionTrigger
,UpgradeConversionTrigger
public abstract class AbstractConversionTrigger extends java.lang.Object implements ConversionTrigger
Provides default implementations for theConversionTrigger
interface.- Since:
- 3.3
- Author:
- Henrik Rostedt
-
-
Constructor Summary
Constructors Constructor Description AbstractConversionTrigger(java.lang.String targetClassName, java.lang.String requiredExtensionName, java.lang.String requiredExtensionId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getRequiredExtensionId()
Returns the UUID of required extension for the new component type.java.lang.String
getRequiredExtensionName()
Returns the name of required extension for the new component type.java.lang.String
getTargetClassName()
Returns the identifier for the new component type to convert theGameComponent
to.java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface ca.cgjennings.apps.arkham.component.conversion.ConversionTrigger
getCause
-
-
-
-
Method Detail
-
getTargetClassName
public java.lang.String getTargetClassName()
Description copied from interface:ConversionTrigger
Returns the identifier for the new component type to convert theGameComponent
to.- Specified by:
getTargetClassName
in interfaceConversionTrigger
- Returns:
- the target component type identifier
-
getRequiredExtensionName
public java.lang.String getRequiredExtensionName()
Description copied from interface:ConversionTrigger
Returns the name of required extension for the new component type. Returnsnull
if the extension is the same as the original component type.- Specified by:
getRequiredExtensionName
in interfaceConversionTrigger
- Returns:
- the name of the required extension
-
getRequiredExtensionId
public java.lang.String getRequiredExtensionId()
Description copied from interface:ConversionTrigger
Returns the UUID of required extension for the new component type. Returnsnull
if the extension is the same as the original component type.- Specified by:
getRequiredExtensionId
in interfaceConversionTrigger
- Returns:
- the UUID of the required extension
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-