/** * サーフェスを初期化します。 * * @param shell シェル * @param id サーフェス ID */ public NanikaSurface(NanikaShell shell, String id) { this.shell = shell; this.id = id; String name = String.format("surface%s.png", id); BufferedImage image = shell.readImage(name); setImage(image); }