|
static World | createWorld (String...lines) throws WrongLineLength, UnknownCharacter |
|
static World | createWorld (WorldStatsListener statsListener, String...lines) throws WrongLineLength, UnknownCharacter |
|
static World | createWorldWithName (String nameIfNoneSupplied, WorldStatsListener statsListener, String...lines) |
|
static World | createEmptyWorld (int width, int height) |
|
static String[] | renderWorld (World world, boolean showChanges, boolean coordinates) |
|
static String[] | renderCompleteWorld (World world, boolean meta) |
|
static String[] | renderCompleteWorld (World world, boolean meta, boolean runtimeMeta) |
|
static String | renderWorldForTest (World world) |
|
static String[] | renderChangeDescription (World world, ChangeDescription desc, boolean coordinates) |
|
|
static List< String > | abilitiesList () |
|
static World | createWorldFromLineProcessor (String nameIfNoneSupplied, WorldStatsListener statsListener, List< Block > blocks, List< Rabbit > rabbits, List< Thing > things, Map< Position, Integer > waterAmounts, Map< Token.Type, Integer > abilities, LineProcessor processor, int num_rabs) |
|
static void | addMeta (List< String > lines, String key, String value, Comment[] comments) |
|
static String[] | metaLines (World world, boolean runtimeMeta) |
|
static void | addMetaKeyArrayLines (List< String > ret, String name, String[] values, World w) |
|
static void | abilityMetaLines (World world, List< String > ret) |
|
static String | renderIntArray (int[] value) |
|
static String[] | charsToStrings (Chars chars, boolean coordinates) |
|
static String[] | charsToComplete (Chars chars, Comment[] comments) |
|
static void | addColumnCoords (String[] ret, int width, int height) |
|
static String | formatRowNum (int lineNum) |
|
static List<String> rabbitescape.engine.textworld.TextWorldManip.abilitiesList |
( |
| ) |
|
|
staticprivate |
static void rabbitescape.engine.textworld.TextWorldManip.abilityMetaLines |
( |
World |
world, |
|
|
List< String > |
ret |
|
) |
| |
|
staticprivate |
static void rabbitescape.engine.textworld.TextWorldManip.addColumnCoords |
( |
String[] |
ret, |
|
|
int |
width, |
|
|
int |
height |
|
) |
| |
|
staticprivate |
static void rabbitescape.engine.textworld.TextWorldManip.addMeta |
( |
List< String > |
lines, |
|
|
String |
key, |
|
|
String |
value, |
|
|
Comment[] |
comments |
|
) |
| |
|
staticprivate |
Adds a line of metadata to the supplied List. If there are any comments for this key comment lines will be added first.
- Parameters
-
value | may be null, in which case only comments will be considered. |
static void rabbitescape.engine.textworld.TextWorldManip.addMetaKeyArrayLines |
( |
List< String > |
ret, |
|
|
String |
name, |
|
|
String[] |
values, |
|
|
World |
w |
|
) |
| |
|
staticprivate |
static String [] rabbitescape.engine.textworld.TextWorldManip.charsToComplete |
( |
Chars |
chars, |
|
|
Comment[] |
comments |
|
) |
| |
|
staticprivate |
static String [] rabbitescape.engine.textworld.TextWorldManip.charsToStrings |
( |
Chars |
chars, |
|
|
boolean |
coordinates |
|
) |
| |
|
staticprivate |
static World rabbitescape.engine.textworld.TextWorldManip.createEmptyWorld |
( |
int |
width, |
|
|
int |
height |
|
) |
| |
|
static |
static World rabbitescape.engine.textworld.TextWorldManip.createWorldFromLineProcessor |
( |
String |
nameIfNoneSupplied, |
|
|
WorldStatsListener |
statsListener, |
|
|
List< Block > |
blocks, |
|
|
List< Rabbit > |
rabbits, |
|
|
List< Thing > |
things, |
|
|
Map< Position, Integer > |
waterAmounts, |
|
|
Map< Token.Type, Integer > |
abilities, |
|
|
LineProcessor |
processor, |
|
|
int |
num_rabs |
|
) |
| |
|
staticprivate |
static World rabbitescape.engine.textworld.TextWorldManip.createWorldWithName |
( |
String |
nameIfNoneSupplied, |
|
|
WorldStatsListener |
statsListener, |
|
|
String... |
lines |
|
) |
| |
|
static |
- Parameters
-
encode | if true, create a world with obfuscated hints and solutions |
static String rabbitescape.engine.textworld.TextWorldManip.formatRowNum |
( |
int |
lineNum | ) |
|
|
staticprivate |
static String [] rabbitescape.engine.textworld.TextWorldManip.metaLines |
( |
World |
world, |
|
|
boolean |
runtimeMeta |
|
) |
| |
|
staticprivate |
static String [] rabbitescape.engine.textworld.TextWorldManip.renderChangeDescription |
( |
World |
world, |
|
|
ChangeDescription |
desc, |
|
|
boolean |
coordinates |
|
) |
| |
|
static |
static String [] rabbitescape.engine.textworld.TextWorldManip.renderCompleteWorld |
( |
World |
world, |
|
|
boolean |
meta |
|
) |
| |
|
static |
static String [] rabbitescape.engine.textworld.TextWorldManip.renderCompleteWorld |
( |
World |
world, |
|
|
boolean |
meta, |
|
|
boolean |
runtimeMeta |
|
) |
| |
|
static |
- Parameters
-
world | The World to render. |
meta | If true the metadata is included. |
runtimeMeta | If true the runtime metadata is included. |
- Returns
- The lines as an array.
static String rabbitescape.engine.textworld.TextWorldManip.renderIntArray |
( |
int[] |
value | ) |
|
|
staticprivate |
static String [] rabbitescape.engine.textworld.TextWorldManip.renderWorld |
( |
World |
world, |
|
|
boolean |
showChanges, |
|
|
boolean |
coordinates |
|
) |
| |
|
static |
static String rabbitescape.engine.textworld.TextWorldManip.renderWorldForTest |
( |
World |
world | ) |
|
|
static |
final List<String> rabbitescape.engine.textworld.TextWorldManip.ABILITIES = abilitiesList() |
|
static |
final String rabbitescape.engine.textworld.TextWorldManip.author_name = "author_name" |
|
staticprivate |
final String rabbitescape.engine.textworld.TextWorldManip.author_url = "author_url" |
|
staticprivate |
final String rabbitescape.engine.textworld.TextWorldManip.description = "description" |
|
staticprivate |
Function<String, String> rabbitescape.engine.textworld.TextWorldManip.escapeBackslashes |
|
staticprivate |
Initial value:=
new Function<String, String>()
{
@Override
public String apply( String t )
{
return t.replaceAll( "\\\\", "\\\\\\\\" );
}
}
final String rabbitescape.engine.textworld.TextWorldManip.hint = "hint" |
|
static |
final String rabbitescape.engine.textworld.TextWorldManip.intro = "intro" |
|
staticprivate |
final List<String> rabbitescape.engine.textworld.TextWorldManip.META_BOOLS |
|
static |
final List<String> rabbitescape.engine.textworld.TextWorldManip.META_INT_ARRAYS |
|
static |
final List<String> rabbitescape.engine.textworld.TextWorldManip.META_INTS |
|
static |
final List<String> rabbitescape.engine.textworld.TextWorldManip.META_STRING_ARRAYS_BY_KEY |
|
static |
final List<String> rabbitescape.engine.textworld.TextWorldManip.META_STRINGS |
|
static |
final String rabbitescape.engine.textworld.TextWorldManip.music = "music" |
|
staticprivate |
final String rabbitescape.engine.textworld.TextWorldManip.name = "name" |
|
static |
final String rabbitescape.engine.textworld.TextWorldManip.num_killed = "num_killed" |
|
staticprivate |
final String rabbitescape.engine.textworld.TextWorldManip.num_rabbits = "num_rabbits" |
|
staticprivate |
final String rabbitescape.engine.textworld.TextWorldManip.num_saved = "num_saved" |
|
staticprivate |
final String rabbitescape.engine.textworld.TextWorldManip.num_to_save = "num_to_save" |
|
staticprivate |
final String rabbitescape.engine.textworld.TextWorldManip.num_waiting = "num_waiting" |
|
staticprivate |
final String rabbitescape.engine.textworld.TextWorldManip.paused = "paused" |
|
staticprivate |
final String rabbitescape.engine.textworld.TextWorldManip.rabbit_delay = "rabbit_delay" |
|
staticprivate |
final String rabbitescape.engine.textworld.TextWorldManip.rabbit_index_count = "rabbit_index_count" |
|
staticprivate |
final String rabbitescape.engine.textworld.TextWorldManip.ready_to_explode_all = "ready_to_explode_all" |
|
staticprivate |
final String rabbitescape.engine.textworld.TextWorldManip.solution = "solution" |
|
static |
final String rabbitescape.engine.textworld.TextWorldManip.void_marker_style = "void_marker_style" |
|
static |
final String rabbitescape.engine.textworld.TextWorldManip.water_definition = "n" |
|
static |
The documentation for this class was generated from the following file: