LLAgentPilot Class Reference

#include <llagentpilot.h>

Collaboration diagram for LLAgentPilot:

Collaboration graph
[legend]
List of all members.

Public Types

 STRAIGHT
 TURN
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

enum LLAgentPilot::EActionType

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::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().

void LLAgentPilot::addWaypoint ( void  )  [static]

Definition at line 260 of file llagentpilot.cpp.

References addAction(), gAgentPilot, and STRAIGHT.

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().

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().

void LLAgentPilot::saveRecord ( void  )  [static]

Definition at line 255 of file llagentpilot.cpp.

References gAgentPilot, and stopRecord().

Referenced by init_client_menu().

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

void LLAgentPilot::startPlayback ( void  )  [static]

Definition at line 265 of file llagentpilot.cpp.

References gAgentPilot, mNumRuns, and startPlayback().

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().

void LLAgentPilot::startRecord ( void  )  [static]

Definition at line 250 of file llagentpilot.cpp.

References gAgentPilot, and startRecord().

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().

void LLAgentPilot::stopPlayback ( void  )  [static]

Definition at line 271 of file llagentpilot.cpp.

References gAgentPilot, and stopPlayback().

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().

void LLAgentPilot::stopRecord (  ) 

Definition at line 125 of file llagentpilot.cpp.

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

Referenced by saveRecord().

void LLAgentPilot::updateTarget (  ) 

Definition at line 176 of file llagentpilot.cpp.

References addAction(), app_force_quit(), gAgent, LLAgent::getAutoPilot(), LLTimer::getElapsedTimeF32(), llendl, llinfos, mActions, mCurrentAction, mLastRecordTime, mNumRuns, mPlaying, mQuitAfterRuns, mRecording, mStarted, mTimer, NULL, LLTimer::reset(), sLoop, LLAgent::startAutoPilotGlobal(), LLFrameStats::startLogging(), startPlayback(), LLFrameStats::stopLogging(), stopPlayback(), STRAIGHT, and TRUE.

Referenced by idle().


Member Data Documentation

LLDynamicArray<Action> LLAgentPilot::mActions [private]

Definition at line 94 of file llagentpilot.h.

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

S32 LLAgentPilot::mCurrentAction [private]

Definition at line 83 of file llagentpilot.h.

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

F32 LLAgentPilot::mLastRecordTime [private]

Definition at line 79 of file llagentpilot.h.

Referenced by addAction(), and updateTarget().

S32 LLAgentPilot::mNumRuns

Definition at line 73 of file llagentpilot.h.

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

BOOL LLAgentPilot::mPlaying [private]

Definition at line 82 of file llagentpilot.h.

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

BOOL LLAgentPilot::mQuitAfterRuns

Definition at line 74 of file llagentpilot.h.

Referenced by saved_settings_to_globals(), and updateTarget().

BOOL LLAgentPilot::mRecording [private]

Definition at line 78 of file llagentpilot.h.

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

BOOL LLAgentPilot::mStarted [private]

Definition at line 81 of file llagentpilot.h.

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

LLTimer LLAgentPilot::mTimer [private]

Definition at line 95 of file llagentpilot.h.

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

BOOL LLAgentPilot::sLoop = TRUE [static]

Definition at line 71 of file llagentpilot.h.

Referenced by init_client_menu(), and updateTarget().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:10 2010 for Second Life Viewer by  doxygen 1.4.7