#include <llagentpilot.h>
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< 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::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::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::stopRecord | ( | ) |
Definition at line 125 of file llagentpilot.cpp.
References addAction(), FALSE, LLControlGroup::getString(), gSavedSettings, mRecording, save(), and STRAIGHT.
Referenced by saveRecord().
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::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::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::updateTarget | ( | ) |
Definition at line 176 of file llagentpilot.cpp.
References addAction(), LLAppViewer::forceQuit(), gAgent, LLAgent::getAutoPilot(), LLTimer::getElapsedTimeF32(), LLAppViewer::instance(), 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 LLAppViewer::idle().
void LLAgentPilot::startRecord | ( | void * | ) | [static] |
Definition at line 250 of file llagentpilot.cpp.
References startRecord().
void LLAgentPilot::addWaypoint | ( | void * | ) | [static] |
Definition at line 260 of file llagentpilot.cpp.
References addAction(), and STRAIGHT.
void LLAgentPilot::saveRecord | ( | void * | ) | [static] |
Definition at line 255 of file llagentpilot.cpp.
References stopRecord().
Referenced by init_client_menu().
void LLAgentPilot::startPlayback | ( | void * | ) | [static] |
Definition at line 265 of file llagentpilot.cpp.
References mNumRuns, and startPlayback().
void LLAgentPilot::stopPlayback | ( | void * | ) | [static] |
Definition at line 271 of file llagentpilot.cpp.
References stopPlayback().
void LLAgentPilot::setAutopilotTarget | ( | const S32 | id | ) | [private] |
BOOL LLAgentPilot::sLoop = TRUE [static] |
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().
BOOL LLAgentPilot::mRecording [private] |
Definition at line 78 of file llagentpilot.h.
Referenced by LLAgentPilot(), startRecord(), stopRecord(), and updateTarget().
F32 LLAgentPilot::mLastRecordTime [private] |
BOOL LLAgentPilot::mStarted [private] |
Definition at line 81 of file llagentpilot.h.
Referenced by LLAgentPilot(), startPlayback(), and updateTarget().
BOOL LLAgentPilot::mPlaying [private] |
Definition at line 82 of file llagentpilot.h.
Referenced by LLAgentPilot(), startPlayback(), stopPlayback(), and updateTarget().
S32 LLAgentPilot::mCurrentAction [private] |
Definition at line 83 of file llagentpilot.h.
Referenced by startPlayback(), stopPlayback(), and updateTarget().
LLDynamicArray<Action> LLAgentPilot::mActions [private] |
Definition at line 94 of file llagentpilot.h.
Referenced by addAction(), load(), save(), startPlayback(), startRecord(), and updateTarget().
LLTimer LLAgentPilot::mTimer [private] |
Definition at line 95 of file llagentpilot.h.
Referenced by addAction(), startPlayback(), startRecord(), stopPlayback(), and updateTarget().