Package game.model

Examples of game.model.ListModel


     * Constructeur par défaut.
     *
     * @since InventorySpellModel 1.0
     */
    public InventorySpellModel() {
        listModel = new ListModel(10);
        resetList();
    }
View Full Code Here


    public InventoryMenuModel() {
        final List<String> list = InventoryMode.convertToStringList();
        list.remove(InventoryMode.MENU.toString());
        list.remove(InventoryMode.SAME.toString());
       
        listModel = new ListModel(list, list.size() + 1);
        listFightersModel = new ListFighterModel(fighterListModel);
        currentMode = null;

    }
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

     */
    public InventoryExitModel(){
        ArrayList<String> choiceList = new ArrayList<String>(2);
        Collections.addAll(choiceList, new String[]{GeneralConstant.BUNDLE.getString("NO"),GeneralConstant.BUNDLE.getString("YES")});
       
        listModel = new ListModel(choiceList, choiceList.size()+1);
    }
View Full Code Here

    /**
     * Constructeur par défaut.
     * @since InventoryObjetModel 1.0
     */
    public InventoryObjetModel(){
        listModel = new ListModel(10);
        resetCursor();
       
    }
View Full Code Here

     * Constructeur par défaut.
     *
     * @since InventorySkillModel 1.0
     */
    public InventorySkillModel() {
        listModel = new ListModel(10);
        resetList();
    }
View Full Code Here

    private final Fighter selectedFighter;

    public InventoryEquipmentModel() {
        //Initialisation de la sous liste permettant de recuperer
        //les differents equipement dans l'inventaire
        listModel = new ListModel(10);

        //On recupere l'equipement du joueur
        selectedFighter = fighterListModel.get(currentFighter);
        typeEquipmentsMap = selectedFighter.getEquipment();
View Full Code Here

TOP

Related Classes of game.model.ListModel

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.