Advertisement
Guest User

Untitled

a guest
Mar 1st, 2015
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.79 KB | None | 0 0
  1. public final class Bootstrap {
  2.     /**
  3.      * The engine of the game.
  4.      */
  5.     private final Engine mEngine = DefaultEngine.newEngine("Argentum Online v1.000.120", Platform.SERVER);
  6.  
  7.     /**
  8.      * Constructor.
  9.      */
  10.     public Bootstrap() {
  11.         mEngine.initialise(this::onEvent, this::onEvent);
  12.     }
  13.  
  14.     /**
  15.      * Handle {@link EngineStartedEvent}.
  16.      */
  17.     private void onEvent(EngineStartedEvent event) {
  18.         System.out.println("EngineStartedEvent");
  19.     }
  20.  
  21.     /**
  22.      * Handle {@link EngineStoppedEvent}.
  23.      */
  24.     private void onEvent(EngineStoppedEvent event) {
  25.         System.out.println("EngineStoppedEvent");
  26.     }
  27.  
  28.     /**
  29.      * Main entry of the application.
  30.      */
  31.     public static void main(String[] argv) {
  32.         new Bootstrap();
  33.     }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement