implemented AddDestination action and evaluation of destination tags of trains.

This commit is contained in:
Stephan Richter
2021-01-16 04:05:06 +01:00
parent bf234e19bb
commit 0e6069a5a1
14 changed files with 238 additions and 30 deletions

View File

@@ -151,6 +151,12 @@ public abstract class Decoupler extends Tile implements Device{
return select;
}
@Override
public String toString() {
return t("Decoupler")+"("+x+","+y+")";
}
@Override
public Tile update(HashMap<String, String> params) {
if (params.containsKey(PROTOCOL)) protocol = Protocol.valueOf(params.get(PROTOCOL));