public override float GetScore(BaseContext ctx)
        {
            NPCHumanContext nPCHumanContext = ctx as NPCHumanContext;

            if (nPCHumanContext == null)
            {
                return(0f);
            }
            if (!IsTargetAlive.Test(nPCHumanContext))
            {
                return(0f);
            }
            return(1f);
        }
Exemple #2
0
        public override float GetScore(BaseContext ctx)
        {
            NPCHumanContext c = ctx as NPCHumanContext;

            return(c != null && IsTargetAlive.Test(c) ? 1f : 0.0f);
        }