@ -29,6 +30,7 @@ Click on a name to edit the entry. : Klicke auf einen Namen, um einen Eintrag zu
@@ -29,6 +30,7 @@ Click on a name to edit the entry. : Klicke auf einen Namen, um einen Eintrag zu
ConditionalAction : bedingte Aktion
Conditions : Bedingungen
Condition type\: : Bedingungs-Typ:
Control : Steuerung
Control unit : Zentrale
Current location\: : Aktueller Ort:
[Click here to select block!] : [Hier klicken, um Block auszuwählen!]
@ -39,6 +41,7 @@ Command to send to control unit\: : Kommando, welches zur Zentrale gesendet werd
@@ -39,6 +41,7 @@ Command to send to control unit\: : Kommando, welches zur Zentrale gesendet werd
Create action : Aktion erzeugen
Current location : Aufenthaltsort
Current location\: {} : Aufenthaltsort: {}
Current velocity\: {} km/h : Aktuelle Geschwindigkeit: {} km/h
@ -80,10 +80,6 @@ public class Car extends BaseClass implements Comparable<Car>{
@@ -80,10 +80,6 @@ public class Car extends BaseClass implements Comparable<Car>{
returnt("Unknown action: {}",params.get(ACTION));
}
protectedTagcockpit(){
returnnull;
}
publicstaticCarget(Objectid){
returncars.get(Integer.parseInt(""+id));// try to get by id
}
@ -194,12 +190,9 @@ public class Car extends BaseClass implements Comparable<Car>{
@@ -194,12 +190,9 @@ public class Car extends BaseClass implements Comparable<Car>{
returnform;
}
publicObjectproperties(){
publicWindowproperties(){
Windowwin=newWindow("car-props",t("Properties of {}",this));
@ -208,9 +201,7 @@ public class Car extends BaseClass implements Comparable<Car>{
@@ -208,9 +201,7 @@ public class Car extends BaseClass implements Comparable<Car>{
@ -75,46 +76,49 @@ public class Locomotive extends Car implements Constants,Device{
@@ -75,46 +76,49 @@ public class Locomotive extends Car implements Constants,Device{
@ -230,6 +234,14 @@ public class Locomotive extends Car implements Constants,Device{
@@ -230,6 +234,14 @@ public class Locomotive extends Car implements Constants,Device{
returnwin;
}
@Override
publicWindowproperties(){
Windowwin=super.properties();
Tagcockpit=cockpit(this);
win.children().insertElementAt(cockpit,2);
returnwin;
}
@Override
publicFormpropertyForm(){
Formform=super.propertyForm();
@ -277,6 +289,32 @@ public class Locomotive extends Car implements Constants,Device{
@@ -277,6 +289,32 @@ public class Locomotive extends Car implements Constants,Device{