Class TreasureListTreasureObj
- java.lang.Object
-
- net.sf.gridarta.model.treasurelist.TreasureObj
-
- net.sf.gridarta.model.treasurelist.TreasureListTreasureObj
-
- All Implemented Interfaces:
java.io.Serializable
public class TreasureListTreasureObj extends TreasureObj
ATreasureObjrepresenting a "treasure" entry.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class net.sf.gridarta.model.treasurelist.TreasureObj
UNSET
-
-
Constructor Summary
Constructors Constructor Description TreasureListTreasureObj(@NotNull java.lang.String name, @NotNull TreasureListTreasureObjType listType)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidappendToString(@NotNull java.lang.StringBuilder sb)Appends a description of this treasure object to aStringBuilder.voidcopyListType(@NotNull TreasureObj treasureObj)Copes the list type of a treasureone list.@NotNull TreasureListTreasureObjTypegetListType()Returns the list type.voidsetListType(@NotNull TreasureListTreasureObjType listType)Sets the list type.voidvisit(@NotNull TreasureObjVisitor visitor)Calls theTreasureObjVisitorcallback function appropriate for this instance.-
Methods inherited from class net.sf.gridarta.model.treasurelist.TreasureObj
correctChance, getChance, getMagic, getName, hasLoop, initChance, isRealChild, isTreasureList, setChance, setHasLoop, setMagic, setNrof, toString
-
-
-
-
Constructor Detail
-
TreasureListTreasureObj
public TreasureListTreasureObj(@NotNull @NotNull java.lang.String name, @NotNull @NotNull TreasureListTreasureObjType listType)Creates a new instance.- Parameters:
name- name of this treasure objectlistType- the list type
-
-
Method Detail
-
getListType
@NotNull public @NotNull TreasureListTreasureObjType getListType()
Returns the list type.- Returns:
- the list type
-
setListType
public void setListType(@NotNull @NotNull TreasureListTreasureObjType listType)Sets the list type.- Parameters:
listType- the list type
-
appendToString
protected void appendToString(@NotNull @NotNull java.lang.StringBuilder sb)Description copied from class:TreasureObjAppends a description of this treasure object to aStringBuilder.- Specified by:
appendToStringin classTreasureObj- Parameters:
sb- the string builder
-
visit
public void visit(@NotNull @NotNull TreasureObjVisitor visitor)Description copied from class:TreasureObjCalls theTreasureObjVisitorcallback function appropriate for this instance.- Specified by:
visitin classTreasureObj- Parameters:
visitor- the visitor to call
-
copyListType
public void copyListType(@NotNull @NotNull TreasureObj treasureObj)Description copied from class:TreasureObjCopes the list type of a treasureone list.- Specified by:
copyListTypein classTreasureObj- Parameters:
treasureObj- the node to copy from
-
-