|
|
|
@ -13,6 +13,7 @@ public class CrossH extends Cross{
@@ -13,6 +13,7 @@ public class CrossH extends Cross{
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public Map<Connector, State> connections(Direction from) { |
|
|
|
|
if (isNull(from)) return new HashMap<>(); |
|
|
|
|
switch (from) { |
|
|
|
|
case NORTH: |
|
|
|
|
return Map.of(new Connector(x+1,y+1,Direction.NORTH),State.UNDEF); |
|
|
|
@ -30,6 +31,7 @@ public class CrossH extends Cross{
@@ -30,6 +31,7 @@ public class CrossH extends Cross{
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public Map<Connector,State> offsetConnections(Direction from) { |
|
|
|
|
if (isNull(from)) return new HashMap<>(); |
|
|
|
|
switch (from) { |
|
|
|
|
case NORTH: |
|
|
|
|
return Map.of(new Connector(x,y+1,Direction.NORTH),State.UNDEF); |
|
|
|
|