Package megamek.common.event

Examples of megamek.common.event.BoardEvent


        this.width = width;
        this.height = height;
        this.data = data;

        initializeAll();
        processBoardEvent(new BoardEvent(this, null, BoardEvent.BOARD_NEW_BOARD));
    }
View Full Code Here


        for (int y = 0; y < height; y++) {
            for (int x = 0; x < width; x++) {
                initializeHex(x, y, false);
            }
        }
        processBoardEvent(new BoardEvent(this, null,
                BoardEvent.BOARD_CHANGED_ALL_HEXES));
        // good time to ensure hex cache
        IdealHex.ensureCacheSize(width + 1, height + 1);

    } // End private void initializeAll()
View Full Code Here

        for (int i = 0; i < 6; i++) {
            IHex other = getHexInDir(x, y, i);
            hex.setExits(other, i, roadsAutoExit);
        }
        if (event) {
            processBoardEvent(new BoardEvent(this, new Coords(x, y),
                    BoardEvent.BOARD_CHANGED_HEX));
        }
    }
View Full Code Here

TOP

Related Classes of megamek.common.event.BoardEvent

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.