Package fr.formiko.formiko
Class Script
java.lang.Object
fr.formiko.formiko.Script
- All Implemented Interfaces:
Serializable
Script class used to do levels.
All script use cheat code of triche.java.
All script use cheat code of triche.java.
- Author:
- Hydrolien
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
executeScript
(String[] t) Execute the script line by line.boolean
boolean
private String[]
loadScript
(String rep) Load the script if it is in rep/levels/.boolean
script()
Load the script then launch it.void
setCmdSuivante
(boolean b) void
setEcouteClic
(boolean b)
-
Field Details
-
cmdSuivante
private boolean cmdSuivante -
ecouteClic
private boolean ecouteClic -
name
-
-
Constructor Details
-
Script
-
-
Method Details
-
getCmdSuivante
public boolean getCmdSuivante() -
setCmdSuivante
public void setCmdSuivante(boolean b) -
getEcouteClic
public boolean getEcouteClic() -
setEcouteClic
public void setEcouteClic(boolean b) -
script
public boolean script()Load the script then launch it. It will test 3 folders : stable then ressourcesPacks then temporary. All default script will be in stable. A player can add levels in ressourcesPacks. A player can create new levels in temporary. -
loadScript
Load the script if it is in rep/levels/.- Parameters:
rep
- The folder where to search.
-
executeScript
Execute the script line by line.- Parameters:
t
- the [] with all script lines.
-