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.String errorString
    The string printed when the program starts with wrongs arguments
    static java.lang.String helpString
    The string printed on -h or --help program argument
    static java.lang.String jarName
    The name of the executing jar file
  • Constructor Summary

    Constructors
    Constructor Description
    Main()  
  • Method Summary

    Modifier and Type Method Description
    static void main​(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 jarName
      The name of the executing jar file
    • helpString

      public static final java.lang.String helpString
      The string printed on -h or --help program argument
    • errorString

      public static final java.lang.String errorString
      The 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")