You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
531 B
25 lines
531 B
package de.srsoftware.web4rail.tiles; |
|
|
|
import java.util.List; |
|
|
|
import de.srsoftware.web4rail.Connector; |
|
|
|
public class Shadow extends Tile{ |
|
|
|
private Tile overlay; |
|
|
|
@Override |
|
public List<Connector> connections(String from) { |
|
if (overlay instanceof StretchableTile) return overlay.connections(from); |
|
if (overlay instanceof Cross) return ((Cross)overlay).offsetConnections(from); |
|
return super.connections(from); |
|
} |
|
|
|
public Shadow(Tile overlay) { |
|
this.overlay = overlay; |
|
} |
|
|
|
public Tile overlay() { |
|
return overlay; |
|
} |
|
}
|
|
|