aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llagent.h
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llagent.h')
-rw-r--r--linden/indra/newview/llagent.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/linden/indra/newview/llagent.h b/linden/indra/newview/llagent.h
index 1ea580e..f87bb02 100644
--- a/linden/indra/newview/llagent.h
+++ b/linden/indra/newview/llagent.h
@@ -12,12 +12,12 @@
12 * ("GPL"), unless you have obtained a separate licensing agreement 12 * ("GPL"), unless you have obtained a separate licensing agreement
13 * ("Other License"), formally executed by you and Linden Lab. Terms of 13 * ("Other License"), formally executed by you and Linden Lab. Terms of
14 * the GPL can be found in doc/GPL-license.txt in this distribution, or 14 * the GPL can be found in doc/GPL-license.txt in this distribution, or
15 * online at http://secondlife.com/developers/opensource/gplv2 15 * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2
16 * 16 *
17 * There are special exceptions to the terms and conditions of the GPL as 17 * There are special exceptions to the terms and conditions of the GPL as
18 * it is applied to this Source Code. View the full text of the exception 18 * it is applied to this Source Code. View the full text of the exception
19 * in the file doc/FLOSS-exception.txt in this software distribution, or 19 * in the file doc/FLOSS-exception.txt in this software distribution, or
20 * online at http://secondlife.com/developers/opensource/flossexception 20 * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception
21 * 21 *
22 * By copying, modifying or distributing this software, you acknowledge 22 * By copying, modifying or distributing this software, you acknowledge
23 * that you have read and understood your obligations described above, 23 * that you have read and understood your obligations described above,
@@ -169,7 +169,8 @@ public:
169 void setRegion(LLViewerRegion *regionp); 169 void setRegion(LLViewerRegion *regionp);
170 LLViewerRegion *getRegion() const; 170 LLViewerRegion *getRegion() const;
171 const LLHost& getRegionHost() const; 171 const LLHost& getRegionHost() const;
172 172 std::string getSLURL() const;
173
173 void updateAgentPosition(const F32 dt, const F32 yaw, const S32 mouse_x, const S32 mouse_y); // call once per frame to update position, angles radians 174 void updateAgentPosition(const F32 dt, const F32 yaw, const S32 mouse_x, const S32 mouse_y); // call once per frame to update position, angles radians
174 void updateLookAt(const S32 mouse_x, const S32 mouse_y); 175 void updateLookAt(const S32 mouse_x, const S32 mouse_y);
175 176
@@ -182,7 +183,7 @@ public:
182 void changeCameraToDefault(); 183 void changeCameraToDefault();
183 void changeCameraToMouselook(BOOL animate = TRUE); 184 void changeCameraToMouselook(BOOL animate = TRUE);
184 void changeCameraToThirdPerson(BOOL animate = TRUE); 185 void changeCameraToThirdPerson(BOOL animate = TRUE);
185 void changeCameraToCustomizeAvatar(BOOL animate = TRUE); // trigger transition animation 186 void changeCameraToCustomizeAvatar(BOOL avatar_animate = TRUE, BOOL camera_animate = TRUE); // trigger transition animation
186 // Ventrella 187 // Ventrella
187 void changeCameraToFollow(BOOL animate = TRUE); 188 void changeCameraToFollow(BOOL animate = TRUE);
188 //end Ventrella 189 //end Ventrella
@@ -306,7 +307,7 @@ public:
306 LLVector3 getVelocity() const; 307 LLVector3 getVelocity() const;
307 F32 getVelocityZ() const { return getVelocity().mV[VZ]; } // a hack 308 F32 getVelocityZ() const { return getVelocity().mV[VZ]; } // a hack
308 309
309 const LLVector3d &getPositionGlobal(); 310 const LLVector3d &getPositionGlobal() const;
310 const LLVector3 &getPositionAgent(); 311 const LLVector3 &getPositionAgent();
311 S32 getRegionsVisited() const; 312 S32 getRegionsVisited() const;
312 F64 getDistanceTraveled() const; 313 F64 getDistanceTraveled() const;
@@ -463,6 +464,8 @@ public:
463 void setTargetVelocity(const LLVector3 &vel); 464 void setTargetVelocity(const LLVector3 &vel);
464 const LLVector3 &getTargetVelocity() const; 465 const LLVector3 &getTargetVelocity() const;
465 466
467 const std::string getTeleportSourceSLURL() const { return mTeleportSourceSLURL; }
468
466 469
467 // Setting the ability for this avatar to proxy for another avatar. 470 // Setting the ability for this avatar to proxy for another avatar.
468 //static void processAddModifyAbility(LLMessageSystem* msg, void**); 471 //static void processAddModifyAbility(LLMessageSystem* msg, void**);
@@ -717,6 +720,8 @@ private:
717 LLVector3d mAgentOriginGlobal; // Origin of agent coords from global coords 720 LLVector3d mAgentOriginGlobal; // Origin of agent coords from global coords
718 mutable LLVector3d mPositionGlobal; 721 mutable LLVector3d mPositionGlobal;
719 722
723 std::string mTeleportSourceSLURL; // SLURL where last TP began.
724
720 std::set<U64> mRegionsVisited; // stat - what distinct regions has the avatar been to? 725 std::set<U64> mRegionsVisited; // stat - what distinct regions has the avatar been to?
721 F64 mDistanceTraveled; // stat - how far has the avatar moved? 726 F64 mDistanceTraveled; // stat - how far has the avatar moved?
722 LLVector3d mLastPositionGlobal; // Used to calculate travel distance 727 LLVector3d mLastPositionGlobal; // Used to calculate travel distance
@@ -730,6 +735,7 @@ private:
730 ECameraMode mLastCameraMode; 735 ECameraMode mLastCameraMode;
731 BOOL mViewsPushed; // keep track of whether or not we have pushed views. 736 BOOL mViewsPushed; // keep track of whether or not we have pushed views.
732 737
738 BOOL mCustomAnim ; //current animation is ANIM_AGENT_CUSTOMIZE ?
733 BOOL mbAlwaysRun; // should the avatar run rather than walk 739 BOOL mbAlwaysRun; // should the avatar run rather than walk
734 BOOL mShowAvatar; // should we render the avatar? 740 BOOL mShowAvatar; // should we render the avatar?
735 BOOL mCameraAnimating; // camera is transitioning from one mode to another 741 BOOL mCameraAnimating; // camera is transitioning from one mode to another