aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/los/numeros/example/Main.java
blob: 02fe35ebe9d996d6824a5428bf791f0a6a3227ac (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package los.numeros.example;

import java.util.function.BooleanSupplier;

import los.numeros.example.modules.*;
import los.numeros.gameEngine.Engine;
import los.numeros.gameEngine.Module;

public class Main implements Engine {
  BooleanSupplier running = () -> true;
  Module modules[];

  public Main() {
    /* put the modules in an array */
    modules[modules.length] = new ExampleModule();

    /* start the game */
    Engine.StartEngine(running, modules);
  }
}