![]() |
Rabbit Escape
2017-01-14_18:33:47_+0000__(tag:_v0.10.1)
|
Public Member Functions | |
SandboxGame (World world) | |
Token.Type | getSelectedType () |
void | setSelectedType (Token.Type selectedType) |
World | getWorld () |
Private Member Functions | |
List< Thing > | makeClonedThings (List< Thing > things) |
List< Rabbit > | makeClonedRabbits (List< Rabbit > rabbits) |
Rabbit | cloneRabbit (Rabbit rabbit) |
Private Attributes | |
Token.Type | selectedType = null |
final World | world |
A completely sandboxed game that can be edited and have solutions run against without affecting the real game.
rabbitescape.engine.solution.SandboxGame.SandboxGame | ( | World | world | ) |
Create a sandbox game based on a given world. This allows playing with the sandbox game without affecting the world in any way.
world | The world to copy. |
Clone a single rabbit.
rabbit | The rabbit to be cloned. |
Token.Type rabbitescape.engine.solution.SandboxGame.getSelectedType | ( | ) |
Get the currently selected token type.
World rabbitescape.engine.solution.SandboxGame.getWorld | ( | ) |
Get the current world.
|
private |
Make a clone of a list of rabbits.
rabbits | The list of rabbits to clone. |
|
private |
Create a clone of the list of a given list of things.
things | The things to clone. |
void rabbitescape.engine.solution.SandboxGame.setSelectedType | ( | Token.Type | selectedType | ) |
Select a token type to place next.
selectedType | The type to select. |
|
private |
The token type that is currently 'selected' by whatever is interacting with the sandbox.
|
private |
The world object that is contained in the game.