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