generate() public static méthode

public static generate ( ) : SpaceProgram
Résultat SpaceProgram
Exemple #1
0
 public void loadProgram(String title)
 {
     currentTitle = title;
     try {
         spaceProgram = (SpaceProgram)parser.readFile(currentSpaceProgramFile);
     } catch {
         spaceProgram = SpaceProgram.generate();
     }
 }
Exemple #2
0
 /// <summary>
 /// Reset the current space program.
 /// </summary>
 public void resetSpaceProgram()
 {
     spaceProgram = SpaceProgram.generate();
 }