Package ch.sahits.game.graphic.image
Interface IMapSegmentImageCreator
-
- All Known Implementing Classes:
MapSegmentCreator
public interface IMapSegmentImageCreator- Author:
- Andi Hotz, (c) Sahits GmbH, 2015 Created on Dec 15, 2015
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcreateMapSegment(ch.sahits.game.openpatrician.data.xmlmodel.map.Map.MapSegments.PirateHideout hideout, java.lang.String mapImage)Create an image from the data of a pirate hideout map.voidcreateMapSegment(ch.sahits.game.openpatrician.data.xmlmodel.map.Map.MapSegments.PirateNest priateNest, java.lang.String mapImage)Create an image from the data of a pirate nest.voidcreateMapSegment(ch.sahits.game.openpatrician.data.xmlmodel.map.Map.MapSegments.SunkenTreasure treasure, java.lang.String mapImage)Create an image from the data of a treasure map.voidloadMap(java.lang.String fileName)Retrieve the map image and store it in the image loader under the key map
-
-
-
Method Detail
-
createMapSegment
void createMapSegment(ch.sahits.game.openpatrician.data.xmlmodel.map.Map.MapSegments.PirateNest priateNest, java.lang.String mapImage) throws java.io.IOExceptionCreate an image from the data of a pirate nest.- Parameters:
priateNest- for which to create the map segmentmapImage- image name tag- Throws:
java.io.IOException- failure in creating a map segment from the image
-
createMapSegment
void createMapSegment(ch.sahits.game.openpatrician.data.xmlmodel.map.Map.MapSegments.SunkenTreasure treasure, java.lang.String mapImage) throws java.io.IOExceptionCreate an image from the data of a treasure map.- Parameters:
treasure- for which to create the map segmentmapImage- image name tag- Throws:
java.io.IOException- failure in creating a map segment from the image
-
createMapSegment
void createMapSegment(ch.sahits.game.openpatrician.data.xmlmodel.map.Map.MapSegments.PirateHideout hideout, java.lang.String mapImage) throws java.io.IOExceptionCreate an image from the data of a pirate hideout map.- Parameters:
hideout- for which to create the map segmentmapImage- image name tag- Throws:
java.io.IOException- failure in creating a map segment from the image
-
loadMap
void loadMap(java.lang.String fileName)
Retrieve the map image and store it in the image loader under the key map- Parameters:
fileName- map name tag
-
-