@Override @Nonnull protected Color getParentLight() { Tile parentGraphicTile = parentTile.getTile(); if (parentGraphicTile == null) { return Color.BLACK; } return parentGraphicTile.getLocalLight(); }
@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; }
@Override public int getTargetAlpha() { Tile tileOfItem = parentTile.getTile(); int alphaOfTile = (tileOfItem == null) ? Color.MAX_INT_VALUE : tileOfItem.getTargetAlpha(); return Math.min(super.getTargetAlpha(), alphaOfTile); }