public static void ExtractEffect(IShip targetShip, BonusType type)
 {
     switch (type)
     {
         case BonusType.Freeze:
             targetShip.Freeze();
             break;
         case BonusType.Damage:
             targetShip.BonusDamage();
             break;
         case BonusType.Wind:
             targetShip.Wind();
             break;
         case BonusType.Null:
             break;
         //default:
         //    throw new ArgumentOutOfRangeException(nameof(type), type, null);
     }
 }
Beispiel #2
0
        public static void ExtractEffect(IShip targetShip, BonusType type)
        {
            switch (type)
            {
            case BonusType.Freeze:
                targetShip.Freeze();
                break;

            case BonusType.Damage:
                targetShip.BonusDamage();
                break;

            case BonusType.Wind:
                targetShip.Wind();
                break;

            case BonusType.Null:
                break;
                //default:
                //    throw new ArgumentOutOfRangeException(nameof(type), type, null);
            }
        }