Package net.sf.jiga.xtended.impl.game

Examples of net.sf.jiga.xtended.impl.game.XtendedModel


        gui.setBgSnd(FieldGui._soundInterface.get("SFX_SNDTRK_menu"), true);
        if (character_selection_menu.size() != FieldGui.getAvailablePlayerModels().size()) {
            character_selection_menu = new ArrayList<SelectionMenuIconCell>(FieldGui.getAvailablePlayerModels().size());
            synchronized (FieldGui.getAvailablePlayerModels()) {
                for (Iterator<XtendedModel> it = FieldGui.getAvailablePlayerModels().iterator(); it.hasNext();) {
                    XtendedModel model = it.next();
                    if (model instanceof XtendedModel) {
                        Sprite spIcon = gui.getModelIconSprite(model);
                        spIcon.setSize(FieldGui.ICONSIZE);
                        character_selection_menu.add(new SelectionMenuIconCell(gui, "", spIcon, new Runnable() {
View Full Code Here


                }, new String[]{}, new String[]{});
        return imodel;
    }

    private XtendedModel _loadTestKeyboardModel_x() {
        XtendedModel imodel = new XtendedModel("/net/sf/jiga/xtended/impl/arrows", SpritesChar.HIGH, 10, new Dimension(100, 100), new Dimension(80, 80), new int[][]{
                    {0, 0}, {1, 1}, {2, 2}, {3, 3}, {4, 4}, {5, 5}, {6, 6}, {7, 7}, {8, 8}
                }, new String[]{}, new String[]{});
        return imodel;
    }
View Full Code Here

                    model.animsID_default = _defaultAction;
                    model.setAttribute("player", (Serializable) attrs.get("player"));
                    model.clearKeyEventWrapperMap();
                    model.addKeyEventWrapperMap(fetchKEMap((id) attrs.get("player"), (String) attrs.get("eventMapTYPE")).keyEvents);
                    if (model.getAttribute("ball") instanceof XtendedModel) {
                        XtendedModel ballModel = (XtendedModel) model.getAttribute("ball");
                        ball = new Fighter(isMachine() ? new MachinePlayer(player.getPlayerNum(), player.getGui()) : new KeyboardPlayer(player.getPlayerNum(), player.getGui()), (id) attrs.get("player"), ballModel, opponents, fieldBounds, life, pos);
                    }
                    break;
                }
            }
View Full Code Here

                                    vf.addAll(findModelsInPath(directory, XtendedModel._MIME_EXT));
                                }
                                playerModelsFolder.setText("Found " + vf.size() + " models.");
                                FieldGui.clearPlayerModelsStack();
                                for (File path : vf) {
                                    XtendedModel model = (XtendedModel) InteractiveModel._importModel(path.getPath());
                                    String map = null;
                                    while (new String("").equals(map) || map == null) {
                                        map = (String) UIMessage.showSelectDialog(GamePropertiesDialog.this, "What Moves Map will this character use ? ", "Choose a map !", new String[]{Fighter.SUPERMOVEST1, Fighter.SUPERMOVEST2}, map);
                                    }
                                    model.setAttribute("eventMapTYPE", map);
                                    FieldGui.addPlayerModel(model);
                                }
                            }
                        }
                    };
View Full Code Here

            public void actionPerformed(ActionEvent e) {
                if (table.getSelectedRow() == -1) {
                    refreshTable();
                    return;
                }
                XtendedModel selectedModel = tableOfBackgroundModelsMODELSTACK.get(table.getSelectedRow());
                if (selectedModel instanceof XtendedModel) {
                    /**
                     * previous screen background layer selection
                     */
                    FieldGui.removeBackgroundModel((String) table.getValueAt(table.getSelectedRow(), tableOfBackgroundModelsSCREENNAMEcolumn), selectedModel);
                    /**
                     * new screen background layer selection
                     */
                    /**
                     *
                     */
                    XtendedModel replace = selectedModel;
                    int replaceIndex = FieldGui.layersNames.get((String) table.getValueAt(table.getSelectedRow(), tableOfBackgroundModelsLAYERcolumn));
                    while (replace instanceof XtendedModel) {
                        replace = FieldGui.addBackgroundModel((String) table.getValueAt(table.getSelectedRow(), tableOfBackgroundModelsSCREENNAMEcolumn), replace, replaceIndex++);
                    }
                    /**
 
View Full Code Here

TOP

Related Classes of net.sf.jiga.xtended.impl.game.XtendedModel

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.