Package agh.sr.rmi.game.controller

Examples of agh.sr.rmi.game.controller.GameController


            GameListener gameListener = new ClientGameListener(playerToken);

            UnicastRemoteObject.exportObject(gameListener, 0);

            GameController gameController = gameServer.createGame(playerToken, "game1", 1, 1, gameListener);
            gameListener.registerGameController(gameController);

//            System.out.println("Aktualna zawartosc tablicy: " + noteboard.getText(userToken));

        } catch (Exception e) {
View Full Code Here


            throw new GameException("Not unique game name!");
        }

        List<Bot> bots = BotFactory.createBots(gameName, botsCount);

        GameController gameController = new PanGameController(gameName, playersCount, bots);
        UnicastRemoteObject.exportObject(gameController, 0);
        gameController.addPlayer(playerToken, gameListener);

        games.put(gameName, gameController);

        return gameController;
    }
View Full Code Here

TOP

Related Classes of agh.sr.rmi.game.controller.GameController

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.