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); }
public static void main(String[] args) throws IOException, ClassNotFoundException { Setup setup = new Setup(); setup.startSimulator(); setup.startServer(); }