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

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


  public void newConnectionEvent(NEConnection c) {
    synchronized(clientsConnected){
      if(clientsConnected < player.length-1){         
        player[clientsConnected] = new NEplayer(c.getContactName(),c);
        clientsConnected += 1;
        player[clientsConnected].send(new NEPlayerIDMessage(player[clientsConnected].getPlayerId()));
        log("new player registerd: name " + c.getContactName() + ", ID " + player[clientsConnected].getPlayerId());
      } else {
        player[clientsConnected] = new NEplayer(c.getContactName(),c);       
        player[clientsConnected].send(new NEPlayerIDMessage(player[clientsConnected].getPlayerId()));
        log("new player registerd: name " + c.getContactName() + ", ID " + player[clientsConnected].getPlayerId());
        clientsConnected += 1;
        lan.stopListening();
      }
    }
View Full Code Here

TOP

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

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.