#include <llagentpilot.h>
Collaboration diagram for LLAgentPilot:
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< Action > | mActions |
LLTimer | mTimer |
Classes | |
class | Action |
Definition at line 42 of file llagentpilot.h.
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.
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::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().
Definition at line 255 of file llagentpilot.cpp.
References gAgentPilot, and stopRecord().
Referenced by init_client_menu().
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 | ( | ) |
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 | ( | ) |
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().
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 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().
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] |