Exemplo n.º 1
0
        public NotCleanedState(RoomState state)
        {
            this.Name = "Not cleaned";
            this.Room = state.Room;

            this.needMaintenanced = state.needMaintenanced;
            cleaned = false;
        }
 public OccupiedState(RoomState state)
 {
     this.Name             = "Occupied";
     this.room             = state.Room;
     this.cleaned          = false;
     this.needMaintenanced = state.needMaintenanced;
     StateChangeCheck();
 }
 public AvailableState(RoomState state) : this(state.Room)
 {
     needMaintenanced = state.needMaintenanced;
 }
Exemplo n.º 4
0
 public MaintenanceState(RoomState state)
 {
     needMaintenanced = true;
     Room             = state.Room;
     Name             = "Maintenance";
 }