|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrle.core.vm.PlugInBase
rle.simple.SimpleWorld
public class SimpleWorld
Class that represents the highest level data of the player environment. A single instance of this class will typically exist.
| Field Summary | |
|---|---|
protected java.util.HashMap<java.lang.String,java.lang.Object> |
attributes
|
| Fields inherited from class rle.core.vm.PlugInBase |
|---|
config, context, parameters |
| Constructor Summary | |
|---|---|
SimpleWorld()
|
|
| Method Summary | |
|---|---|
java.util.Set<java.lang.String> |
attributeKeySet()
The set of keys for which attributes have been mapped. |
Board |
createBoard(java.lang.String id,
CreationContext cc)
Create a new board. |
java.lang.String |
createBoardId()
Generate an unused board id. |
Board |
findBoard(java.lang.String id)
Retrieve the board of the given id. |
java.lang.Object |
getAttribute(java.lang.String key)
Retrieve the value mapped to key, or null if no such mapping exists. |
void |
initialize()
Initialize this world for a new game. |
void |
putAttribute(java.lang.String key,
java.lang.Object value)
Map a value to an attribute. |
void |
removeAttribute(java.lang.String key)
Remove a mapping. |
| Methods inherited from class rle.core.vm.PlugInBase |
|---|
config, getContext, getParameters, paramMap, setConfig, setParameters |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface rle.core.vm.PlugIn |
|---|
config, getContext, paramMap, setConfig, setParameters |
| Field Detail |
|---|
protected java.util.HashMap<java.lang.String,java.lang.Object> attributes
| Constructor Detail |
|---|
public SimpleWorld()
| Method Detail |
|---|
public Board findBoard(java.lang.String id)
findBoard in interface World
public Board createBoard(java.lang.String id,
CreationContext cc)
board-path - Variant Mgr path to board plug-in builder-path - path to BoardBuilder plug-in
createBoard in interface Worldpublic java.lang.String createBoardId()
createBoardId in interface Worldpublic void initialize()
initialize in interface Worldpublic java.util.Set<java.lang.String> attributeKeySet()
attributeKeySet in interface Worldpublic java.lang.Object getAttribute(java.lang.String key)
getAttribute in interface World
public void putAttribute(java.lang.String key,
java.lang.Object value)
putAttribute in interface Worldpublic void removeAttribute(java.lang.String key)
removeAttribute in interface World
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||