Class launchOptions

java.lang.Object
fr.formiko.formiko.launchOptions

public class launchOptions extends Object
Launch options at Launch of the game.
"-" options are launch with normal game when other options are launch alone (Game is never start).
For exemple ./run.sh -cli will launch the game in cli mode when ./run.sh stats will never launch game but update statistique value on a file.
Author:
Hydrolien
  • Constructor Details

    • launchOptions

      public launchOptions()
  • Method Details

    • launchOptionsMinor

      public static void launchOptionsMinor(String stringOptions)
      Launch a "-" options with the game.
      -options affect game but launch it, when non "-" options never launch game.
      Here is the list of the aviable -options.
      • -d Print all the debugs infos.
      • -p Print performances info for long action.
      • -g Print the graphics debugs infos.
      • -rg Reload all the graphics saved in data/temporary/images.
      • -cli Launch game but in Console Line Interface.
    • launchOptionsMajor

      public static void launchOptionsMajor(String[] args)
      Launch a major options without launching game.
    • rbtCmd

      private static void rbtCmd(String[] args)
      trim the image from args.
    • tradCmd

      public static void tradCmd(String rep)
      Update translation.
    • tradCharCmd

      public static void tradCharCmd(int id, String fontName, boolean b)
      Print part of printable chars.
    • canDisplayLanguages

      public static void canDisplayLanguages(String fontName)
      Print if languages can be display by font.
      Parameters:
      fontName - name of the tested font
    • music

      private static void music()
      Do sounds or music test.
    • updateDataVersion

      public static void updateDataVersion(String[] args)
      Set value of data to last version in version.json.
      It is need to help the game to choose the data version that it need. Data version aren't allaws the same that game version because data don't change all time that game is update.
    • printMemUse

      public static void printMemUse()
      Print data about memory use.
    • printScreenSize

      public static void printScreenSize()
      Print available screen size.
    • printVersion

      public static void printVersion()
      Print game, data, music versions.
    • testJson

      private static void testJson()
      Do some test about json file.
      One day, it should replace .csv with game data