Version bump:
first functional version of new function mapping.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user