Exemplo n.º 1
0
        /// <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;
            }
        }
Exemplo n.º 2
0
 public HomeController(ICpuPlayer cpuPlayer)
 {
     _cpuPlayer = cpuPlayer;
 }
Exemplo n.º 3
0
 public HomeController(ICpuPlayer cpuPlayer)
 {
     _cpuPlayer = cpuPlayer;
 }