Пример #1
0
        /// <summary>
        ///   Process this actors move.
        /// </summary>
        /// <param name = "absoluteMilliseconds">The absolute game time.</param>
        public override void ExecuteTick(TimeSpan absoluteMilliseconds)
        {
            // Process the tick, returns the next action type being performed;
            string actionType = _state.Tick();
            double ticks      = ActionTimes.Instance.GetActionTime(actionType).TotalMilliseconds;

            ticks = ActionProficiency[actionType] * ticks;
            SetUpNextTick(new TimeSpan(0, 0, 0, 0, (int)ticks));
        }