Class GameServer


  • public class GameServer
    extends java.lang.Object
    Implementation of the Server.
    • Constructor Summary

      Constructors 
      Constructor Description
      GameServer​(Minefield minefield, int maxPlayers, long timeout)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void start​(int port)
      Start the server at the desired port.
      • Methods inherited from class java.lang.Object

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

      • GameServer

        public GameServer​(Minefield minefield,
                          int maxPlayers,
                          long timeout)
    • Method Detail

      • start

        public void start​(int port)
        Start the server at the desired port.
        Parameters:
        port - TCP Port.