Class LoadingSavegameInfo


  • public class LoadingSavegameInfo
    extends java.lang.Object
    Used for transferring data for the savegame to be loaded.
    • Constructor Summary

      Constructors 
      Constructor Description
      LoadingSavegameInfo​(boolean singlePlayer, java.net.InetAddress address, int port, java.lang.String serverName, boolean publicServer)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.net.InetAddress getAddress()
      Get the selected address;
      int getPort()
      Get the selected port number.
      java.lang.String getServerName()
      Get the specified server name.
      boolean isPublicServer()
      Is this a public server?
      boolean isSinglePlayer()
      Is a single player game selected?
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • singlePlayer

        private final boolean singlePlayer
      • address

        private final java.net.InetAddress address
      • port

        private final int port
      • serverName

        private final java.lang.String serverName
      • publicServer

        private final boolean publicServer
    • Constructor Detail

      • LoadingSavegameInfo

        public LoadingSavegameInfo​(boolean singlePlayer,
                                   java.net.InetAddress address,
                                   int port,
                                   java.lang.String serverName,
                                   boolean publicServer)
    • Method Detail

      • isSinglePlayer

        public boolean isSinglePlayer()
        Is a single player game selected?
        Returns:
        True if single player is selected.
      • getAddress

        public java.net.InetAddress getAddress()
        Get the selected address;
        Returns:
        The InetAddress.
      • getPort

        public int getPort()
        Get the selected port number.
        Returns:
        The port number.
      • getServerName

        public java.lang.String getServerName()
        Get the specified server name.
        Returns:
        The server name.
      • isPublicServer

        public boolean isPublicServer()
        Is this a public server?
        Returns:
        True if this is a public server.