|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface World
Class that represents the highest level data of the player environment. A single instance of this class will typically exist.
| 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 interface rle.core.vm.PlugIn |
|---|
config, getContext, paramMap, setConfig, setParameters |
| Method Detail |
|---|
Board findBoard(java.lang.String id)
Board createBoard(java.lang.String id,
CreationContext cc)
java.lang.String createBoardId()
void initialize()
java.util.Set<java.lang.String> attributeKeySet()
java.lang.Object getAttribute(java.lang.String key)
void putAttribute(java.lang.String key,
java.lang.Object value)
void removeAttribute(java.lang.String key)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||