Ejemplo n.º 1
0
        public override float GetScore(BaseContext c)
        {
            object obj;

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