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