Artemis.Engine.Graphics.AnimationState.JumpTo C# (CSharp) Method

JumpTo() private method

private JumpTo ( int position ) : void
position int
return void
        internal void JumpTo(int position)
        {
            if (!(position >= 0 && position < NumStepActions))
            {
                throw new AnimationStateException(
                    String.Format(
                        "Invalid jump point '{0}'. Value must be between 0 and the " +
                        "number of step actions - 1 (inclusive).", position
                        )
                    );
            }
            jumpPoint = position;
        }