public static Dropoff CreateNewDropoffFromDropoff(Dropoff oldDropoff, Rectangle uiPosition) { Dropoff newDropoff = new Dropoff(Dropoff.dropoffTypes[oldDropoff.dropoffProperties.type], uiPosition); newDropoff.SetContent(oldDropoff.dropoffProperties.shopTexture, oldDropoff.dropoffProperties.draggingTexture, oldDropoff.dropoffProperties.draggingTexture); return newDropoff; }
public void addDrop(Dropoff d) { if (d.IsAvaliable == false) return; if (this.Shelter == false) { this.Shelter = (d.DropoffType == DropoffType.Dropoff_Temperature_Low || d.DropoffType == DropoffType.Dropoff_Temperature_Medium || d.DropoffType == DropoffType.Dropoff_Temperature_High); this.ShelterLocation = d.Position; } if (this.Meds == false) { this.Meds = (d.DropoffType == DropoffType.Dropoff_Health_Low || d.DropoffType == DropoffType.Dropoff_Health_Medium || d.DropoffType == DropoffType.Dropoff_Health_High); this.MedsLocation = d.Position; } if (this.Water == false) { this.Water = (d.DropoffType == DropoffType.Dropoff_Water_Low || d.DropoffType == DropoffType.Dropoff_Water_Medium || d.DropoffType == DropoffType.Dropoff_Water_High); this.CleanWaterLocation = d.Position; } if (this.Food == false) { this.Food = (d.DropoffType == DropoffType.Dropoff_Food_Low || d.DropoffType == DropoffType.Dropoff_Food_Medium || d.DropoffType == DropoffType.Dropoff_Food_High); this.FoodLocation = d.Position; } //drops.Add(drop); }