Class AtrinikServerActions
- java.lang.Object
-
- net.sf.gridarta.actions.AbstractServerActions<GameObject,MapArchObject,Archetype>
-
- net.sf.gridarta.var.atrinik.actions.AtrinikServerActions
-
- All Implemented Interfaces:
MapViewManagerListener<GameObject,MapArchObject,Archetype>,EditorAction
public class AtrinikServerActions extends AbstractServerActions<GameObject,MapArchObject,Archetype>
TheAbstractServerActionsimplementation for connecting to an Atrinik server.
-
-
Constructor Summary
Constructors Constructor Description AtrinikServerActions(@NotNull FileControl<GameObject,MapArchObject,Archetype> fileControl)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidresetMap(@NotNull java.lang.String mapPath)Resets a map identified by the given map path.protected voidteleportCharacterToMap(@NotNull java.lang.String mapPath, int mapX, int mapY)Teleports the character to the given map path.-
Methods inherited from class net.sf.gridarta.actions.AbstractServerActions
activeMapViewChanged, mapViewClosing, mapViewCreated, openInClient, setAction
-
-
-
-
Constructor Detail
-
AtrinikServerActions
public AtrinikServerActions(@NotNull @NotNull FileControl<GameObject,MapArchObject,Archetype> fileControl)Creates a new instance.- Parameters:
fileControl- the file control for saving maps
-
-
Method Detail
-
resetMap
protected void resetMap(@NotNull @NotNull java.lang.String mapPath) throws java.io.IOExceptionDescription copied from class:AbstractServerActionsResets a map identified by the given map path.- Specified by:
resetMapin classAbstractServerActions<GameObject,MapArchObject,Archetype>- Parameters:
mapPath- the map path to reset- Throws:
java.io.IOException- if reset fails
-
teleportCharacterToMap
protected void teleportCharacterToMap(@NotNull @NotNull java.lang.String mapPath, int mapX, int mapY) throws java.io.IOExceptionDescription copied from class:AbstractServerActionsTeleports the character to the given map path.- Specified by:
teleportCharacterToMapin classAbstractServerActions<GameObject,MapArchObject,Archetype>- Parameters:
mapPath- the map path to teleport tomapX- the x coordinate to teleport tomapY- the y coordinate to teleport to- Throws:
java.io.IOException- if teleportation fails
-
-