Exemplo n.º 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();
 }
Exemplo n.º 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);
        }
Exemplo n.º 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();
 }
Exemplo n.º 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);
        }
Exemplo n.º 5
0
 override public void EndEdit()
 {
     //throw new NotImplementedException();
     _tmpModel = null;
 }
Exemplo n.º 6
0
 override public void BeginEdit()
 {
     //throw new NotImplementedException();
     _tmpModel = this.Clone();
 }