Beispiel #1
0
        public void AddDeed(OwnerDeed deed)
        {
            switch (deed)
            {
            case StationDeed station:
                IncreaseStationMultiplier();
                break;

            case UtilityDeed utility:
                IncreaseUtilityMultiplier();
                break;
            }

            deed.SetOwner(this);
            _ownership.AddDeed(deed);
        }
Beispiel #2
0
 public void AddDeed(OwnerDeed deed)
 {
     _ownedProperties.Add(deed.Name, deed);
 }
Beispiel #3
0
 public void AddDeed(OwnerDeed deed)
 {
     _deeds.Add(deed.Name, deed);
 }