Arrival Class Reference

#include <arrival.h>

Collaboration diagram for Arrival:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Arrival (AICharacter *ai_ch, NodePath target_object, double distance=10.0)
 ~Arrival ()
LVecBase3f do_arrival ()
void arrival_activate ()

Public Attributes

AICharacter_ai_char
NodePath _arrival_target
double _arrival_distance
LVecBase3f _arrival_direction
bool _arrival_done

Detailed Description

Definition at line 23 of file arrival.h.


Constructor & Destructor Documentation

Arrival::Arrival ( AICharacter ai_ch,
NodePath  target_object,
double  distance = 10.0 
)

Filename : arrival.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 arrival.cxx.

Arrival::~Arrival (  ) 

Definition at line 26 of file arrival.cxx.


Member Function Documentation

void Arrival::arrival_activate (  ) 

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

Definition at line 96 of file arrival.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

LVecBase3f Arrival::do_arrival (  ) 

Function : do_arrival Description : This function performs the arrival and returns an arrival force which is used in the calculate_prioritized function. In case the steering force = 0, it resets to arrival_activate. The arrival behavior works only when seek or pursue is active. This function is not to be used by the user.

Definition at line 40 of file arrival.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 26 of file arrival.h.

Definition at line 30 of file arrival.h.

Definition at line 29 of file arrival.h.

Definition at line 31 of file arrival.h.

Definition at line 28 of file arrival.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:38 2009 for PandAI by  doxygen 1.6.1