Package de.ailis.xadrian.data

Examples of de.ailis.xadrian.data.Game


            for (final Object item : games)
            {
                final Element element = (Element) item;
                final String id = element.attributeValue("id");
                final int nid = Integer.parseInt(element.attributeValue("nid"));
                final Game game = new Game(nid, id);
                this.games.add(game);
                this.gameNidMap.put(nid, game);
                this.gameMap.put(id, game);
                if (this.defaultGame == null
                    || Boolean.parseBoolean(element
View Full Code Here


     * @throws GameNotFoundException
     *             When game was not found.
     */
    public Game getGame(final String id) throws GameNotFoundException
    {
        Game game = this.gameMap.get(id);
        if (game == null) throw new GameNotFoundException(id);
        return game;
    }
View Full Code Here

     * @throws GameNotFoundException
     *             When game was not found.
     */
    public Game getGame(final int nid) throws GameNotFoundException
    {
        Game game = this.gameNidMap.get(nid);
        if (game == null) throw new GameNotFoundException(nid);
        return game;
    }
View Full Code Here

TOP

Related Classes of de.ailis.xadrian.data.Game

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.