Exemplo n.º 1
0
        public override float GetScore(BaseContext ctx)
        {
            NPCHumanContext nPCHumanContext = ctx as NPCHumanContext;

            if (nPCHumanContext == null)
            {
                return(0f);
            }
            if (!IsAtLocation.Test(nPCHumanContext, this.Location))
            {
                return(0f);
            }
            return(1f);
        }
Exemplo n.º 2
0
        public override float GetScore(BaseContext ctx)
        {
            NPCHumanContext c = ctx as NPCHumanContext;

            return(c != null && IsAtLocation.Test(c, this.Location) ? 1f : 0.0f);
        }