public Device() { State = new DeviceIdleState(this); Door = new Door(); Door.State = new DoorClosedState(Door); }
public DoorUnlockedState(Door door) : base(door) { }
public DoorOpenState(Door door) : base(door) { }
public DoorClosedState(Door door) : base(door) { }
protected DoorState(Door door) { Door = door; }