示例#1
0
 public void AddBed(Bed bed)
 {
     if (bed != null)
     {
         Beds.Add(bed);
     }
 }
示例#2
0
        public void AddBeds(int nr)
        {
            Point[] bedLocations = new Point[] { new Point((int)(Location.X + SIZE / 10), (int)(Location.Y + SIZE / 10)),
                                                 new Point((int)(Location.X + SIZE - SIZE / 10 - Patient.SIZE), (int)(Location.Y + SIZE / 10)),
                                                 new Point((int)(Location.X + SIZE / 10), (int)(Location.Y + SIZE - SIZE / 10 - Patient.SIZE)),
                                                 new Point((int)(Location.X + SIZE - SIZE / 10 - Patient.SIZE), (int)(Location.Y + SIZE - SIZE / 5 - Patient.SIZE)) };

            for (int i = 0; i < nr; i++)
            {
                // for testing
                Bed bed = new Bed(Injury.GetColor(Category), bedLocations[i], this);
                Beds.Add(bed);
            }
        }
 public void Add(Vector3Int position, BedState bedState)
 {
     Beds.Add(position, bedState);
 }
 public Room WithBeds(BedKind kind, int quantity)
 {
     Beds.Add(new BedAllocation(kind, quantity));
     return(this);
 }