Class FolderTreasureObj
- java.lang.Object
-
- net.sf.gridarta.model.treasurelist.TreasureObj
-
- net.sf.gridarta.model.treasurelist.FolderTreasureObj
-
- All Implemented Interfaces:
java.io.Serializable
public class FolderTreasureObj extends TreasureObj
ATreasureObjrepresenting a folder.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class net.sf.gridarta.model.treasurelist.TreasureObj
UNSET
-
-
Constructor Summary
Constructors Constructor Description FolderTreasureObj(@NotNull java.lang.String name)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.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
-
-
-
-
Method Detail
-
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
-
-