aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/los/numeros/ExampleGame/Main.java
blob: eb515c682182baec64339ca0efd312283b1bff0a (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.ExampleGame;

import java.util.function.BooleanSupplier;

import los.numeros.ExampleGame.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);
  }
}