Examples of placeTowerPiece()


Examples of com.jcloisterzone.game.phase.Phase.placeTowerPiece()

        EventCatchingGame game = createGame("/saved-games/actionPhase.jcz");
        assertTrue(game.getPhase() instanceof ActionPhase);

        String s1 = snapshotGame(game);
        Phase phase = game.getPhase();
        phase.placeTowerPiece(new Position(1, -2));
        //assertEquals(2, game.events.size()); //TowerIncreasedEvent, SelectActionEvent

        TowerIncreasedEvent ev = (TowerIncreasedEvent) game.events.get(0);
        ev.undo(game);
        game.setPhase(phase);
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.