Пример #1
0
 public void SetRefillPotStrategy(RefillPotStrategy refillPotStrategy)
 {
     Detach(_refillPotStrategy);
     _refillPotStrategy = refillPotStrategy;
     _refillPotStrategy.SetSubject(this);
     AddMainStreamEventHandlers(_refillPotStrategy);
     Attach(_refillPotStrategy);
 }
Пример #2
0
 public ContextStoppedState(PottingStrategy pottingStrategy, BuffStrategy buffStrategy, AttackingStrategy attackingStrategy, RefillPotStrategy refillPotStrategy, PickItemStrategy pickItemStrategy)
 {
     _pottingStrategy   = pottingStrategy;
     _buffStrategy      = buffStrategy;
     _attackingStrategy = attackingStrategy;
     _refillPotStrategy = refillPotStrategy;
     _pickItemStrategy  = pickItemStrategy;
 }