Esempio n. 1
0
  public ClientGame(String name, String ip) throws ClientNameException, IOException {

    super();
    this.name = name;
    this.ip = ip;

    // try {
    connectToMainServer();
    registerName();
    waitForOtherPlayers();
    createBytePorts();
    createShips();
    turnOnBulletReceiver();
    turnOnTurretReceiver();
    turnOnPowerReceiver();
    turnOnChatLog();
    turnOnFadeLog();
    turnOnServerTime();
    // turnOnEndGameReceiver();
    Global.log("Successfully created client game.");
    // }
    // catch (IOException ex) {
    // System.err.println("Exception occured: " + ex.toString());
    // Global.onException();
    // }

  }