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