Package de.nameless.gameEngine.system.lan.messages

Examples of de.nameless.gameEngine.system.lan.messages.NETransaktionMessage


  public void arrangeTurn(NEplayer player) {
    debug("Asking " + player.getName() + " for his doing...",false);
    boolean endOfTuren = false;
    while (!endOfTuren) {
      NEMessage m = player.sendAndWait(new NEYourTurnMessage(), NEMessage.TRANSAKTION);
      NETransaktionMessage transMessage = (NETransaktionMessage) m;
     
      if (transMessage.getContent() instanceof NEEndOfTurnTransaktion) {
        endOfTuren = true;       
      } else {
        transMessage.getContent().DoTransaktion(gameServer);
        notifyTransaktion(transMessage.getContent());     
      }
    }
    debug("turn done!",false);
  }
View Full Code Here


  /**  
   * brodcast a Transaction
   * @param t
   */
  private void notifyTransaktion(NEGameTransaction t) {
    lan.broudcast(new NETransaktionMessage(t));
  }
View Full Code Here

    gameServer.setGFXServer(gfxServer);   
    gfxServer.getInputAdapter().setClient(this);   
  }

  public void endTransaction() {
    lan.send(new NETransaktionMessage(turn)  );
  }
View Full Code Here

  public void endTransaction() {
    lan.send(new NETransaktionMessage(turn)  );
  }

  public void endTurn() {
    lan.send(new NETransaktionMessage(new NEEndOfTurnTransaktion()));
    myTurn = false
    gameServer.removeTurnLabels();   
  }
View Full Code Here

TOP

Related Classes of de.nameless.gameEngine.system.lan.messages.NETransaktionMessage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.