Example #1
0
        /// <summary>
        ///     Creates a new action guessing all the non-given values from the type
        /// </summary>
        /// <param name="type"></param>
        /// <param name="name"></param>
        /// <param name="threshold"></param>
        /// <param name="points"></param>
        /// --------------------------------------------------------------------------------------------------
        public RankingAction(RankingActionType type, string name, int threshold, short points)
        {
            int category = ((short)type) / 1000;

            Init((short)type, name, (RankingActionCategory)category, threshold, points);
        }
 /// <summary>
 ///     Creates a new action guessing all the non-given values from the type
 /// </summary>
 /// <param name="type"></param>
 /// <param name="name"></param>
 /// <param name="threshold"></param>
 /// <param name="points"></param>
 /// --------------------------------------------------------------------------------------------------
 public RankingAction(RankingActionType type, string name, int threshold, short points)
 {
     int category = ((short)type) / 1000;
     Init((short)type, name, (RankingActionCategory)category, threshold, points);
 }