Examples of deployOffBoard()


Examples of megamek.common.BipedMech.deployOffBoard()

        entity.setGame(game);

        // Deploy the entity 30 hexes north of
        // the board and check it's position.
        entity.setOffBoard(30, IOffBoardDirections.NORTH);
        entity.deployOffBoard();
        Coords north = new Coords(8, -30);
        testCoords(north, entity.getPosition());

        // Deploy the entity 45 hexes south of
        // the board and check it's position.
View Full Code Here

Examples of megamek.common.BipedMech.deployOffBoard()

        testCoords(north, entity.getPosition());

        // Deploy the entity 45 hexes south of
        // the board and check it's position.
        entity.setOffBoard(45, IOffBoardDirections.SOUTH);
        entity.deployOffBoard();
        Coords south = new Coords(8, 62);
        testCoords(south, entity.getPosition());

        // Deploy the entity 105 hexes east of
        // the board and check it's position.
View Full Code Here

Examples of megamek.common.BipedMech.deployOffBoard()

        testCoords(south, entity.getPosition());

        // Deploy the entity 105 hexes east of
        // the board and check it's position.
        entity.setOffBoard(105, IOffBoardDirections.EAST);
        entity.deployOffBoard();
        Coords east = new Coords(121, 9);
        testCoords(east, entity.getPosition());

        // Deploy the entity 3200 hexes west of
        // the board and check it's position.
View Full Code Here

Examples of megamek.common.BipedMech.deployOffBoard()

        testCoords(east, entity.getPosition());

        // Deploy the entity 3200 hexes west of
        // the board and check it's position.
        entity.setOffBoard(3200, IOffBoardDirections.WEST);
        entity.deployOffBoard();
        Coords west = new Coords(-3200, 9);
        testCoords(west, entity.getPosition());

    }
View Full Code Here

Examples of megamek.common.Entity.deployOffBoard()

        case PHASE_SET_ARTYAUTOHITHEXES:
            // place off board entities actually off-board
            Enumeration<Entity> entities = game.getEntities();
            while (entities.hasMoreElements()) {
                Entity en = entities.nextElement();
                en.deployOffBoard();
            }
            checkForObservers();
            resetActivePlayersDone();
            setIneligible(phase);
View Full Code Here

Examples of megamek.common.Entity.deployOffBoard()

        entity.setGame(game);

        // Deploy the entity 30 hexes north of
        // the board and check it's position.
        entity.setOffBoard(30, IOffBoardDirections.NORTH);
        entity.deployOffBoard();
        Coords north = new Coords(8, -30);
        testCoords(north, entity.getPosition());

        // Deploy the entity 45 hexes south of
        // the board and check it's position.
View Full Code Here

Examples of megamek.common.Entity.deployOffBoard()

        testCoords(north, entity.getPosition());

        // Deploy the entity 45 hexes south of
        // the board and check it's position.
        entity.setOffBoard(45, IOffBoardDirections.SOUTH);
        entity.deployOffBoard();
        Coords south = new Coords(8, 62);
        testCoords(south, entity.getPosition());

        // Deploy the entity 105 hexes east of
        // the board and check it's position.
View Full Code Here

Examples of megamek.common.Entity.deployOffBoard()

        testCoords(south, entity.getPosition());

        // Deploy the entity 105 hexes east of
        // the board and check it's position.
        entity.setOffBoard(105, IOffBoardDirections.EAST);
        entity.deployOffBoard();
        Coords east = new Coords(121, 9);
        testCoords(east, entity.getPosition());

        // Deploy the entity 3200 hexes west of
        // the board and check it's position.
View Full Code Here

Examples of megamek.common.Entity.deployOffBoard()

        testCoords(east, entity.getPosition());

        // Deploy the entity 3200 hexes west of
        // the board and check it's position.
        entity.setOffBoard(3200, IOffBoardDirections.WEST);
        entity.deployOffBoard();
        Coords west = new Coords(-3200, 9);
        testCoords(west, entity.getPosition());

    }
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.