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, toStringpublic YesTreasureObj(int chance)
chance - the chanceprotected void appendToString(@NotNull
@NotNull java.lang.StringBuilder sb)
TreasureObjStringBuilder.appendToString in class TreasureObjsb - the string builderpublic void visit(@NotNull
@NotNull TreasureObjVisitor visitor)
TreasureObjTreasureObjVisitor callback function appropriate for
this instance.visit in class TreasureObjvisitor - the visitor to callpublic void copyListType(@NotNull
@NotNull TreasureObj treasureObj)
TreasureObjcopyListType in class TreasureObjtreasureObj - the node to copy from