Class AtrinikServerActions

    • 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

      • teleportCharacterToMap

        protected void teleportCharacterToMap​(@NotNull
                                              @NotNull java.lang.String mapPath,
                                              int mapX,
                                              int mapY)
                                       throws java.io.IOException
        Description copied from class: AbstractServerActions
        Teleports the character to the given map path.
        Specified by:
        teleportCharacterToMap in class AbstractServerActions<GameObject,​MapArchObject,​Archetype>
        Parameters:
        mapPath - the map path to teleport to
        mapX - the x coordinate to teleport to
        mapY - the y coordinate to teleport to
        Throws:
        java.io.IOException - if teleportation fails