Package game.view

Examples of game.view.ListScreen


     * @since InventoryStatScreen 1.0
     * @see InventoryStatModel
     */
    public InventoryEquipmentScreen(final InventoryEquipmentModel equipmentModel) {
        this.equipmentModel = equipmentModel;
        listScreen = new ListScreen(equipmentModel.getTypeEquipmentArray());
        equipmentModel.addObserver(this);
    }
View Full Code Here


        g.setColor(Color.red);
        g.drawImage(background, 0, 0, null);

        g.drawImage(listScreen.getImage(), 20, 100, null);

        final ListScreen listEquipement = new ListScreen(equipmentModel.getEquipmentsArray());

        g.drawImage(listEquipement.getImage(), 200, 100, null);

        // Si la sous liste doit etre affichée on l'affiche
        if (equipmentModel.isSousList()) {
            final ListScreen tmpListScreen = new ListScreen(equipmentModel.getListModel());
            final int position = equipmentModel.getEquipmentsArray().getCurrentPosition();
            g.drawImage(tmpListScreen.getImage(), 300, 100 + (position * g.getFontMetrics().getHeight()), null);
        }

        g.dispose();
        return image;
    }
View Full Code Here

     * @see InventorySkillModel
     */
    public InventorySkillScreen(final InventorySkillModel skillsModel) {
        this.skills = skillsModel;
        skills.addObserver(this);
        listScreen = new ListScreen(skills.getListModel());
    }
View Full Code Here

    public InventoryMenuScreen(final InventoryMenuModel inventoryModel) {
        InventoryScreenPatern.init();
        this.inventoryModel = inventoryModel;
        this.inventoryModel.addObserver(this);
        listScreen = new ListScreen(inventoryModel.getListModel());
        listFighter = new ListFighterScreen(inventoryModel.getListFightersModel());
    }
View Full Code Here

     * @see InventorySpellModel
     */
    public InventorySpellScreen(final InventorySpellModel spellsModel) {
        this.spells = spellsModel;
        spells.addObserver(this);
        listScreen = new ListScreen(spells.getListModel());
    }
View Full Code Here

    public ListPerso(final ListPersoModel listPersoModel) {
        this.listPersoModel = listPersoModel;
       
        listPersoModel.addObserver(this);

        ListScreen list = new ListScreen(new ListModel(listPersoModel.getToDisplay()));
        fightersStats.add(list);

        list = new ListScreen(new ListModel(listPersoModel.getToDisplay()));
        list.displayCursor(false);
        fightersStats.add(list);



        list = new ListScreen(new ListModel(listPersoModel.getToDisplay()));
        list.displayCursor(false);
        fightersStats.add(list);



View Full Code Here

                case MP:
                    indexStat = 2;
                    break;
            }

            fightersStats.set(indexStat, new ListScreen(new ListModel(listPersoModel.getToDisplay())));
               
            fightersStats.get(indexStat).getListModel().add(updatedStat.name().toLowerCase());
            // Pour chaque personnage
            for (final Fighter current : listPersoModel.getFightersList()) {
View Full Code Here

     * @see InventoryObjetModel
     */
    public InventoryObjetScreen(final InventoryObjetModel objetsModel) {
        this.objets = objetsModel;
        objets.addObserver(this);
        listScreen = new ListScreen(objets.getListModel());
    }
View Full Code Here

     * @see InventoryExitModel
     */
    public InventoryExitScreen(final InventoryExitModel exitModel) {
        this.exitModel = exitModel;
        this.exitModel.addObserver(this);
        listScreen = new ListScreen(exitModel.getListModel());
    }
View Full Code Here

TOP

Related Classes of game.view.ListScreen

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.