Examples of GameTypeRoom


Examples of net.yura.lobby.database.GameTypeRoom

    public Collection<GameTypeRoom> getGameTypes() {
        Interaction in = interactions.get();
        Query q = in.em.createQuery("SELECT t FROM GameTypeRoom t");
        List<GameTypeRoom> gametypes = q.getResultList();
        if (gametypes.isEmpty()) {
            GameTypeRoom gtr = MemoryDatabase.makeDominationGameType();           
            saveGameType(gtr);
            gametypes = Arrays.asList(gtr);
        }
        return gametypes;
    }
View Full Code Here

Examples of net.yura.lobby.database.GameTypeRoom


  }

  private static GameTypeRoom makeNewGame(int id,String name,String clientJar,String clientClass,String serverJar,String serverClass,String newgameoptions) {
            GameTypeRoom gtr = new GameTypeRoom();
            gtr.setId(id);
            gtr.setName(name);
            gtr.setClientJar(clientJar);
            gtr.setClientClass(clientClass);
            gtr.setServerJar(serverJar);
            gtr.setServerClass(serverClass);
            gtr.setOptions(newgameoptions);
            return gtr;
  }
View Full Code Here

Examples of net.yura.lobby.database.GameTypeRoom

        try {
            database.startTransaction();

            GameRoom gameRoom = new GameRoom(game);
            GameTypeRoom gameTypeRoom = database.getGameType( game.getType().getId() );
            gameTypeRoom.createNewGame(gameRoom);
            database.saveGame(gameRoom);
            return gameRoom;
        }
        finally {
            database.endTransaction();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.