java.lang.Object
it.polimi.ingsw.am13.ParametersClient
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 Summary
FieldsModifier and TypeFieldDescriptionstatic String
Server's ip (to which to connect)static int
1 Number of players for the debug modestatic boolean
True if client chooses to connect via socket, false if it chooses RMIstatic boolean
Ture if the client chooses to use TUI, false if it chooses GUIstatic final int
static String
Server's ip (to which to connect)static int
Server's port (to which to connect)static boolean
If true, skips the init phasestatic boolean
If true, skips the create/join room phase, creating a room with the specific DEBUG_NPLAYERS number of playersstatic boolean
If true, skips the turn-bases phase, moving directly to the end of the gamestatic final Long
Period the client thread waits before sending a new pingstatic boolean
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
sleepTime
Period the client thread waits before sending a new ping -
SKIP_ROOM
public static boolean SKIP_ROOMIf true, skips the create/join room phase, creating a room with the specific DEBUG_NPLAYERS number of players -
SKIP_INIT
public static boolean SKIP_INITIf true, skips the init phase -
SKIP_TURNS
public static boolean SKIP_TURNSIf true, skips the turn-bases phase, moving directly to the end of the game -
DEBUG_NPLAYERS
public static int DEBUG_NPLAYERS1 Number of players for the debug mode -
IS_SOCKET
public static boolean IS_SOCKETTrue if client chooses to connect via socket, false if it chooses RMI -
IS_TUI
public static boolean IS_TUITure if the client chooses to use TUI, false if it chooses GUI -
SERVER_IP
Server's ip (to which to connect) -
SERVER_PORT
public static int SERVER_PORTServer's port (to which to connect) -
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()
-