Example #1
0
 private void ClearVariables()
 {
     this._nObjCurHp                  = 1;
     this.mActorValue                 = null;
     this.nHpRecoveryTick             = 0;
     this.nEpRecoveryTick             = 0;
     this._soulLevel                  = 1;
     this._soulExp                    = 0;
     this._soulMaxExp                 = 0;
     this.HpChgEvent                  = null;
     this.SoulLevelChgEvent           = null;
     this.ObjValueStatistic           = null;
     this.m_goldCoinInBattle          = 0;
     this.m_goldCoinIncomeInBattle    = 0;
     this.m_MaxGoldCoinIncomeInBattle = 0;
     this.mEnergy = null;
 }
Example #2
0
        public override void Init()
        {
            base.Init();
            if (this.mActorValue == null)
            {
                this.mActorValue = new PropertyHelper();
                this.mActorValue.Init(ref this.actor.TheActorMeta);
            }
            if (this.ObjValueStatistic == null)
            {
                this.ObjValueStatistic = new ActorValueStatistic();
            }
            this.mEnergy = Singleton <EnergyCreater <BaseEnergyLogic, EnergyAttribute> > .GetInstance().Create((int)this.mActorValue.EnergyType);

            if (this.mEnergy == null)
            {
                this.mEnergy = new NoEnergy();
            }
            this.mEnergy.Init(this.actorPtr);
            this.actorHp = 0;
            this.actorEp = 0;
            this.SetHpAndEpToInitialValue(10000, 10000);
        }