Class Script

java.lang.Object
fr.formiko.formiko.Script
All Implemented Interfaces:
Serializable

public class Script extends Object implements Serializable
Script class used to do levels.
All script use cheat code of triche.java.
Author:
Hydrolien
See Also:
  • Field Details

    • cmdSuivante

      private boolean cmdSuivante
    • ecouteClic

      private boolean ecouteClic
    • name

      private String name
  • Constructor Details

    • Script

      public Script(String name)
  • 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

      private String[] loadScript(String rep)
      Load the script if it is in rep/levels/.
      Parameters:
      rep - The folder where to search.
    • executeScript

      private void executeScript(String[] t)
      Execute the script line by line.
      Parameters:
      t - the [] with all script lines.