aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Modules/World/Land/LandChannel.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment/Modules/World/Land/LandChannel.cs')
-rw-r--r--OpenSim/Region/Environment/Modules/World/Land/LandChannel.cs188
1 files changed, 0 insertions, 188 deletions
diff --git a/OpenSim/Region/Environment/Modules/World/Land/LandChannel.cs b/OpenSim/Region/Environment/Modules/World/Land/LandChannel.cs
deleted file mode 100644
index 76555d2..0000000
--- a/OpenSim/Region/Environment/Modules/World/Land/LandChannel.cs
+++ /dev/null
@@ -1,188 +0,0 @@
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 OpenSim 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;
29using System.Collections.Generic;
30using OpenMetaverse;
31using OpenSim.Framework;
32using OpenSim.Region.Framework.Interfaces;
33using OpenSim.Region.Framework.Scenes;
34
35namespace OpenSim.Region.Environment.Modules.World.Land
36{
37 public class LandChannel : ILandChannel
38 {
39 #region Constants
40
41 //Land types set with flags in ParcelOverlay.
42 //Only one of these can be used.
43 public const float BAN_LINE_SAFETY_HIEGHT = 100;
44 public const byte LAND_FLAG_PROPERTY_BORDER_SOUTH = 128; //Equals 10000000
45 public const byte LAND_FLAG_PROPERTY_BORDER_WEST = 64; //Equals 01000000
46
47 //RequestResults (I think these are right, they seem to work):
48 public const int LAND_RESULT_MULTIPLE = 1; // The request they made contained more than a single peice of land
49 public const int LAND_RESULT_SINGLE = 0; // The request they made contained only a single piece of land
50
51 //ParcelSelectObjects
52 public const int LAND_SELECT_OBJECTS_GROUP = 4;
53 public const int LAND_SELECT_OBJECTS_OTHER = 8;
54 public const int LAND_SELECT_OBJECTS_OWNER = 2;
55 public const byte LAND_TYPE_IS_BEING_AUCTIONED = 5; //Equals 00000101
56 public const byte LAND_TYPE_IS_FOR_SALE = 4; //Equals 00000100
57 public const byte LAND_TYPE_OWNED_BY_GROUP = 2; //Equals 00000010
58 public const byte LAND_TYPE_OWNED_BY_OTHER = 1; //Equals 00000001
59 public const byte LAND_TYPE_OWNED_BY_REQUESTER = 3; //Equals 00000011
60 public const byte LAND_TYPE_PUBLIC = 0; //Equals 00000000
61
62 //These are other constants. Yay!
63 public const int START_LAND_LOCAL_ID = 1;
64
65 #endregion
66
67 private readonly Scene m_scene;
68 private readonly LandManagementModule m_landManagementModule;
69
70 public LandChannel(Scene scene, LandManagementModule landManagementMod)
71 {
72 m_scene = scene;
73 m_landManagementModule = landManagementMod;
74 }
75
76 #region ILandChannel Members
77
78
79 /// <summary>
80 /// Get the land object at the specified point
81 /// </summary>
82 /// <param name="x_float">Value between 0 - 256 on the x axis of the point</param>
83 /// <param name="y_float">Value between 0 - 256 on the y axis of the point</param>
84 /// <returns>Land object at the point supplied</returns>
85 public ILandObject GetLandObject(float x_float, float y_float)
86 {
87 if (m_landManagementModule != null)
88 {
89 return m_landManagementModule.GetLandObject(x_float, y_float);
90 }
91 ILandObject obj = new LandObject(UUID.Zero, false, m_scene);
92 obj.landData.Name = "NO LAND";
93 return obj;
94 }
95
96 public ILandObject GetLandObject(int x, int y)
97 {
98 if (m_landManagementModule != null)
99 {
100 return m_landManagementModule.GetLandObject(x, y);
101 }
102 ILandObject obj = new LandObject(UUID.Zero, false, m_scene);
103 obj.landData.Name = "NO LAND";
104 return obj;
105 }
106
107 public List<ILandObject> AllParcels()
108 {
109 if (m_landManagementModule != null)
110 {
111 return m_landManagementModule.AllParcels();
112 }
113
114 return new List<ILandObject>();
115 }
116
117 public List<ILandObject> ParcelsNearPoint(Vector3 position)
118 {
119 if (m_landManagementModule != null)
120 {
121 return m_landManagementModule.ParcelsNearPoint(position);
122 }
123
124 return new List<ILandObject>();
125 }
126
127 public bool IsLandPrimCountTainted()
128 {
129 if (m_landManagementModule != null)
130 {
131 return m_landManagementModule.IsLandPrimCountTainted();
132 }
133
134 return false;
135 }
136
137 public bool IsForcefulBansAllowed()
138 {
139 if (m_landManagementModule != null)
140 {
141 return m_landManagementModule.AllowedForcefulBans;
142 }
143
144 return false;
145 }
146
147 public void UpdateLandObject(int localID, LandData data)
148 {
149 if (m_landManagementModule != null)
150 {
151 m_landManagementModule.UpdateLandObject(localID, data);
152 }
153 }
154 public void ReturnObjectsInParcel(int localID, uint returnType, UUID[] agentIDs, UUID[] taskIDs, IClientAPI remoteClient)
155 {
156 if (m_landManagementModule != null)
157 {
158 m_landManagementModule.ReturnObjectsInParcel(localID, returnType, agentIDs, taskIDs, remoteClient);
159 }
160 }
161
162 public void setParcelObjectMaxOverride(overrideParcelMaxPrimCountDelegate overrideDel)
163 {
164 if (m_landManagementModule != null)
165 {
166 m_landManagementModule.setParcelObjectMaxOverride(overrideDel);
167 }
168 }
169
170 public void setSimulatorObjectMaxOverride(overrideSimulatorMaxPrimCountDelegate overrideDel)
171 {
172 if (m_landManagementModule != null)
173 {
174 m_landManagementModule.setSimulatorObjectMaxOverride(overrideDel);
175 }
176 }
177
178 public void SetParcelOtherCleanTime(IClientAPI remoteClient, int localID, int otherCleanTime)
179 {
180 if (m_landManagementModule != null)
181 {
182 m_landManagementModule.setParcelOtherCleanTime(remoteClient, localID, otherCleanTime);
183 }
184 }
185
186 #endregion
187 }
188}