Exemplo n.º 1
0
  public Set<String> getModelsInUse() {
    Set<String> models = new java.util.HashSet<String>();

    for (graphics.core.Model m : graphics.core.Model.loaded_models()) models.add(m.name);

    return models;
  }
Exemplo n.º 2
0
  private void startup() {
    setName("Dedicated Server");
    running = true;

    graphics.core.Model.loadModels();

    try {
      socket = new ServerSocket(SERVER_PORT);
    } catch (IOException e) {
      System.out.println("Could not listen on port: " + SERVER_PORT);
      System.exit(-1);
    }

    loadMap("example_1");

    game = new GameMultiThread(actors);
    game.start();

    new ListenerThread(socket, this).start();
  }