|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrle.core.board.CreationContextBase
public class CreationContextBase
A convenient base class for CreationContext implementors.
Field Summary | |
---|---|
protected java.util.HashMap<java.lang.String,java.lang.Object> |
hints
|
protected int |
level
|
Constructor Summary | |
---|---|
CreationContextBase()
|
Method Summary | |
---|---|
java.lang.Object |
getHint(java.lang.String key)
The value of a particular hint, or null if no such hint is defined. |
java.util.Set<java.lang.String> |
hintKeySet()
The keys of any creation "hints". |
int |
level()
The level for purposes of monster/item generation. |
void |
putHint(java.lang.String key,
java.lang.Object value)
Add a hint. |
void |
setLevel(int level)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.HashMap<java.lang.String,java.lang.Object> hints
protected int level
Constructor Detail |
---|
public CreationContextBase()
Method Detail |
---|
public int level()
level
in interface CreationContext
public void setLevel(int level)
public java.util.Set<java.lang.String> hintKeySet()
hintKeySet
in interface CreationContext
public java.lang.Object getHint(java.lang.String key)
getHint
in interface CreationContext
public void putHint(java.lang.String key, java.lang.Object value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |