Class DialogAttributeSpell<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
- java.lang.Object
-
- net.sf.gridarta.gui.dialog.gameobjectattributes.DialogAttribute<G,A,R,ArchetypeAttributeSpell>
-
- net.sf.gridarta.gui.dialog.gameobjectattributes.DialogAttributeSpell<G,A,R>
-
public class DialogAttributeSpell<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends DialogAttribute<G,A,R,ArchetypeAttributeSpell>
-
-
Constructor Summary
Constructors Constructor Description DialogAttributeSpell(@NotNull ArchetypeAttributeSpell ref, @NotNull javax.swing.JComboBox<?> input, @NotNull Spells<NumberSpell> numberSpells)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappendSummary(@NotNull javax.swing.text.Document doc, @NotNull javax.swing.text.Style style)Appends a summary line for this attribute to aDocument.@NotNull java.lang.StringgetObjectText(G gameObject, @NotNull Archetype<G,A,R> archetype, @NotNull java.lang.String @NotNull [] newMsg, @NotNull ArchetypeType archetypeType)Returns the attribute text for this attribute.-
Methods inherited from class net.sf.gridarta.gui.dialog.gameobjectattributes.DialogAttribute
addLine, getRef
-
-
-
-
Constructor Detail
-
DialogAttributeSpell
public DialogAttributeSpell(@NotNull @NotNull ArchetypeAttributeSpell ref, @NotNull @NotNull javax.swing.JComboBox<?> input, @NotNull @NotNull Spells<NumberSpell> numberSpells)Creates a new instance.- Parameters:
ref- reference to the attribute datainput- the input ui component for editing the valuenumberSpells- the number spells to display
-
-
Method Detail
-
getObjectText
@NotNull public @NotNull java.lang.String getObjectText(@NotNull G gameObject, @NotNull @NotNull Archetype<G,A,R> archetype, @NotNull @NotNull java.lang.String @NotNull [] newMsg, @NotNull @NotNull ArchetypeType archetypeType)Description copied from class:DialogAttributeReturns the attribute text for this attribute. The returned string is inserted into the owner's game object text.- Specified by:
getObjectTextin classDialogAttribute<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>,ArchetypeAttributeSpell>- Parameters:
gameObject- the ownerarchetype- the owner's new archetype; it might differ fromgameObject's current archetypenewMsg- the new "msg" value for the ownerarchetypeType- the owner's archetype type- Returns:
- the game object text or an empty string
-
appendSummary
public void appendSummary(@NotNull @NotNull javax.swing.text.Document doc, @NotNull @NotNull javax.swing.text.Style style)Description copied from class:DialogAttributeAppends a summary line for this attribute to aDocument.- Specified by:
appendSummaryin classDialogAttribute<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>,ArchetypeAttributeSpell>- Parameters:
doc- the document to append tostyle- the style for the new text
-
-