50 if (key.size() == 1) {
52 if (
'a' <= c && c <=
'z') {
54 hotkey = c + FX::KEY_space -
' ';
#define WRITE_WARNINGF(...)
Set/unsets inductionloop override.
Command_Hotkey_TrafficLight(MSTrafficLightLogic &tll)
Constructor.
MSTrafficLightLogic & myLogic
The traffic light logic to be manipulated.
~Command_Hotkey_TrafficLight()
Destructor.
static bool registerHotkey(const std::string &key, MSTrafficLightLogic &tll)
register hotkey actions
SUMOTime execute(SUMOTime currentTime)
toggles override
A MSNet extended by some values for usage within the gui.
void addHotkey(int key, Command *press, Command *release=nullptr)
register custom hotkey action
static MSNet * getInstance()
Returns the pointer to the unique instance of MSNet (singleton).
MSTLLogicControl & getTLSControl()
Returns the tls logics control.
The parent class for traffic light logics.
virtual int getPhaseNumber() const =0
Returns the number of phases.
virtual int getCurrentPhaseIndex() const =0
Returns the current index within the program.
virtual void changeStepAndDuration(MSTLLogicControl &tlcontrol, SUMOTime simStep, int step, SUMOTime stepDuration)=0
Changes the current phase and her duration.