Beispiel #1
0
        public virtual void ActivateAbility(string abilityName, long commandID)
        {
            Update(GameTime.CalculatePercentOfSecond(LastUpdated));

            Host.IdleManager.RecordActivity();
            AbilityHandler.Activate(abilityName);
            Host.LastCommandID = commandID;
        }
Beispiel #2
0
        public void ActivateAbility(string abilityName)
        {
            Host.IdleManager.RecordActivity();

            _enqueuedCommands.Enqueue(() =>
            {
                AbilityHandler.Activate(abilityName);
            });
        }
Beispiel #3
0
        public virtual void ActivateAbility(string abilityName, Vector2 at, double angle, Vector2 velocity)
        {
            Host.IdleManager.RecordActivity();

            _enqueuedCommands.Enqueue(() =>
            {
                _interpolationManager.SyncMovement(at, angle, velocity);

                AbilityHandler.Activate(abilityName);
            });
        }