public class AtrinikServerActions extends AbstractServerActions<GameObject,MapArchObject,Archetype>
AbstractServerActions implementation for connecting to an Atrinik
server.| Constructor and Description |
|---|
AtrinikServerActions(@NotNull FileControl<GameObject,MapArchObject,Archetype> fileControl)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
resetMap(@NotNull java.lang.String mapPath)
Resets a map identified by the given map path.
|
protected void |
teleportCharacterToMap(@NotNull java.lang.String mapPath,
int mapX,
int mapY)
Teleports the character to the given map path.
|
activeMapViewChanged, mapViewClosing, mapViewCreated, openInClient, setActionpublic AtrinikServerActions(@NotNull
@NotNull FileControl<GameObject,MapArchObject,Archetype> fileControl)
fileControl - the file control for saving mapsprotected void resetMap(@NotNull
@NotNull java.lang.String mapPath)
throws java.io.IOException
AbstractServerActionsresetMap in class AbstractServerActions<GameObject,MapArchObject,Archetype>mapPath - the map path to resetjava.io.IOException - if reset failsprotected void teleportCharacterToMap(@NotNull
@NotNull java.lang.String mapPath,
int mapX,
int mapY)
throws java.io.IOException
AbstractServerActionsteleportCharacterToMap in class AbstractServerActions<GameObject,MapArchObject,Archetype>mapPath - the map path to teleport tomapX - the x coordinate to teleport tomapY - the y coordinate to teleport tojava.io.IOException - if teleportation fails