Class ArchetypeAttributeInvSpell
- java.lang.Object
-
- net.sf.gridarta.model.archetypetype.ArchetypeAttribute
-
- net.sf.gridarta.model.archetypetype.AbstractArchetypeAttributeInvSpell
-
- net.sf.gridarta.model.archetypetype.ArchetypeAttributeInvSpell
-
public class ArchetypeAttributeInvSpell extends AbstractArchetypeAttributeInvSpell
AnArchetypeAttributefor selecting a spell encoded as an inventory game object.
-
-
Field Summary
-
Fields inherited from class net.sf.gridarta.model.archetypetype.ArchetypeAttribute
TEXTFIELD_COLUMNS
-
-
Constructor Summary
Constructors Constructor Description ArchetypeAttributeInvSpell(boolean isOptionalSpell, @NotNull java.lang.String archetypeAttributeName, @NotNull java.lang.String attributeName, @NotNull java.lang.String description, int inputLength)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisOptionalSpell()Returns whether the spell game object is optional.voidvisit(@NotNull ArchetypeAttributeVisitor visitor)Calls thevisit()function appropriate for this instance.-
Methods inherited from class net.sf.gridarta.model.archetypetype.ArchetypeAttribute
getArchetypeAttributeName, getAttributeName, getDescription, getInputLength, toString
-
-
-
-
Constructor Detail
-
ArchetypeAttributeInvSpell
public ArchetypeAttributeInvSpell(boolean isOptionalSpell, @NotNull @NotNull java.lang.String archetypeAttributeName, @NotNull @NotNull java.lang.String attributeName, @NotNull @NotNull java.lang.String description, int inputLength)Creates a new instance.- Parameters:
isOptionalSpell- whether the spell game object is optionalarchetypeAttributeName- the archetype attribute nameattributeName- the user interface attribute namedescription- the attribute's descriptioninputLength- the input length in characters for text input fields
-
-
Method Detail
-
visit
public void visit(@NotNull @NotNull ArchetypeAttributeVisitor visitor)Description copied from class:ArchetypeAttributeCalls thevisit()function appropriate for this instance.- Specified by:
visitin classArchetypeAttribute- Parameters:
visitor- the visitor to call
-
isOptionalSpell
public boolean isOptionalSpell()
Returns whether the spell game object is optional.- Returns:
- whether the spell game object is optional
-
-