Package net.sf.gridarta.actions
Class AttachTiledMaps<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
- java.lang.Object
-
- net.sf.gridarta.actions.AttachTiledMaps<G,A,R>
-
public class AttachTiledMaps<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends java.lang.ObjectAttaches maps to adjacent tiled maps.
-
-
Constructor Summary
Constructors Constructor Description AttachTiledMaps(@NotNull MapManager<G,A,R> mapManager, @NotNull TileLink @NotNull [] tileLinks)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidattachTiledMaps(@NotNull MapModel<G,A,R> mapModel, @NotNull java.lang.String @NotNull [] tilePaths, @NotNull java.io.File mapsDirectory, boolean performAction)Updates tile paths of a map.
-
-
-
Constructor Detail
-
AttachTiledMaps
public AttachTiledMaps(@NotNull @NotNull MapManager<G,A,R> mapManager, @NotNull @NotNull TileLink @NotNull [] tileLinks)Creates a new instance.- Parameters:
mapManager- the map manager to usetileLinks- the tile links to use
-
-
Method Detail
-
attachTiledMaps
public void attachTiledMaps(@NotNull @NotNull MapModel<G,A,R> mapModel, @NotNull @NotNull java.lang.String @NotNull [] tilePaths, @NotNull @NotNull java.io.File mapsDirectory, boolean performAction) throws CannotLoadMapFileException, CannotSaveMapFileException, MapSizeMismatchException, UnsavedMapExceptionUpdates tile paths of a map.- Parameters:
mapModel- the map model to updatetilePaths- the new tile paths; empty slots will be filled inmapsDirectory- the maps directoryperformAction- whether the action should be performed- Throws:
CannotLoadMapFileException- if a map file cannot be loadedCannotSaveMapFileException- if a map file cannot be savedMapSizeMismatchException- if adjacent map sizes do not matchUnsavedMapException- if a map file is not saved
-
-