ICT290 / src / scene / AIController / Goals / WanderGoalEvaluator.cpp
WanderGoalEvaluator.cpp
Raw
#include "WanderGoalEvaluator.h"
//#include "../navigation/Raven_PathPlanner.h"
//#include "../Raven_ObjectEnumerations.h"
//#include "../lua/Raven_Scriptor.h"
//#include "misc/Stream_Utility_Functions.h"
//#include "Raven_Feature.h"

#include "ArcanistGoalTypes.h"
#include "GoalThink.h"

//---------------- CalculateDesirability -------------------------------------
//-----------------------------------------------------------------------------
float WanderGoalEvaluator::CalculateDesirability(Vehicle*) {
    float Desirability = 0.05f;

    Desirability *= m_CharacterBias;

    return Desirability;
}

//----------------------------- SetGoal ---------------------------------------
//-----------------------------------------------------------------------------
void WanderGoalEvaluator::SetGoal(Vehicle* Bot) {
    Bot->getBrain()->AddGoalWander();
}