Package fr.formiko.formiko
Class launchOptions
java.lang.Object
fr.formiko.formiko.launchOptions
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.
"-" 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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
canDisplayLanguages
(String fontName) Print if languages can be display by font.static void
launchOptionsMajor
(String[] args) Launch a major options without launching game.static void
launchOptionsMinor
(String stringOptions) Launch a "-" options with the game.private static void
music()
Do sounds or music test.static void
Print data about memory use.static void
Print available screen size.static void
Print game, data, music versions.private static void
trim the image from args.private static void
testJson()
Do some test about json file.static void
tradCharCmd
(int id, String fontName, boolean b) Print part of printable chars.static void
Update translation.static void
updateDataVersion
(String[] args) Set value of data to last version in version.json.
-
Constructor Details
-
launchOptions
public launchOptions()
-
-
Method Details
-
launchOptionsMinor
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
Launch a major options without launching game. -
rbtCmd
trim the image from args. -
tradCmd
Update translation. -
tradCharCmd
Print part of printable chars. -
canDisplayLanguages
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
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
-