Load a Conquest format map file: loadmap src/main/resources/maps/europe-conquest.map
Save map: savemap newmap.map 1 - Domination (current) format or savemap newmap.map 2 - Conquest format
Change summary:
savemap now accepts a 2nd argument for map format: 1 - Domination map format, 2 - Conquest map format; leave empty => domination map format.
Consolidate map functions:
(1) all map-related files are now stored in utils/maps folder. Test files are also moved accordingly.
(2) renamed the existing MapReader to DominationMapDriver. A *MapDriver instance now contains methods for both reading and saving the map. saveMap method was refactored to move from the specific GameMap class to the corresponding *MapDriver class.
(3) added ConquestGameMap beside the existing GameMap class
(4) added ConquestMapDriver to handle ConquestGameMap
(5) added MapAdapter to handle transformation between GameMap and ConquestGameMap
TODO:
Complete Javadoc -> done
Write basic test cases for Conquest format -> done
Test commands:
loadmap src/main/resources/maps/europe-conquest.map
savemap newmap.map 1
- Domination (current) format orsavemap newmap.map 2
- Conquest formatChange summary:
savemap
now accepts a 2nd argument for map format:1
- Domination map format,2
- Conquest map format; leave empty => domination map format.utils/maps
folder. Test files are also moved accordingly. (2) renamed the existingMapReader
toDominationMapDriver
. A*MapDriver
instance now contains methods for both reading and saving the map.saveMap
method was refactored to move from the specificGameMap
class to the corresponding*MapDriver
class. (3) addedConquestGameMap
beside the existingGameMap
class (4) addedConquestMapDriver
to handleConquestGameMap
(5) addedMapAdapter
to handle transformation betweenGameMap
andConquestGameMap
TODO: