20 package net.sf.gridarta.var.crossfire.model.io;
22 import java.io.BufferedReader;
23 import java.io.IOException;
24 import java.io.StringReader;
26 import org.junit.Assert;
27 import org.junit.Test;
38 @SuppressWarnings(
"IOResourceOpenedButNotSafelyClosed")
42 final BufferedReader reader =
new BufferedReader(
new StringReader(
"arch map\nfirst_load 1234\nend\n"));
44 parser.load(reader, mapArchObject);
Reading and writing of maps, handling of paths.
MapArchObject contains the specific meta data about a map that is stored in the map-arch, at the very beginning of the map file.
Base package of all Gridarta classes.
void testLoadFirstLoad()
Checks that the "first_load" attribute can be parsed.
Interface for classes that read or write MapArchObject instances.
A net.sf.gridarta.model.io.MapArchObjectParser for Crossfire map arch object instances.
Main package of Gridarta4Crossfire, contains all classes specific to the Crossfire version of the Gri...
int getFirstLoad()
Returns the timestamp the Crossfire server has loaded this map.
Regression tests for MapArchObjectParser.