Class ParametersClient

java.lang.Object
it.polimi.ingsw.am13.ParametersClient

public class ParametersClient extends Object
Class storing all the major parameters the client classes use, both for game and technical aspects. The non-final values are parametric and could be chosen via command line, the value here are the default ones
  • Field Details

    • sleepTime

      public static final Long sleepTime
      Period the client thread waits before sending a new ping
    • SKIP_ROOM

      public static boolean SKIP_ROOM
      If true, skips the create/join room phase, creating a room with the specific DEBUG_NPLAYERS number of players
    • SKIP_INIT

      public static boolean SKIP_INIT
      If true, skips the init phase
    • SKIP_TURNS

      public static boolean SKIP_TURNS
      If true, skips the turn-bases phase, moving directly to the end of the game
    • DEBUG_NPLAYERS

      public static int DEBUG_NPLAYERS
      1 Number of players for the debug mode
    • IS_SOCKET

      public static boolean IS_SOCKET
      True if client chooses to connect via socket, false if it chooses RMI
    • IS_TUI

      public static boolean IS_TUI
      Ture if the client chooses to use TUI, false if it chooses GUI
    • SERVER_IP

      public static String SERVER_IP
      Server's ip (to which to connect)
    • SERVER_PORT

      public static int SERVER_PORT
      Server's port (to which to connect)
    • CLIENT_IP

      public static String CLIENT_IP
      Server's ip (to which to connect)
    • RMI_DEFAULT_PORT

      public static final int RMI_DEFAULT_PORT
      See Also:
    • START_WITH_SOUNDS

      public static boolean START_WITH_SOUNDS
  • Constructor Details

    • ParametersClient

      public ParametersClient()