Esempio 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);
        }
Esempio n. 2
0
 public override float GetScore(BaseContext c)
 {
     return(IsAtLastKnownEnemyLocation.Evaluate(c as NPCHumanContext) ? 1f : 0.0f);
 }