/// <summary> /// Конструктор /// </summary> public AquariumHealthDecorator(IAquariumMovableObjectEditable aquariumObject, IAquariumObjectRenderer healthRenderer, IAquariumPopulationController aquariumPopulationController, int health = INITIAL_HEALTH, int minHealthDecrease = MIN_HEALTH_DECREASE, int maxHealthDecrease = MAX_HEALTH_DECREASE) : base(aquariumObject) { _healthRenderer = healthRenderer; _aquariumPopulationController = aquariumPopulationController; Health = health; _minHealthDecrease = minHealthDecrease; _maxHealthDecrease = maxHealthDecrease; }
public AquariumObjectWrapper(IAquariumObjectRenderer healthRenderer, IAquariumPopulationController aquariumPopulationController) { _healthRenderer = healthRenderer; _aquariumPopulationController = aquariumPopulationController; }