Package it.polimi.ingsw
Class Main
java.lang.Object
it.polimi.ingsw.Main
public abstract class Main
extends java.lang.Object
The class containing the first main method called when running the jar file
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringerrorStringThe string printed when the program starts with wrongs argumentsstatic java.lang.StringhelpStringThe string printed on -h or --help program argumentstatic java.lang.StringjarNameThe name of the executing jar file -
Constructor Summary
Constructors Constructor Description Main() -
Method Summary
Modifier and Type Method Description static voidmain(java.lang.String[] args)The first method called when running the jar file.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
jarName
public static final java.lang.String jarNameThe name of the executing jar file -
helpString
public static final java.lang.String helpStringThe string printed on -h or --help program argument -
errorString
public static final java.lang.String errorStringThe string printed when the program starts with wrongs arguments
-
-
Constructor Details
-
Main
public Main()
-
-
Method Details
-
main
public static void main(java.lang.String[] args)The first method called when running the jar file. Checks the program arguments and calls the correct methods.- Parameters:
args- arguments to specify to run the server ("-s"), the client in GUI ("-g") or the client in CLI ("-c")
-