aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/ILandObject.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-03-26 00:34:49 +0000
committerJustin Clark-Casey (justincc)2011-03-26 00:34:49 +0000
commitcc8897fcebdc9d3e875c9bf745ecb77678a776e9 (patch)
treedbc71e5174977e5e4ab2a5115c72b377acafa5d8 /OpenSim/Framework/ILandObject.cs
parentStart using IPrimCounts populated by PrimCountModule instead of LandData coun... (diff)
downloadopensim-SC-cc8897fcebdc9d3e875c9bf745ecb77678a776e9.zip
opensim-SC-cc8897fcebdc9d3e875c9bf745ecb77678a776e9.tar.gz
opensim-SC-cc8897fcebdc9d3e875c9bf745ecb77678a776e9.tar.bz2
opensim-SC-cc8897fcebdc9d3e875c9bf745ecb77678a776e9.tar.xz
Add test for PCM taint. This currently fails due to unexpected behaviour of SceneGraph.ForEachSOG(). This will be corrected soon.
Also adds lots of temproarily debug logging
Diffstat (limited to 'OpenSim/Framework/ILandObject.cs')
-rw-r--r--OpenSim/Framework/ILandObject.cs112
1 files changed, 112 insertions, 0 deletions
diff --git a/OpenSim/Framework/ILandObject.cs b/OpenSim/Framework/ILandObject.cs
new file mode 100644
index 0000000..931e24a
--- /dev/null
+++ b/OpenSim/Framework/ILandObject.cs
@@ -0,0 +1,112 @@
1/*
2 * Copyright (c) Contributors, http://opensimulator.org/
3 * See CONTRIBUTORS.TXT for a full list of copyright holders.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 * * Neither the name of the OpenSimulator Project nor the
13 * names of its contributors may be used to endorse or promote products
14 * derived from this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
17 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28using System.Collections.Generic;
29using OpenMetaverse;
30
31namespace OpenSim.Framework
32{
33 public delegate int overrideParcelMaxPrimCountDelegate(ILandObject obj);
34 public delegate int overrideSimulatorMaxPrimCountDelegate(ILandObject obj);
35
36 public interface ILandObject
37 {
38 int GetParcelMaxPrimCount(ILandObject thisObject);
39 int GetSimulatorMaxPrimCount(ILandObject thisObject);
40 int GetPrimsFree();
41
42 LandData LandData { get; set; }
43 bool[,] LandBitmap { get; set; }
44 UUID RegionUUID { get; }
45
46 /// <summary>
47 /// Prim counts for this land object.
48 /// </summary>
49 IPrimCounts PrimCounts { get; set; }
50
51 /// <summary>
52 /// The start point for the land object. This is the western-most point as one scans land working from
53 /// north to south.
54 /// </summary>
55 Vector3 StartPoint { get; }
56
57 /// <summary>
58 /// The end point for the land object. This is the eastern-most point as one scans land working from
59 /// south to north.
60 /// </summary>
61 Vector3 EndPoint { get; }
62
63 bool ContainsPoint(int x, int y);
64
65 ILandObject Copy();
66
67 void SendLandUpdateToAvatarsOverMe();
68
69 void SendLandProperties(int sequence_id, bool snap_selection, int request_result, IClientAPI remote_client);
70 void UpdateLandProperties(LandUpdateArgs args, IClientAPI remote_client);
71 bool IsEitherBannedOrRestricted(UUID avatar);
72 bool IsBannedFromLand(UUID avatar);
73 bool IsRestrictedFromLand(UUID avatar);
74 void SendLandUpdateToClient(IClientAPI remote_client);
75 void SendLandUpdateToClient(bool snap_selection, IClientAPI remote_client);
76 List<UUID> CreateAccessListArrayByFlag(AccessList flag);
77 void SendAccessList(UUID agentID, UUID sessionID, uint flags, int sequenceID, IClientAPI remote_client);
78 void UpdateAccessList(uint flags, UUID transactionID, int sequenceID, int sections, List<ParcelManager.ParcelAccessEntry> entries, IClientAPI remote_client);
79 void UpdateLandBitmapByteArray();
80 void SetLandBitmapFromByteArray();
81 bool[,] GetLandBitmap();
82 void ForceUpdateLandInfo();
83 void SetLandBitmap(bool[,] bitmap);
84
85 bool[,] BasicFullRegionLandBitmap();
86 bool[,] GetSquareLandBitmap(int start_x, int start_y, int end_x, int end_y);
87 bool[,] ModifyLandBitmapSquare(bool[,] land_bitmap, int start_x, int start_y, int end_x, int end_y, bool set_value);
88 bool[,] MergeLandBitmaps(bool[,] bitmap_base, bool[,] bitmap_add);
89 void SendForceObjectSelect(int local_id, int request_type, List<UUID> returnIDs, IClientAPI remote_client);
90 void SendLandObjectOwners(IClientAPI remote_client);
91 void ReturnLandObjects(uint type, UUID[] owners, UUID[] tasks, IClientAPI remote_client);
92 void ResetLandPrimCounts();
93 void UpdateLandSold(UUID avatarID, UUID groupID, bool groupOwned, uint AuctionID, int claimprice, int area);
94
95 void DeedToGroup(UUID groupID);
96
97 void SetParcelObjectMaxOverride(overrideParcelMaxPrimCountDelegate overrideDel);
98 void SetSimulatorObjectMaxOverride(overrideSimulatorMaxPrimCountDelegate overrideDel);
99
100 /// <summary>
101 /// Set the media url for this land parcel
102 /// </summary>
103 /// <param name="url"></param>
104 void SetMediaUrl(string url);
105
106 /// <summary>
107 /// Set the music url for this land parcel
108 /// </summary>
109 /// <param name="url"></param>
110 void SetMusicUrl(string url);
111 }
112}