示例#1
0
 /**
  * Changes the image of the tile as long as it is not null.
  *
  * @param i the new image of the tile
  */
 public void setImage(Image i) {
   if (tileset != null) {
     tileset.overlayImage(tileImageId, i);
   } else {
     internalImage = i;
   }
 }