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 
00070 const U32 PF_RESERVED                   = 1U << 31;
00071 
00072 // If any of these are true the parcel is restricting access in some maner.
00073 const U32 PF_USE_RESTRICTED_ACCESS = PF_USE_ACCESS_GROUP
00074                                                                                 | PF_USE_ACCESS_LIST
00075                                                                                 | PF_USE_BAN_LIST
00076                                                                                 | PF_USE_PASS_LIST
00077                                                                                 | PF_DENY_ANONYMOUS
00078                                                                                 | PF_DENY_IDENTIFIED
00079                                                                                 | PF_DENY_TRANSACTED;
00080 const U32 PF_NONE = 0x00000000;
00081 const U32 PF_ALL  = 0x7FFFFFFF;
00082 const U32 PF_DEFAULT =  PF_ALLOW_FLY
00083                                                 | PF_ALLOW_OTHER_SCRIPTS
00084                                                 | PF_ALLOW_GROUP_SCRIPTS
00085                                                 | PF_ALLOW_LANDMARK
00086                                                 | PF_CREATE_OBJECTS
00087                                                 | PF_CREATE_GROUP_OBJECTS
00088                                                 | PF_USE_BAN_LIST
00089                                                 | PF_ALLOW_ALL_OBJECT_ENTRY
00090                                                 | PF_ALLOW_GROUP_OBJECT_ENTRY
00091                         | PF_ALLOW_VOICE_CHAT
00092                         | PF_USE_ESTATE_VOICE_CHAN;
00093 
00094 // Access list flags
00095 const U32 AL_ACCESS  = (1 << 0);
00096 const U32 AL_BAN     = (1 << 1);
00097 //const U32 AL_RENTER  = (1 << 2);
00098 
00099 // Block access return values. BA_ALLOWED is the only success case
00100 // since some code in the simulator relies on that assumption. All
00101 // other BA_ values should be reasons why you are not allowed.
00102 const S32 BA_ALLOWED = 0;
00103 const S32 BA_NOT_IN_GROUP = 1;
00104 const S32 BA_NOT_ON_LIST = 2;
00105 const S32 BA_BANNED = 3;
00106 const S32 BA_NO_ACCESS_LEVEL = 4;
00107 
00108 // ParcelRelease flags
00109 const U32 PR_NONE               = 0x0;
00110 const U32 PR_GOD_FORCE  = (1 << 0);
00111 
00112 enum EObjectCategory
00113 {
00114         OC_INVALID = -1,
00115         OC_NONE = 0,
00116         OC_TOTAL = 0,   // yes zero, like OC_NONE
00117         OC_OWNER,
00118         OC_GROUP,
00119         OC_OTHER,
00120         OC_SELECTED,
00121         OC_TEMP,
00122         OC_COUNT
00123 };
00124 
00125 const S32 PARCEL_DETAILS_NAME = 0;
00126 const S32 PARCEL_DETAILS_DESC = 1;
00127 const S32 PARCEL_DETAILS_OWNER = 2;
00128 const S32 PARCEL_DETAILS_GROUP = 3;
00129 const S32 PARCEL_DETAILS_AREA = 4;
00130 
00131 #endif

Generated on Thu Jul 1 06:08:59 2010 for Second Life Viewer by  doxygen 1.4.7