This commit is contained in:
Stephan Richter
2020-11-06 11:32:31 +01:00
parent 5e088deda2
commit 2f9a9d74be
25 changed files with 27 additions and 9 deletions

View File

@@ -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{
@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);