aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewerregion.h
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llviewerregion.h')
-rw-r--r--linden/indra/newview/llviewerregion.h40
1 files changed, 27 insertions, 13 deletions
diff --git a/linden/indra/newview/llviewerregion.h b/linden/indra/newview/llviewerregion.h
index c2d11f5..d65ad23 100644
--- a/linden/indra/newview/llviewerregion.h
+++ b/linden/indra/newview/llviewerregion.h
@@ -47,6 +47,7 @@
47#include "lluuid.h" 47#include "lluuid.h"
48#include "lldatapacker.h" 48#include "lldatapacker.h"
49#include "llvocache.h" 49#include "llvocache.h"
50#include "llweb.h"
50 51
51// Surface id's 52// Surface id's
52#define LAND 1 53#define LAND 1
@@ -122,6 +123,9 @@ public:
122 inline BOOL isPrelude() const; 123 inline BOOL isPrelude() const;
123 inline BOOL getAllowTerraform() const; 124 inline BOOL getAllowTerraform() const;
124 inline BOOL getRestrictPushObject() const; 125 inline BOOL getRestrictPushObject() const;
126 inline BOOL getReleaseNotesRequested() const;
127
128 bool isAlive(); // can become false if circuit disconnects
125 129
126 void setWaterHeight(F32 water_level); 130 void setWaterHeight(F32 water_level);
127 F32 getWaterHeight() const; 131 F32 getWaterHeight() const;
@@ -161,9 +165,9 @@ public:
161 const LLVector3d &getCenterGlobal() const { return mCenterGlobal; } 165 const LLVector3d &getCenterGlobal() const { return mCenterGlobal; }
162 LLVector3 getCenterAgent() const; 166 LLVector3 getCenterAgent() const;
163 167
164 void setRegionNameAndZone(const char* name_and_zone); 168 void setRegionNameAndZone(const std::string& name_and_zone);
165 const LLString& getName() const { return mName; } 169 const std::string& getName() const { return mName; }
166 const LLString& getZoning() const { return mZoning; } 170 const std::string& getZoning() const { return mZoning; }
167 171
168 void setOwner(const LLUUID& owner_id) { mOwnerID = owner_id; } 172 void setOwner(const LLUUID& owner_id) { mOwnerID = owner_id; }
169 const LLUUID& getOwner() const { return mOwnerID; } 173 const LLUUID& getOwner() const { return mOwnerID; }
@@ -175,18 +179,18 @@ public:
175 179
176 void setSimAccess(U8 sim_access) { mSimAccess = sim_access; } 180 void setSimAccess(U8 sim_access) { mSimAccess = sim_access; }
177 U8 getSimAccess() const { return mSimAccess; } 181 U8 getSimAccess() const { return mSimAccess; }
178 const char* getSimAccessString() const; 182 const std::string getSimAccessString() const;
179 183
180 // Returns "Sandbox", "Expensive", etc. 184 // Returns "Sandbox", "Expensive", etc.
181 static std::string regionFlagsToString(U32 flags); 185 static std::string regionFlagsToString(U32 flags);
182 186
183 // Returns "Mature", "PG", etc. 187 // Returns "Mature", "PG", etc.
184 static const char* accessToString(U8 access); 188 static std::string accessToString(U8 sim_access);
185 189
186 static U8 stringToAccess(const char* access_str); 190 static U8 stringToAccess(const std::string& access_str);
187 191
188 // Returns "M", "PG", etc. 192 // Returns "M", "PG", etc.
189 static const char* accessToShortString(U8 access); /* Flawfinder: ignore */ 193 static std::string accessToShortString(U8 sim_access);
190 194
191 // helper function which just makes sure all interested parties 195 // helper function which just makes sure all interested parties
192 // can process the message. 196 // can process the message.
@@ -215,6 +219,7 @@ public:
215 void setSeedCapability(const std::string& url); 219 void setSeedCapability(const std::string& url);
216 void setCapability(const std::string& name, const std::string& url); 220 void setCapability(const std::string& name, const std::string& url);
217 std::string getCapability(const std::string& name) const; 221 std::string getCapability(const std::string& name) const;
222 static bool isSpecialCapabilityName(const std::string &name);
218 void logActiveCapabilities() const; 223 void logActiveCapabilities() const;
219 224
220 const LLHost &getHost() const { return mHost; } 225 const LLHost &getHost() const { return mHost; }
@@ -274,7 +279,9 @@ public:
274 return lhs->mCameraDistanceSquared < rhs->mCameraDistanceSquared; 279 return lhs->mCameraDistanceSquared < rhs->mCameraDistanceSquared;
275 } 280 }
276 }; 281 };
277 282
283 void showReleaseNotes();
284
278protected: 285protected:
279 void disconnectAllNeighbors(); 286 void disconnectAllNeighbors();
280 void initStats(); 287 void initStats();
@@ -285,8 +292,6 @@ public:
285 LLCloudLayer mCloudLayer; 292 LLCloudLayer mCloudLayer;
286 LLViewerParcelOverlay *mParcelOverlay; 293 LLViewerParcelOverlay *mParcelOverlay;
287 294
288 BOOL mAlive; // can become false if circuit disconnects
289
290 LLStat mBitStat; 295 LLStat mBitStat;
291 LLStat mPacketsStat; 296 LLStat mPacketsStat;
292 LLStat mPacketsLostStat; 297 LLStat mPacketsLostStat;
@@ -301,7 +306,7 @@ public:
301 LLDynamicArray<U32> mMapAvatars; 306 LLDynamicArray<U32> mMapAvatars;
302 LLDynamicArray<LLUUID> mMapAvatarIDs; 307 LLDynamicArray<LLUUID> mMapAvatarIDs;
303 308
304protected: 309private:
305 // The surfaces and other layers 310 // The surfaces and other layers
306 LLSurface* mLandp; 311 LLSurface* mLandp;
307 312
@@ -319,8 +324,8 @@ protected:
319 F32 mTimeDilation; // time dilation of physics simulation on simulator 324 F32 mTimeDilation; // time dilation of physics simulation on simulator
320 325
321 // simulator name 326 // simulator name
322 LLString mName; 327 std::string mName;
323 LLString mZoning; 328 std::string mZoning;
324 329
325 // region/estate owner - usually null. 330 // region/estate owner - usually null.
326 LLUUID mOwnerID; 331 LLUUID mOwnerID;
@@ -374,10 +379,14 @@ protected:
374 LLEventPoll* mEventPoll; 379 LLEventPoll* mEventPoll;
375 380
376private: 381private:
382 bool mAlive; // can become false if circuit disconnects
383
377 //spatial partitions for objects in this region 384 //spatial partitions for objects in this region
378 std::vector<LLSpatialPartition*> mObjectPartition; 385 std::vector<LLSpatialPartition*> mObjectPartition;
379 386
380 LLHTTPClient::ResponderPtr mHttpResponderPtr ; 387 LLHTTPClient::ResponderPtr mHttpResponderPtr ;
388
389 BOOL mReleaseNotesRequested;
381}; 390};
382 391
383inline BOOL LLViewerRegion::getAllowDamage() const 392inline BOOL LLViewerRegion::getAllowDamage() const
@@ -430,6 +439,11 @@ inline BOOL LLViewerRegion::getRestrictPushObject() const
430 return ((mRegionFlags & REGION_FLAGS_RESTRICT_PUSHOBJECT) != 0); 439 return ((mRegionFlags & REGION_FLAGS_RESTRICT_PUSHOBJECT) != 0);
431} 440}
432 441
442inline BOOL LLViewerRegion::getReleaseNotesRequested() const
443{
444 return mReleaseNotesRequested;
445}
446
433#endif 447#endif
434 448
435 449