Esempio n. 1
0
        public override void Reset()
        {
            MotorSystem.Stop();
            MotorSystem = null;

            LastAttackTick = Environment.TickCount;
            LastMoveTick   = Environment.TickCount;

            Target = null;

            MotorSystem           = new Timer();
            MotorSystem.Interval += mThinkSpeed;
            MotorSystem.Elapsed  += new ElapsedEventHandler(MotorSystem_TakingDecision);
            if (mEntity.IsAlive())
            {
                MotorSystem.Start();
            }
        }
Esempio n. 2
0
 public override void Sleep()
 {
     MotorSystem.Stop(); Target = null; mEntity.TargetUID = -1; mEntity.IsInBattle = false;
 }