LLAgentPilot Class Reference

#include <llagentpilot.h>

Collaboration diagram for LLAgentPilot:

Collaboration graph
[legend]

List of all members.

Public Types

enum  EActionType { STRAIGHT, TURN }

Public Member Functions

 LLAgentPilot ()
virtual ~LLAgentPilot ()
void load (const char *filename)
void save (const char *filename)
void startRecord ()
void stopRecord ()
void addAction (enum EActionType action)
void startPlayback ()
void stopPlayback ()
void updateTarget ()

Static Public Member Functions

static void startRecord (void *)
static void addWaypoint (void *)
static void saveRecord (void *)
static void startPlayback (void *)
static void stopPlayback (void *)

Public Attributes

S32 mNumRuns
BOOL mQuitAfterRuns

Static Public Attributes

static BOOL sLoop = TRUE

Private Member Functions

void setAutopilotTarget (const S32 id)

Private Attributes

BOOL mRecording
F32 mLastRecordTime
BOOL mStarted
BOOL mPlaying
S32 mCurrentAction
LLDynamicArray< ActionmActions
LLTimer mTimer

Classes

class  Action


Detailed Description

Definition at line 42 of file llagentpilot.h.


Member Enumeration Documentation

Enumerator:
STRAIGHT 
TURN 

Definition at line 45 of file llagentpilot.h.


Constructor & Destructor Documentation

LLAgentPilot::LLAgentPilot (  ) 

Definition at line 48 of file llagentpilot.cpp.

References FALSE, mNumRuns, mPlaying, mRecording, and mStarted.

LLAgentPilot::~LLAgentPilot (  )  [virtual]

Definition at line 56 of file llagentpilot.cpp.


Member Function Documentation

void LLAgentPilot::load ( const char *  filename  ) 

Definition at line 60 of file llagentpilot.cpp.

References i, lldebugs, llendl, llifstream, llinfos, mActions, LLVector3d::mdV, LLAgentPilot::Action::mTarget, LLAgentPilot::Action::mTime, LLAgentPilot::Action::mType, S32, VX, VY, and VZ.

Referenced by idle_startup().

Here is the caller graph for this function:

void LLAgentPilot::save ( const char *  filename  ) 

Definition at line 95 of file llagentpilot.cpp.

References i, llendl, llinfos, llofstream, mActions, S32, VX, VY, and VZ.

Referenced by stopRecord().

Here is the caller graph for this function:

void LLAgentPilot::startRecord (  ) 

Definition at line 117 of file llagentpilot.cpp.

References addAction(), mActions, mRecording, mTimer, LLTimer::reset(), STRAIGHT, and TRUE.

Referenced by init_client_menu(), and startRecord().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLAgentPilot::stopRecord (  ) 

Definition at line 125 of file llagentpilot.cpp.

References addAction(), FALSE, LLControlGroup::getString(), gSavedSettings, mRecording, save(), and STRAIGHT.

Referenced by saveRecord().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLAgentPilot::addAction ( enum EActionType  action  ) 

Definition at line 132 of file llagentpilot.cpp.

References gAgent, LLTimer::getElapsedTimeF32(), LLAgent::getPositionGlobal(), llendl, llinfos, mActions, mLastRecordTime, LLAgentPilot::Action::mTarget, LLAgentPilot::Action::mTime, mTimer, and LLAgentPilot::Action::mType.

Referenced by addWaypoint(), startRecord(), stopRecord(), and updateTarget().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLAgentPilot::startPlayback (  ) 

Definition at line 143 of file llagentpilot.cpp.

References FALSE, gAgent, llendl, llinfos, mActions, mCurrentAction, mPlaying, mStarted, mTimer, LLTimer::reset(), LLAgent::startAutoPilotGlobal(), and TRUE.

Referenced by idle_startup(), init_client_menu(), startPlayback(), and updateTarget().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLAgentPilot::stopPlayback (  ) 

Definition at line 165 of file llagentpilot.cpp.

References FALSE, gAgent, mCurrentAction, mPlaying, mTimer, LLTimer::reset(), and LLAgent::stopAutoPilot().

Referenced by init_client_menu(), stopPlayback(), and updateTarget().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLAgentPilot::updateTarget (  ) 

void LLAgentPilot::startRecord ( void *   )  [static]

Definition at line 250 of file llagentpilot.cpp.

References startRecord().

Here is the call graph for this function:

void LLAgentPilot::addWaypoint ( void *   )  [static]

Definition at line 260 of file llagentpilot.cpp.

References addAction(), and STRAIGHT.

Here is the call graph for this function:

void LLAgentPilot::saveRecord ( void *   )  [static]

Definition at line 255 of file llagentpilot.cpp.

References stopRecord().

Referenced by init_client_menu().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLAgentPilot::startPlayback ( void *   )  [static]

Definition at line 265 of file llagentpilot.cpp.

References mNumRuns, and startPlayback().

Here is the call graph for this function:

void LLAgentPilot::stopPlayback ( void *   )  [static]

Definition at line 271 of file llagentpilot.cpp.

References stopPlayback().

Here is the call graph for this function:

void LLAgentPilot::setAutopilotTarget ( const S32  id  )  [private]


Member Data Documentation

BOOL LLAgentPilot::sLoop = TRUE [static]

Definition at line 71 of file llagentpilot.h.

Referenced by init_client_menu(), and updateTarget().

Definition at line 73 of file llagentpilot.h.

Referenced by LLAgentPilot(), settings_to_globals(), startPlayback(), and updateTarget().

Definition at line 74 of file llagentpilot.h.

Referenced by settings_to_globals(), and updateTarget().

Definition at line 78 of file llagentpilot.h.

Referenced by LLAgentPilot(), startRecord(), stopRecord(), and updateTarget().

Definition at line 79 of file llagentpilot.h.

Referenced by addAction(), and updateTarget().

Definition at line 81 of file llagentpilot.h.

Referenced by LLAgentPilot(), startPlayback(), and updateTarget().

Definition at line 82 of file llagentpilot.h.

Referenced by LLAgentPilot(), startPlayback(), stopPlayback(), and updateTarget().

Definition at line 83 of file llagentpilot.h.

Referenced by startPlayback(), stopPlayback(), and updateTarget().

Definition at line 94 of file llagentpilot.h.

Referenced by addAction(), load(), save(), startPlayback(), startRecord(), and updateTarget().

Definition at line 95 of file llagentpilot.h.

Referenced by addAction(), startPlayback(), startRecord(), stopPlayback(), and updateTarget().


The documentation for this class was generated from the following files:

Generated on Fri May 16 08:38:52 2008 for SecondLife by  doxygen 1.5.5