25 lines
385 B
D
25 lines
385 B
D
|
module command.remoteundo.garagedoorupcommand;
|
||
|
|
||
|
import command.remoteundo.command;
|
||
|
import command.remoteundo.garagedoor;
|
||
|
|
||
|
class GarageDoorUpCommand : Command
|
||
|
{
|
||
|
GarageDoor garageDoor;
|
||
|
|
||
|
this(GarageDoor garageDoor)
|
||
|
{
|
||
|
this.garageDoor = garageDoor;
|
||
|
}
|
||
|
|
||
|
void execute()
|
||
|
{
|
||
|
garageDoor.up();
|
||
|
}
|
||
|
|
||
|
void undo()
|
||
|
{
|
||
|
garageDoor.down();
|
||
|
}
|
||
|
}
|