Exemple #1
0
 /// <summary>
 /// Gets the value of this node for a specific instance of a task.
 /// </summary>
 /// <returns>The value.</returns>
 /// <param name="task">Task.</param>
 /// <param name="bullet">The bullet to get the value for</param>
 public float GetValue(BulletMLTask task, Bullet bullet)
 {
     //send to the equation for an answer
     return((float)NodeEquation.Solve(task.GetParamValue, bullet.MyBulletManager.Tier));
 }
Exemple #2
0
 /// <summary>
 /// Gets the value of this node for a specific instance of a task.
 /// </summary>
 /// <returns>The value.</returns>
 /// <param name="task">Task.</param>
 public float GetValue(BulletMLTask task)
 {
     // Send to the equation for an answer
     return((float)_nodeEquation.Solve(task.GetParamValue));
 }