public class ArchTreasureObj extends TreasureObj
TreasureObj
representing an "arch" entry.UNSET
Constructor and Description |
---|
ArchTreasureObj(java.lang.String name)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected void |
appendToString(java.lang.StringBuilder sb)
Appends a description of this treasure object to a
StringBuilder . |
void |
copyListType(TreasureObj treasureObj)
Copes the list type of a treasureone list.
|
void |
visit(TreasureObjVisitor visitor)
Calls the
TreasureObjVisitor callback function appropriate for
this instance. |
correctChance, getChance, getMagic, getName, hasLoop, initChance, isRealChild, isTreasureList, setChance, setHasLoop, setMagic, setNrof, toString
public ArchTreasureObj(@NotNull java.lang.String name)
name
- name of this treasure objectprotected void appendToString(@NotNull java.lang.StringBuilder sb)
StringBuilder
.appendToString
in class TreasureObj
sb
- the string builderpublic void visit(@NotNull TreasureObjVisitor visitor)
TreasureObjVisitor
callback function appropriate for
this instance.visit
in class TreasureObj
visitor
- the visitor to callpublic void copyListType(@NotNull TreasureObj treasureObj)
copyListType
in class TreasureObj
treasureObj
- the node to copy from