public override void Take(AbsPlayer playerFrom, int count) { for (int i = 0; i < count; i++) { Take(playerFrom); } }
public override void Take(AbsPlayer playerTo) { if (Score < ScoreOverflow) { playerTo.Give(this); } }
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; }
public override void Give(AbsPlayer playerTo, int count) { throw new NotImplementedException(); }
public abstract void Give(AbsPlayer playerTo, int count);
public abstract void Give(AbsPlayer playerTo);
public abstract void Take(AbsPlayer playerFrom, int count);
public abstract void Take(AbsPlayer playerFrom);