diff options
author | Dave Simmons <simon@lindenlab.com> | 2009-03-20 20:00:47 +0000 |
---|---|---|
committer | Dave Simmons <simon@lindenlab.com> | 2009-03-20 20:00:47 +0000 |
commit | 24b26d71ee01211aa796b8061b66ec06a133e4ce (patch) | |
tree | 96bffcd019c933ad3ebbfd5f096968108b22aab5 /indra/newview/llagent.h | |
parent | 5dfd435872e36445dcc82f99443dfc5a7ee0805a (diff) |
svn merge -r113004:115000 svn+ssh://svn.lindenlab.com/svn/linden/branches/server/server-1.26
Merge latest 1.26 into trunk
Diffstat (limited to 'indra/newview/llagent.h')
-rw-r--r-- | indra/newview/llagent.h | 35 |
1 files changed, 27 insertions, 8 deletions
diff --git a/indra/newview/llagent.h b/indra/newview/llagent.h index 9d08c94150..fefb2a1d0b 100644 --- a/indra/newview/llagent.h +++ b/indra/newview/llagent.h @@ -40,6 +40,7 @@ #include "llcontrol.h" #include "llcoordframe.h" #include "llevent.h" +#include "llagentaccess.h" #include "llagentconstants.h" #include "llanimationstates.h" #include "lldbstrings.h" @@ -223,8 +224,8 @@ public: void clearBusy(); BOOL getBusy() const; - void setAdminOverride(BOOL b) { mAdminOverride = b; } - void setGodLevel(U8 god_level) { mGodLevel = god_level; } + void setAdminOverride(BOOL b); + void setGodLevel(U8 god_level); void setFirstLogin(BOOL b) { mFirstLogin = b; } void setGenderChosen(BOOL b) { mGenderChosen = b; } @@ -250,8 +251,29 @@ public: BOOL isGodlike() const; U8 getGodLevel() const; + // note: this is a prime candidate for pulling out into a Maturity class + // rather than just expose the preference setting, we're going to actually + // expose what the client code cares about -- what the user should see + // based on a combination of the is* and prefers* flags, combined with God bit. + bool wantsPGOnly() const; + bool canAccessMature() const; + bool canAccessAdult() const; + bool prefersPG() const; + bool prefersMature() const; + bool prefersAdult() const; bool isTeen() const; + bool isMature() const; + bool isAdult() const; void setTeen(bool teen); + void setMaturity(char text); + static int convertTextToMaturity(char text); + bool sendMaturityPreferenceToServer(int preferredMaturity); + + const LLAgentAccess& getAgentAccess(); + + // This function can go away after the AO transition (see llstartup.cpp) + void setAOTransition(); + BOOL isGroupTitleHidden() const { return mHideGroupTitle; } BOOL isGroupMember() const { return !mGroupID.isNull(); } // This is only used for building titles! const LLUUID &getGroupID() const { return mGroupID; } @@ -261,7 +283,7 @@ public: F32 getFocusObjectDist() const { return mFocusObjectDist; } BOOL inPrelude(); BOOL canManageEstate() const; - BOOL getAdminOverride() const { return mAdminOverride; } + BOOL getAdminOverride() const; LLUUID getLastChatter() const { return mLastChatterID; } bool getAlwaysRun() const { return mbAlwaysRun; } @@ -741,8 +763,8 @@ private: bool mbAlwaysRun; // should the avatar run by default rather than walk bool mbRunning; // is the avatar trying to run right now - // Access or "maturity" level - U8 mAccess; // SIM_ACCESS_MATURE or SIM_ACCESS_PG + LLAgentAccess mAgentAccess; + ETeleportState mTeleportState; std::string mTeleportMessage; @@ -865,10 +887,7 @@ private: LLFrameTimer mChatTimer; LLUUID mLastChatterID; F32 mNearChatRadius; - BOOL mAdminOverride; - // See indra_constants.h for values. - U8 mGodLevel; LLFrameTimer mFidgetTimer; LLFrameTimer mFocusObjectFadeTimer; F32 mNextFidgetTime; |