예제 #1
0
    // Calculating Weights
    ////////////////
    private int TileWeight(Vector3 currentVector, int monsterType)
    {
        InfluenceNode tempNode = threatMap.getInfluenceNode(currentVector);

        int[] tile = tempNode.getThreat();
        int   h    = this.DistanceToPlayer(currentVector);
        int   f    = this.ThreatWeight(tile, monsterType);

        return(f + h);
    }