Package de.nameless.gameEngine.system

Examples of de.nameless.gameEngine.system.NEplayer


  @Override
  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.NEplayer

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.