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