Пример #1
0
        public static SpeedComponent Create(int baseSpeed)
        {
            var component = new SpeedComponent();

            component.BaseSpeed = baseSpeed;

            return(component);
        }
Пример #2
0
        public void EndTurn(SpeedComponent speedComponent, StatusEffectTrackerComponent statusEffectTrackerComponent)
        {
            int currentTick = this.NextTurnAtTick;

            if (statusEffectTrackerComponent != null)
            {
                statusEffectTrackerComponent.UpdateStatusEffectTimers(currentTick);
            }

            this.LastTurnAtTick = currentTick;
            this.NextTurnAtTick = currentTick + speedComponent.Speed;
        }