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; }
public MaintenanceState(RoomState state) { needMaintenanced = true; Room = state.Room; Name = "Maintenance"; }