llparcelflags.h

Go to the documentation of this file.
00001 
00031 #ifndef LL_LLPARCEL_FLAGS_H
00032 #define LL_LLPARCEL_FLAGS_H
00033 
00034 //---------------------------------------------------------------------------
00035 // Parcel Flags (PF) constants
00036 //---------------------------------------------------------------------------
00037 const U32 PF_ALLOW_FLY                  = 1 << 0;// Can start flying
00038 const U32 PF_ALLOW_OTHER_SCRIPTS= 1 << 1;// Scripts by others can run.
00039 const U32 PF_FOR_SALE                   = 1 << 2;// Can buy this land
00040 const U32 PF_FOR_SALE_OBJECTS   = 1 << 7;// Can buy all objects on this land
00041 const U32 PF_ALLOW_LANDMARK             = 1 << 3;
00042 const U32 PF_ALLOW_TERRAFORM    = 1 << 4;
00043 const U32 PF_ALLOW_DAMAGE               = 1 << 5;
00044 const U32 PF_CREATE_OBJECTS             = 1 << 6;
00045 // 7 is moved above
00046 const U32 PF_USE_ACCESS_GROUP   = 1 << 8;
00047 const U32 PF_USE_ACCESS_LIST    = 1 << 9;
00048 const U32 PF_USE_BAN_LIST               = 1 << 10;
00049 const U32 PF_USE_PASS_LIST              = 1 << 11;
00050 const U32 PF_SHOW_DIRECTORY             = 1 << 12;
00051 const U32 PF_ALLOW_DEED_TO_GROUP                = 1 << 13;
00052 const U32 PF_CONTRIBUTE_WITH_DEED               = 1 << 14;
00053 const U32 PF_SOUND_LOCAL                                = 1 << 15;      // Hear sounds in this parcel only
00054 const U32 PF_SELL_PARCEL_OBJECTS                = 1 << 16;      // Objects on land are included as part of the land when the land is sold
00055 const U32 PF_ALLOW_PUBLISH                              = 1 << 17;      // Allow publishing of parcel information on the web
00056 const U32 PF_MATURE_PUBLISH                             = 1 << 18;      // The information on this parcel is mature
00057 const U32 PF_URL_WEB_PAGE                               = 1 << 19;      // The "media URL" is an HTML page
00058 const U32 PF_URL_RAW_HTML                               = 1 << 20;      // The "media URL" is a raw HTML string like <H1>Foo</H1>
00059 const U32 PF_RESTRICT_PUSHOBJECT                = 1 << 21;      // Restrict push object to either on agent or on scripts owned by parcel owner
00060 const U32 PF_DENY_ANONYMOUS                             = 1 << 22;      // Deny all non identified/transacted accounts
00061 // const U32 PF_DENY_IDENTIFIED                 = 1 << 23;      // Deny identified accounts
00062 // const U32 PF_DENY_TRANSACTED                 = 1 << 24;      // Deny identified accounts
00063 const U32 PF_ALLOW_GROUP_SCRIPTS                = 1 << 25;      // Allow scripts owned by group
00064 const U32 PF_CREATE_GROUP_OBJECTS               = 1 << 26;      // Allow object creation by group members or objects
00065 const U32 PF_ALLOW_ALL_OBJECT_ENTRY             = 1 << 27;      // Allow all objects to enter a parcel
00066 const U32 PF_ALLOW_GROUP_OBJECT_ENTRY   = 1 << 28;      // Only allow group (and owner) objects to enter the parcel
00067 const U32 PF_ALLOW_VOICE_CHAT                   = 1 << 29;      // Allow residents to use voice chat on this parcel
00068 const U32 PF_USE_ESTATE_VOICE_CHAN      = 1 << 30;
00069 const U32 PF_DENY_AGEUNVERIFIED         = 1 << 31;  // Prevent residents who aren't age-verified 
00070 // NOTE: At one point we have used all of the bits.
00071 // We have deprecated two of them in 1.19.0 which *could* be reused,
00072 // but only after we are certain there are no simstates using those bits.
00073 
00074 //const U32 PF_RESERVED                 = 1U << 31;
00075 
00076 // If any of these are true the parcel is restricting access in some maner.
00077 const U32 PF_USE_RESTRICTED_ACCESS = PF_USE_ACCESS_GROUP
00078                                                                                 | PF_USE_ACCESS_LIST
00079                                                                                 | PF_USE_BAN_LIST
00080                                                                                 | PF_USE_PASS_LIST
00081                                                                                 | PF_DENY_ANONYMOUS
00082                                                                                 | PF_DENY_AGEUNVERIFIED;
00083 const U32 PF_NONE = 0x00000000;
00084 const U32 PF_ALL  = 0xFFFFFFFF;
00085 const U32 PF_DEFAULT =  PF_ALLOW_FLY
00086                                                 | PF_ALLOW_OTHER_SCRIPTS
00087                                                 | PF_ALLOW_GROUP_SCRIPTS
00088                                                 | PF_ALLOW_LANDMARK
00089                                                 | PF_CREATE_OBJECTS
00090                                                 | PF_CREATE_GROUP_OBJECTS
00091                                                 | PF_USE_BAN_LIST
00092                                                 | PF_ALLOW_ALL_OBJECT_ENTRY
00093                                                 | PF_ALLOW_GROUP_OBJECT_ENTRY
00094                         | PF_ALLOW_VOICE_CHAT
00095                         | PF_USE_ESTATE_VOICE_CHAN;
00096 
00097 // Access list flags
00098 const U32 AL_ACCESS  = (1 << 0);
00099 const U32 AL_BAN     = (1 << 1);
00100 //const U32 AL_RENTER  = (1 << 2);
00101 
00102 // Block access return values. BA_ALLOWED is the only success case
00103 // since some code in the simulator relies on that assumption. All
00104 // other BA_ values should be reasons why you are not allowed.
00105 const S32 BA_ALLOWED = 0;
00106 const S32 BA_NOT_IN_GROUP = 1;
00107 const S32 BA_NOT_ON_LIST = 2;
00108 const S32 BA_BANNED = 3;
00109 const S32 BA_NO_ACCESS_LEVEL = 4;
00110 const S32 BA_NOT_AGE_VERIFIED = 5;
00111 
00112 // ParcelRelease flags
00113 const U32 PR_NONE               = 0x0;
00114 const U32 PR_GOD_FORCE  = (1 << 0);
00115 
00116 enum EObjectCategory
00117 {
00118         OC_INVALID = -1,
00119         OC_NONE = 0,
00120         OC_TOTAL = 0,   // yes zero, like OC_NONE
00121         OC_OWNER,
00122         OC_GROUP,
00123         OC_OTHER,
00124         OC_SELECTED,
00125         OC_TEMP,
00126         OC_COUNT
00127 };
00128 
00129 const S32 PARCEL_DETAILS_NAME = 0;
00130 const S32 PARCEL_DETAILS_DESC = 1;
00131 const S32 PARCEL_DETAILS_OWNER = 2;
00132 const S32 PARCEL_DETAILS_GROUP = 3;
00133 const S32 PARCEL_DETAILS_AREA = 4;
00134 
00135 #endif

Generated on Fri May 16 08:32:13 2008 for SecondLife by  doxygen 1.5.5