Пример #1
0
  private void setup(int playerSize, int ballSize, int pvpSize)
      throws ClassNotFoundException, IOException {
    // #request =
    Simulator sim = new Simulator();
    sim.clearData();

    // setup post queue
    sim.setupPVPForwardQueue(playerSize, ballSize, pvpSize);
    Setup.setEnv();
    Setup.startRequest();
    Setup.startExe(100);

    // setup request queue
    sim.setupPVPForwardQueue(playerSize, ballSize, pvpSize);
  }
Пример #2
0
 public static void main(String[] args) throws IOException, ClassNotFoundException {
   Setup setup = new Setup();
   setup.startSimulator();
   setup.startServer();
 }