示例#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);
        }
示例#2
0
 public CheckGameStateAction(int delay)
 {
     m_isFinished = false;
     m_tick      += GameMgr.GetTickCount() + delay;
 }
示例#3
0
 public DelayTimeAction(int delay)
 {
     m_time = GameMgr.GetTickCount() + delay;
 }
示例#4
0
 public void WaitTime(int delay)
 {
     m_waitTimer = Math.Max(m_waitTimer, GameMgr.GetTickCount() + delay);
 }