Exemple #1
0
        /// <summary>
        /// Create the default rotating game tip module
        /// </summary>
        public GameTips()
        {
            tips = TipLoader.GetTips();

            mode = TipMode.FullRotating;
            Scramble(new List <string>(tips.ToArray()));
            Initialize();
        }
Exemple #2
0
        /// <summary>
        /// Create the default rotating game tip module
        /// </summary>
        public GameTips()
        {
            tips = TipLoader.GetTips();

            mode = TipMode.FullRotating;
            Scramble(new List<string>(tips.ToArray()));
            Initialize();
        }
Exemple #3
0
        /// <summary>
        /// Create a context sensitive rotating tip module that displays on death
        /// </summary>
        /// <param name="context">The game's context</param>
        public GameTips(GameContext context)
        {
            this.context = context;

            tips = TipLoader.GetTips(context);

            mode = TipMode.OnDeath;
            Scramble(new List <string>(tips.ToArray()));
            Initialize();
        }
Exemple #4
0
        /// <summary>
        /// Create a context sensitive rotating tip module that displays on death
        /// </summary>
        /// <param name="context">The game's context</param>
        public GameTips(GameContext context)
        {
            this.context = context;

            tips = TipLoader.GetTips(context);

            mode = TipMode.OnDeath;
            Scramble(new List<string>(tips.ToArray()));
            Initialize();
        }
Exemple #5
0
        /// <summary>
        /// Create a tip module with the specified tip display mode
        /// </summary>
        /// <param name="context">The game's context</param>
        /// <param name="mode">The mode to display tips with</param>
        public GameTips(GameContext context, TipMode mode)
        {
            this.context = context;

            if (mode == TipMode.FullRotating)
                tips = TipLoader.GetTips();
            else
                tips = TipLoader.GetTips(context);

            this.mode = mode;
            Scramble(new List<string>(tips.ToArray()));
            Initialize();
        }
Exemple #6
0
        /// <summary>
        /// Create a tip module with the specified tip display mode
        /// </summary>
        /// <param name="context">The game's context</param>
        /// <param name="mode">The mode to display tips with</param>
        public GameTips(GameContext context, TipMode mode)
        {
            this.context = context;

            if (mode == TipMode.FullRotating)
            {
                tips = TipLoader.GetTips();
            }
            else
            {
                tips = TipLoader.GetTips(context);
            }

            this.mode = mode;
            Scramble(new List <string>(tips.ToArray()));
            Initialize();
        }