コード例 #1
0
 public override void Take(AbsPlayer playerFrom, int count)
 {
     for (int i = 0; i < count; i++)
     {
         Take(playerFrom);
     }
 }
コード例 #2
0
 public override void Take(AbsPlayer playerTo)
 {
     if (Score < ScoreOverflow)
     {
         playerTo.Give(this);
     }
 }
コード例 #3
0
        public Game(AbsPlayer host)
        {
            BatchStart += (() => { });
            BatchEnd   += ((s) => { });

            token = cancelTokenSource.Token;

            id          = new Random().Next();
            InitialBank = host.Money;

            players = new List <AbsPlayer>();
            players.Add(host);

            banker       = new Banker();
            banker.Money = host.Money * 2;
        }
コード例 #4
0
 public override void Give(AbsPlayer playerTo, int count)
 {
     throw new NotImplementedException();
 }
コード例 #5
0
 public abstract void Give(AbsPlayer playerTo, int count);
コード例 #6
0
 public abstract void Give(AbsPlayer playerTo);
コード例 #7
0
 public abstract void Take(AbsPlayer playerFrom, int count);
コード例 #8
0
 public abstract void Take(AbsPlayer playerFrom);