public override float GetScore(BaseContext c) { object obj; if (IsAtLastKnownEnemyLocation.Evaluate(c as NPCHumanContext)) { obj = 1; } else { obj = null; } return((float)obj); }
public override float GetScore(BaseContext c) { return(IsAtLastKnownEnemyLocation.Evaluate(c as NPCHumanContext) ? 1f : 0.0f); }