⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bshmaploader.java.svn-base

📁 一个JAVA程序员的游戏
💻 SVN-BASE
字号:
/*
 * BshMapLoader.java
 *
 * Created on 3. Januar 2007, 21:58
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package kanjitori.map;

import bsh.Interpreter;
import kanjitori.map.Map;
import kanjitori.map.MapLoader;

/**
 *
 * @author Pirx
 */
public class BshMapLoader implements MapLoader {
    
   
    /** Creates a new instance of BshMapLoader */
    public BshMapLoader() {
        
    }
 
    public Map load(String mapFileName) {
        try {
            Interpreter i = new Interpreter();
            i.source(mapFileName);
            return (Map) i.get("map");
        } catch (Exception ex) {
            ex.printStackTrace();
        }
        return null;
    }    
    
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -