patterns/command/simpleremotecontrol/simpleremotecontrol.d

19 lines
289 B
D

module command.simpleremotecontrol.simpleremotecontrol;
import command.simpleremotecontrol.command;
class SimpleRemoteControl
{
Command slot;
void setCommand(Command command)
{
slot = command;
}
void buttonWasPressed()
{
slot.execute();
}
}