Package org.gojul.fourinaline.model.GameServer

Examples of org.gojul.fourinaline.model.GameServer.PlayerDescriptor


    // it is inizialized before any thread can be running.
    connectedToServer = true;
   
    serverTicket = ticket;

    PlayerDescriptor descriptor = gameServer.registerPlayer(playerName, serverTicket);
    gamePlayer = descriptor.getGamePlayer();
    isGameOwner = descriptor.isGameOwner();
   
    // Here the fact that we launch the thread in the class constructor
    // is not a bug. The thread acts as a daemon that is supposed to
    // stop the client thread if the server is halted.
    new Thread(new GameServerCaller(this, gameServer)).start();
View Full Code Here

TOP

Related Classes of org.gojul.fourinaline.model.GameServer.PlayerDescriptor

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.