public class YesTreasureObj extends TreasureObj
TreasureObj
representing a "yes" entry.UNSET
Constructor and Description |
---|
YesTreasureObj(int chance)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected void |
appendToString(@NotNull java.lang.StringBuilder sb)
Appends a description of this treasure object to a
StringBuilder . |
void |
copyListType(@NotNull TreasureObj treasureObj)
Copes the list type of a treasureone list.
|
void |
visit(@NotNull 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 YesTreasureObj(int chance)
chance
- the chanceprotected void appendToString(@NotNull @NotNull java.lang.StringBuilder sb)
TreasureObj
StringBuilder
.appendToString
in class TreasureObj
sb
- the string builderpublic void visit(@NotNull @NotNull TreasureObjVisitor visitor)
TreasureObj
TreasureObjVisitor
callback function appropriate for
this instance.visit
in class TreasureObj
visitor
- the visitor to callpublic void copyListType(@NotNull @NotNull TreasureObj treasureObj)
TreasureObj
copyListType
in class TreasureObj
treasureObj
- the node to copy from