public Stock(AbstractMediator mediator) : base(mediator) { }
public ConcreteObject(AbstractMediator mediator) : base(mediator) { }
public abstract void Attack(int hp, AbstractMediator mediator);
public override void Attack(int hp, AbstractMediator mediator) => mediator.AttackA(hp);
public AbstractObject(AbstractMediator mediator) { this._mediator = mediator; this._mediator.AddObject(this); }
public ConcreteColleagueA(AbstractMediator mediator) : base(mediator) { }
/// <summary> /// 依赖于抽象中介者对象 /// </summary> /// <param name="Count"></param> /// <param name="Mediator"></param> public override void ChangeCount(int Count, AbstractMediator Mediator) { Mediator.BWin(Count); }
public abstract void ChangeCount(int Count, AbstractMediator Mediator);
protected AbstractColleague(AbstractMediator mediator) { Mediator = mediator; }