
m_pOwner->GetSteering()->WanderOn();
}
The Activate method simply turns on the wander steering behavior (see
Chapter 3 if you need a refresher) and sets the goal’s status to
active.
int Goal_Wander::Process()
{
//if status is inactive, call Activate() and set status to active
ActivateIfInactive();
return m_Status;
}
Goal_Wander::Process is just as straightforward. ActivateIfInactive is
called at the beginning of every goal’s
Process logic. If a goal’s status is
inactive (as it always will be the first time Process is called because
m_Status is set to inactive in the constructor), the Activate method is
called, thereby initializing the goal.
Finally, the
Terminate ...