implemented AddDestination action and evaluation of destination tags of trains.
This commit is contained in:
@@ -243,6 +243,11 @@ public class Contact extends Tile{
|
||||
public String title() {
|
||||
return t("Contact {} @ ({}, {})",addr,x,y);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return t("Contact")+"("+x+","+y+")";
|
||||
}
|
||||
|
||||
public String trigger() {
|
||||
if (trigger == null) trigger = getClass().getSimpleName()+"-"+id();
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user