Examples of HeroTile


Examples of vindinium.Board.HeroTile

            public boolean apply(PathFinder.State state) {
                Game game = gameState.game;
                Board board = game.board;
                Tile t = board.tileAt(state.hero.position);
                if (t instanceof HeroTile) {
                    HeroTile heroTile = (HeroTile) t;
                    if (!heroTile.is(player)) {
                        Hero hero = game.findHero(heroTile.getHeroId());
                        if (hero.state.life < player.state.life - PathFinder.HP_LOSS_HERO_FIGHT && board.minesForHero(hero) > 0) {
                            return true;
                        }
                    }
                }
View Full Code Here

Examples of vindinium.Board.HeroTile

        if (!p.isValid(board) || !safe) {
            return 0;
        }
        Tile tile = board.tileAt(p);
        if (tile instanceof HeroTile) {
            HeroTile heroTile = (HeroTile) tile;
            return heroTile.is(hero) ? 0 : -HP_LOSS_HERO_FIGHT;
        }
        return 0;
    }
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.