예제 #1
0
 /**
  * Set an individual scale dependent on a location. The new scale value is directly applied to the
  * item.
  *
  * @param locX the first part of the coordinate
  * @param locY the second part of the coordinate
  */
 private void setScale(int locX, int locY) {
   if (getTemplate().getItemInfo().hasVariance()) {
     setScale(
         MapVariance.getItemScaleVariance(locX, locY, getTemplate().getItemInfo().getVariance()));
   }
 }
예제 #2
0
 /**
  * Determine the graphical variant from a coordinate and set the needed frame on this.
  *
  * @param locX the first part of the coordinate
  * @param locY the second part of the coordinate
  */
 private void setVariant(int locX, int locY) {
   if (variants) {
     setFrame(MapVariance.getItemFrameVariance(locX, locY, getTemplate().getFrames()));
   }
 }