Esempio n. 1
0
        private static int UpdateGames(long tick)
        {
            IList allGame = GameMgr.GetAllGame();

            if (allGame != null)
            {
                foreach (BaseGame baseGame in allGame)
                {
                    try
                    {
                        baseGame.Update(tick);
                    }
                    catch (Exception exception)
                    {
                        GameMgr.log.Error("Game  updated error:", exception);
                    }
                }
                return(allGame.Count);
            }
            return(0);
        }
Esempio n. 2
0
 public CheckGameStateAction(int delay)
 {
     m_isFinished = false;
     m_tick      += GameMgr.GetTickCount() + delay;
 }
Esempio n. 3
0
 public DelayTimeAction(int delay)
 {
     m_time = GameMgr.GetTickCount() + delay;
 }
Esempio n. 4
0
 public void WaitTime(int delay)
 {
     m_waitTimer = Math.Max(m_waitTimer, GameMgr.GetTickCount() + delay);
 }