Version bump:

first functional version of new function mapping.
This commit is contained in:
Stephan Richter
2021-06-18 00:48:33 +02:00
parent 6d761005eb
commit ebaadd2a2d
9 changed files with 122 additions and 32 deletions

View File

@@ -1,5 +1,13 @@
package de.srsoftware.web4rail.functions;
public class TailLight extends DirectedFunction {
import de.srsoftware.web4rail.devices.Decoder;
import de.srsoftware.web4rail.moving.Locomotive;
public class TailLight extends DirectedFunction {
@Override
public boolean enabled(Decoder decoder) {
Locomotive loco = decoder.parent();
if (isNull(loco) || !loco.isLast()) return false;
return super.enabled(decoder);
}
}