Evade Class Reference

#include <evade.h>

Collaboration diagram for Evade:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Evade (AICharacter *ai_ch, NodePath target_object, double panic_distance, double relax_distance, float evade_wt)
 ~Evade ()
LVecBase3f do_evade ()
void evade_activate ()

Public Attributes

AICharacter_ai_char
NodePath _evade_target
float _evade_weight
LVecBase3f _evade_direction
double _evade_distance
double _evade_relax_distance
bool _evade_done
bool _evade_activate_done

Detailed Description

Definition at line 23 of file evade.h.


Constructor & Destructor Documentation

Evade::Evade ( AICharacter ai_ch,
NodePath  target_object,
double  panic_distance,
double  relax_distance,
float  evade_wt 
)

Filename : evade.cxx Created by : Deepak, John, Navin Date : 24 Oct 09

PANDA3D SOFTWARE Copyright(c) Carnegie Mellon University. All rights reserved.

All use of this software is subjest to the terms of the revised BSD license. You should have received a copy of this license along with this source code in a file named "LICENSE"

Definition at line 17 of file evade.cxx.

Evade::~Evade (  ) 

Definition at line 30 of file evade.cxx.


Member Function Documentation

LVecBase3f Evade::do_evade (  ) 

Function : do_evade Description : This function performs the evade and returns an evade force which is used in the calculate_prioritized function. In case the AICharacter is past the (panic + relax) distance, it resets to evade_activate. This function is not to be used by the user.

Definition at line 44 of file evade.cxx.

Here is the call graph for this function:

void Evade::evade_activate (  ) 

Function : evade_activate Description : This function checks for whether the target is within the panic distance. When this is true, it calls the do_evade function and sets the evade direction. This function is not to be used by the user.

Definition at line 77 of file evade.cxx.

Here is the call graph for this function:


Member Data Documentation

Definition at line 26 of file evade.h.

Definition at line 34 of file evade.h.

Definition at line 30 of file evade.h.

Definition at line 31 of file evade.h.

Definition at line 33 of file evade.h.

Definition at line 32 of file evade.h.

Definition at line 28 of file evade.h.

Definition at line 29 of file evade.h.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator

Generated on Tue Nov 3 22:34:39 2009 for PandAI by  doxygen 1.6.1