Example #1
0
 @Override
 @Nonnull
 protected Color getParentLight() {
   Tile parentGraphicTile = parentTile.getTile();
   if (parentGraphicTile == null) {
     return Color.BLACK;
   }
   return parentGraphicTile.getLocalLight();
 }
Example #2
0
 @Override
 protected boolean isMouseInInteractionRect(int mouseX, int mouseY) {
   if (super.isMouseInInteractionRect(mouseX, mouseY)) {
     if (isCurrentlyEffectedByFadingCorridor()) {
       Tile tile = parentTile.getTile();
       return (tile != null) && tile.isMouseInInteractionRect(mouseX, mouseY);
     }
     return true;
   }
   return false;
 }
Example #3
0
 @Override
 public int getTargetAlpha() {
   Tile tileOfItem = parentTile.getTile();
   int alphaOfTile = (tileOfItem == null) ? Color.MAX_INT_VALUE : tileOfItem.getTargetAlpha();
   return Math.min(super.getTargetAlpha(), alphaOfTile);
 }