public override bool ChangeCount(int count, AbstractMediator mediator, MatchesRow matchesRow)
        {
            if (matchesRow.RowNumber > 0 && count == 1)
            {
                mediator.AWin(count);
                matchesRow.RowNumber -= count;
            }

            if (matchesRow.RowNumber == 0)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Exemplo n.º 2
0
 // 依赖于抽象中介者对象
 public override void changeMoneyCount(int count, AbstractMediator mediator)
 {
     mediator.AWin(count);
 }
Exemplo n.º 3
0
 public override void ChangeCount(int Count, AbstractMediator mediator)
 {
     mediator.AWin(Count);
 }