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