Esempio n. 1
0
 public async Task AutoGenerationInterval(int interval)
 {
     if (interval < 200 || interval > 5000)
     {
         throw new HubException("Your interval is not within the correct range");
     }
     await Clients.Others.SendAsync("ChangeIntervalSlider", GameOfLife.AutoGeneration(interval));
 }
Esempio n. 2
0
 public async Task AutoGenerationToggle()
 {
     await Clients.All.SendAsync("ChangePlayStopButton", GameOfLife.AutoGeneration());
 }
Esempio n. 3
0
 public async Task AutoGeneration(bool playStop)
 {
     await Clients.All.SendAsync("ChangePlayStopButton", GameOfLife.AutoGeneration(playStop));
 }
Esempio n. 4
0
        /* Game State Communication Functions End */


        /* Game Control Functions Start */
        public async Task NextGeneration()
        {
            cells = GameOfLife.nextGeneration(cells);
            await Clients.All.SendAsync("UpdateCells", cells);
        }