/// <inheritdoc/> public void Tick() { foreach (var item in this.GameObjects) { item.Tick(); } foreach (var item in this.Players) { ICpuPlayer cPTemp = item as ICpuPlayer; if (cPTemp != null) { cPTemp.MakeDecision(this, this); } } foreach (var item in this.Messages) { item.Tick(); } this.GameOverCheck(); this.TickCount++; if ((double)this.TickCount % this.scoretime == 0 && this.Score != 0) { this.Score -= this.minusscore; } }
public HomeController(ICpuPlayer cpuPlayer) { _cpuPlayer = cpuPlayer; }