/// <summary> /// Region of Game's actions /// </summary> /// #region Game Static Functions // Random a location for Superman in order to randomly displaying private int GetRandomLocation(int min, int max) { return(min + RandomGenerator.Next(max)); }
// Get random Delay shooting time /// <summary> /// Make this superman delay for a certain period of times (such as any values in the domain (500-1500) miliseconds) /// </summary> private int GetRandomDelayTime() { return(GameVariables.SUPERMAN_MIN_SHOOTING_DELAY + RandomGenerator.Next(GameVariables.SUPERMAN_RANGE_SHOOTING_DELAY)); }