示例#1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="temp"></param>
 public void Copy(TreasureOptionsWrapper temp)
 {
     if (temp == null)
     {
         return;
     }
     this._auditory = temp._auditory.Clone();
     this._gOption  = temp._gOption.Clone();
     this._user     = temp._user.Clone();
 }
示例#2
0
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public static TreasureUser Expert()
        {
            var GG = new TreasureUser
            {
                Name           = "Expert",
                FrequencyDelta = 4500,
                CurrentLevel   = 10,
                Scores         = HighScoreContainer.Default()
            };

            return(GG);
        }
示例#3
0
 public void Copy(TreasureUser tmp)
 {
     this._userType    = tmp.Type;
     this._Name        = tmp.Name;
     this._currLevel   = tmp.CurrentLevel;
     this._currLife    = tmp._currLife;
     this._showDebug   = tmp._showDebug;
     this._FqTraining  = tmp.FrequencyTraining;
     this._FqDelta     = tmp.FrequencyDelta;
     this._currScore   = tmp._currScore;
     this._currTarget  = tmp._currTarget;
     this._maxTarget   = tmp._maxTarget;
     this._nbActions   = tmp._nbActions;
     this.Pattern      = tmp.Pattern;
     this.Scores       = tmp.Scores.Clone();
     this.VisualTiming = tmp.VisualTiming.Clone();
 }
示例#4
0
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public TreasureUser Clone()
        {
            TreasureUser tmp = new TreasureUser();

            tmp._userType    = this.Type;
            tmp._Name        = this.Name;
            tmp._FqTraining  = this.FrequencyTraining;
            tmp._FqDelta     = this.FrequencyDelta;
            tmp._currLevel   = this.CurrentLevel;
            tmp._currLife    = this._currLife;
            tmp._showDebug   = this._showDebug;
            tmp._currScore   = this._currScore;
            tmp._currTarget  = this._currTarget;
            tmp._maxTarget   = this._maxTarget;
            tmp._nbActions   = this._nbActions;
            tmp.Pattern      = this.Pattern;
            tmp.Scores       = this.Scores.Clone();
            tmp.VisualTiming = this.VisualTiming.Clone();

            return(tmp);
        }
示例#5
0
 override public void EndEdit()
 {
     //throw new NotImplementedException();
     _tmpModel = null;
 }
示例#6
0
 override public void BeginEdit()
 {
     //throw new NotImplementedException();
     _tmpModel = this.Clone();
 }