Exemplo n.º 1
0
 /**
  * サーフェスを初期化します。
  *
  * @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);
 }
Exemplo n.º 2
0
 /**
  * 指定された ID のサーフェスを返します。
  *
  * @param id サーフェス ID
  * @return サーフェス
  * @see NanikaShell#getSurface(String)
  */
 public NanikaSurface getSurface(String id) {
   return shell.getSurface(id);
 }