Package org.drools.examples.wumpus

Examples of org.drools.examples.wumpus.Hero




    public GameUI() {
        this.gameData = new GameView();
        this.gameData.init( new Cell[5][5], new SensorsView(), new ArrayList<Pitt>(), new Wumpus( 2, 1 ), new Gold( 3, 1 ), new Hero( 0, 0 ) );
    }
View Full Code Here


                                    image = javax.imageio.ImageIO.read( getClass().getResource( "dead_wumpus.png" ) );
                                }
                            } else if ( row == gameData.getGold().getRow() && col == gameData.getGold().getCol() ) {
                                image = javax.imageio.ImageIO.read( getClass().getResource( "g.png" ) );
                            } else if ( row == gameData.getHero().getRow() && col == gameData.getHero().getCol() ) {
                                Hero hero = gameData.getHero();
                                switch( hero.getDirection() ) {
                                    case UP:
                                        image = javax.imageio.ImageIO.read( getClass().getResource( "hero_up.png" ) );
                                        break;
                                    case DOWN:
                                        image = javax.imageio.ImageIO.read( getClass().getResource( "hero_down.png" ) );
View Full Code Here

TOP

Related Classes of org.drools.examples.wumpus.Hero

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.