Example #1
0
    public void RecalculateWeight(Decision tDecision, float fMultipler)
    {
        m_iTotalWeight -= tDecision.iWeight;
        tDecision.CalculateWeight(fMultipler);
        m_iTotalWeight += tDecision.iWeight;

        if (tDecision.bForce)
        {
            m_bForceDecision = true;
        }
    }
Example #2
0
    public void AddDecision(Decision tDecision, float fMultipler)
    {
        if (m_tDecisions == null)
        {
            m_tDecisions = new List <Decision>();
        }

        m_tDecisions.Add(tDecision);
        tDecision.CalculateWeight(fMultipler);
        m_iTotalWeight += tDecision.iWeight;

        if (tDecision.bForce)
        {
            m_bForceDecision = true;
        }
    }