implemented storing of routes
This commit is contained in:
@@ -7,7 +7,7 @@ import de.srsoftware.tools.Tag;
|
||||
public abstract class Contact extends Tile{
|
||||
|
||||
private boolean active = false;
|
||||
|
||||
private String trigger = null;
|
||||
|
||||
public void activate() throws IOException {
|
||||
active = true;
|
||||
@@ -41,4 +41,10 @@ public abstract class Contact extends Tile{
|
||||
plan.stream("place "+tag);
|
||||
}
|
||||
|
||||
|
||||
public String trigger() {
|
||||
if (trigger == null) trigger = getClass().getSimpleName()+"-"+id();
|
||||
return trigger;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user