Example #1
0
 public Stock(AbstractMediator mediator) : base(mediator)
 {
 }
 public ConcreteObject(AbstractMediator mediator)
     : base(mediator)
 {
 }
Example #3
0
 public abstract void Attack(int hp, AbstractMediator mediator);
Example #4
0
 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)
 {
 }
Example #7
0
 /// <summary>
 /// 依赖于抽象中介者对象
 /// </summary>
 /// <param name="Count"></param>
 /// <param name="Mediator"></param>
 public override void ChangeCount(int Count, AbstractMediator Mediator)
 {
     Mediator.BWin(Count);
 }
Example #8
0
 public abstract void ChangeCount(int Count, AbstractMediator Mediator);
 protected AbstractColleague(AbstractMediator mediator)
 {
     Mediator = mediator;
 }