示例#1
0
 private bool Validate(Play p)
 {
     if (IsFrozen) return false;
     foreach (var r in p.Restrictions)
         if (!r.Check()) return false;
     return true;
 }
示例#2
0
 public void DeclarePlay(Play play)
 {
     if (Validate(play))
     {
         QueuedCmds.Add(++_playsSoFar, play.Commands);
         if (_timer == null) Instantiate(new InputTimer());
         OnPlayQueued(new PlayEventArgs());
     }
 }