Examples of Board


Examples of jp.co.nskint.uq.pd.signage.model.Board

     * @param bid 掲示板ID
     * @param title タイトル
     * @return
     */
    protected Board put(Transaction tx, long bid, String title) {
        Board result = null;
        if (bid == 0) {
            result = new Board();
            // 初期化キーを設定
            result.setUpdatedDate(new Date());
            result.setRegisteredDate(result.getUpdatedDate());
        } else {
            result = get(tx, bid);
            result.setUpdatedDate(new Date());
        }
        Datastore.put(tx, result);
        return result;
    }

Examples of koth.game.Board

            for (Vector t : tiles)
                if (ds.get(t) <= spawnRadius)
                    ss.add(t);
            spawns.add(ss);
        }
        return new Board(tiles, spawns);
    }

Examples of megamek.common.Board

                File fBoard = new File(boardDir, sBoardFile);
                if (!fBoard.exists()) {
                    throw new Exception("Scenario requires nonexistant board: "
                            + sBoard);
                }
                ba[n] = new Board();
                ba[n].load(sBoardFile);
                if (cf > 0) {
                    ba[n].setBridgeCF(cf);
                }
                BoardUtilities.flip(ba[n], isRotated, isRotated);

Examples of megamek.common.Board

                    roadsAutoExit = false;
                }
            }
        }

        IBoard result = new Board();
        result.setRoadsAutoExit(roadsAutoExit);
        // Initialize all hexes - buildings, exits, etc
        result.newData(resultWidth, resultHeight, resultData);

        //assuming that the map setting and board types match
        result.setType(medium);
       
        return result;
    }

Examples of megamek.common.Board

                            .getTheme());
                }
            }
        }

        IBoard result = new Board(mapSettings.getBoardWidth(), mapSettings
                .getBoardHeight(), nb);
       
        if(mapSettings.getMedium() == MapSettings.MEDIUM_SPACE) {
            result.setType(Board.T_SPACE);
            return result;
        }
       
        /* initalize reverseHex */
        HashMap<IHex, Point> reverseHex = new HashMap<IHex, Point>(2
                * mapSettings.getBoardWidth() * mapSettings.getBoardHeight());
        for (int y = 0; y < mapSettings.getBoardHeight(); y++) {
            for (int x = 0; x < mapSettings.getBoardWidth(); x++) {
                reverseHex.put(result.getHex(x, y), new Point(x, y));
            }
        }

        int peaks = mapSettings.getMountainPeaks();
        while (peaks > 0) {
            peaks--;
            int mountainHeight = mapSettings.getMountainHeightMin()
                    + Compute.randomInt(1 + mapSettings.getMountainHeightMax()
                            - mapSettings.getMountainHeightMin());
            int mountainWidth = mapSettings.getMountainWidthMin()
                    + Compute.randomInt(1 + mapSettings.getMountainWidthMax()
                            - mapSettings.getMountainWidthMin());
            int mapWidth = result.getWidth();
            int mapHeight = result.getHeight();

            // put the peak somewhere in the middle of the map...
            Coords peak = new Coords(mapWidth / 4
                    + Compute.randomInt((mapWidth + 1) / 2), mapHeight / 4
                    + Compute.randomInt((mapHeight + 1) / 2));

Examples of megamek.common.Board

    public void applyBoardSettings() {
        mapSettings.replaceBoardWithRandom(MapSettings.BOARD_RANDOM);
        mapSettings.replaceBoardWithRandom(MapSettings.BOARD_SURPRISE);
        IBoard[] sheetBoards = new IBoard[mapSettings.getMapWidth() * mapSettings.getMapHeight()];
        for (int i = 0; i < mapSettings.getMapWidth() * mapSettings.getMapHeight(); i++) {
            sheetBoards[i] = new Board();
            String name = mapSettings.getBoardsSelectedVector().get(i);
            boolean isRotated = false;
            if (name.startsWith(Board.BOARD_REQUEST_ROTATION)) {
                // only rotate boards with an even width
                if (mapSettings.getBoardWidth() % 2 == 0) {

Examples of megamek.common.Board

    }

    public void previewBoard() {
        String boardName = (String) lisBoardsAvailable.getSelectedValue();
        if (lisBoardsAvailable.getSelectedIndex() > 2) {
            IBoard board = new Board(Integer.parseInt(texBoardWidth.getText()),
                    Integer.parseInt(texBoardHeight.getText()));
            board.load(boardName + ".board");
            if (chkRotateBoard.isSelected()) {
                BoardUtilities.flip(board, true, true);
            }
            MapPreview mapPreview = null;
            try {

Examples of megamek.common.Board

    }

    public void previewBoard() {
        String boardName = lisBoardsAvailable.getSelectedItem();
        if (lisBoardsAvailable.getSelectedIndex() > 2) {
            IBoard board = new Board(new Integer(texBoardWidth.getText()),
                    new Integer(texBoardHeight.getText()));
            board.load(boardName + ".board");
            if (chkRotateBoard.getState()) {
                BoardUtilities.flip(board, true, true);
            }
            MapPreview mapPreview = null;
            try {

Examples of megamek.common.Board

            // conn = new XmlConnection( this, new Socket(host, port), 1 );
            System.out.println("Connected to peer.");
            conn.addConnectionListener(connectionListener);

            board = new Board();
            panConnect.setEnabled(false);
            panXmit.setEnabled(true);
        } catch (Throwable err) {
            err.printStackTrace();
        }

Examples of megamek.common.Board

            conn = ConnectionFactory.getInstance().createServerConnection(s, 0);
            // conn = new XmlConnection(this, s, 0);
            conn.addConnectionListener(connectionListener);

            board = new Board();
            panConnect.setEnabled(false);
            panXmit.setEnabled(true);

        } catch (Throwable err) {
            err.printStackTrace();
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.