Example #1
0
 /// <summary>
 /// Gets Prediction result
 /// </summary>
 /// <param name="input">Neccesary inputs for prediction calculations</param>
 /// <returns>Prediction result as <see cref="Prediction.Result"/></returns>
 public static Prediction.Result GetPrediction(Prediction.Input input)
 {
     return(GetPrediction(input.Target, input.SpellWidth, input.SpellDelay, input.SpellMissileSpeed, input.SpellRange, input.SpellCollisionable, input.Path, input.AvgReactionTime, input.LastMovChangeTime, input.AvgPathLenght, input.LastAngleDiff, input.From.ToVector2(), input.RangeCheckFrom.ToVector2()));
 }
Example #2
0
 /// <summary>
 /// Gets Prediction result
 /// </summary>
 /// <param name="input">Neccesary inputs for prediction calculations</param>
 /// <param name="vectorLenght">Vector Lenght</param>
 /// <returns>Prediction result as <see cref="Prediction.Vector.Result"/></returns>
 public static Result GetPrediction(Prediction.Input input, float vectorLenght)
 {
     return(GetPrediction(input.Target, input.SpellWidth, input.SpellDelay, input.SpellMissileSpeed, input.SpellRange, vectorLenght, input.Path, input.AvgReactionTime, input.LastMovChangeTime, input.AvgPathLenght, input.RangeCheckFrom.ToVector2()));
 }