Package beans.serializable

Examples of beans.serializable.MapConfig


        currentBloc = tilesetList.get(0).getSubimage(0, 0, GeneralConstant.BLOC_WIDTH, GeneralConstant.BLOC_HEIGHT);
        guiModel.setLeftPanel(new MapPanel(this), new Dimension(width * GeneralConstant.BLOC_WIDTH, height * GeneralConstant.BLOC_HEIGHT));
        guiModel.setRightPanel(new ListTileSetScreen(this));

        if (config == null) {
            config = new MapConfig();
        }
        config.setBackground(background);

        Graphics2D g = createGrid(width, height);
        g.dispose();
View Full Code Here


     * Sauvegarde de la map
     * @param name
     */
    public void sauverMap(final String name) {
        if (editorModel != null) {
            final MapConfig mapConfig = editorModel.getConfig();
            GeneralConstant.serialize(GeneralConstant.SAVE_MAPCONFIG_PATH + name, editorModel.getConfig());
            Core.sauverCouches(editorModel.getLayers(), name);
            PopUpGenerator.showSucces();
        }
    }
View Full Code Here

    /**
     * Charge la map passé en parametre
     * @param configPath
     */
    public void loadMapResponse(final String configPath) {
        MapConfig config = null;
        Map<Integer, BufferedImage> couches = null;
        if (!configPath.equals("")) {
            config = (MapConfig) GeneralConstant.deSerialize(GeneralConstant.SAVE_MAPCONFIG_PATH + configPath);
            couches = Core.loadCouche(configPath);
            editorModel = new EditorModel(couches, config, this);
View Full Code Here

TOP

Related Classes of beans.serializable.MapConfig

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.