ArcadeRPG.MonsterEngine.LoadDecisionMatrix C# (CSharp) Méthode

LoadDecisionMatrix() private méthode

private LoadDecisionMatrix ( ) : void
Résultat void
        void LoadDecisionMatrix()
        {
            //Load grunt!
            decision_matrix[(int)enemyType.GRUNT, (int)actionDecision.IDLE, (int)actionFactor.HL] = .7f;//wants to flee from player

            //Load Berserker
            decision_matrix[(int)enemyType.BERSERKER, (int)actionDecision.ADVANCE, (int)actionFactor.DP] = .7f; //Wants to advance towards player

            //Load Beetle
            decision_matrix[(int)enemyType.BEETLE, (int)actionDecision.FLEE, (int)actionFactor.HL] = .7f; //Wants to run towards player

            //Insert Trooper stuff
            decision_matrix[(int)enemyType.TROOPER, (int)actionDecision.FLEE, (int)actionFactor.HL] = .8f;
            decision_matrix[(int)enemyType.TROOPER, (int)actionDecision.FIRE, (int)actionFactor.DP] = .6f;
            decision_matrix[(int)enemyType.TROOPER, (int)actionDecision.FIRE, (int)actionFactor.HL] = .2f;
            decision_matrix[(int)enemyType.TROOPER, (int)actionDecision.ADVANCE, (int)actionFactor.DP] = .4f;
        }