aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Modules/Terrain/Effects/CookieCutter.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment/Modules/Terrain/Effects/CookieCutter.cs')
-rw-r--r--OpenSim/Region/Environment/Modules/Terrain/Effects/CookieCutter.cs27
1 files changed, 13 insertions, 14 deletions
diff --git a/OpenSim/Region/Environment/Modules/Terrain/Effects/CookieCutter.cs b/OpenSim/Region/Environment/Modules/Terrain/Effects/CookieCutter.cs
index 8e51d40..6d41eba 100644
--- a/OpenSim/Region/Environment/Modules/Terrain/Effects/CookieCutter.cs
+++ b/OpenSim/Region/Environment/Modules/Terrain/Effects/CookieCutter.cs
@@ -25,26 +25,24 @@
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */ 26 */
27using System; 27using System;
28using System.Collections.Generic;
29using System.Text;
30using OpenSim.Region.Environment.Modules.Terrain;
31using OpenSim.Region.Environment.Interfaces; 28using OpenSim.Region.Environment.Interfaces;
32using OpenSim.Framework; 29using OpenSim.Region.Environment.Modules.Terrain.FloodBrushes;
30using OpenSim.Region.Environment.Modules.Terrain.PaintBrushes;
33 31
34namespace OpenSim.Region.Environment.Modules.Terrain.Effects 32namespace OpenSim.Region.Environment.Modules.Terrain.Effects
35{ 33{
36 class CookieCutter : ITerrainEffect 34 internal class CookieCutter : ITerrainEffect
37 { 35 {
38 #region ITerrainEffect Members 36 #region ITerrainEffect Members
39 37
40 public void RunEffect(ITerrainChannel map) 38 public void RunEffect(ITerrainChannel map)
41 { 39 {
42 FloodBrushes.SmoothArea smooth = new FloodBrushes.SmoothArea(); 40 SmoothArea smooth = new SmoothArea();
43 ITerrainPaintableEffect eroder = new PaintBrushes.WeatherSphere(); 41 ITerrainPaintableEffect eroder = new WeatherSphere();
44 42
45 bool[,] cliffMask = new bool[map.Width, map.Height]; 43 bool[,] cliffMask = new bool[map.Width,map.Height];
46 bool[,] channelMask = new bool[map.Width, map.Height]; 44 bool[,] channelMask = new bool[map.Width,map.Height];
47 bool[,] smoothMask = new bool[map.Width, map.Height]; 45 bool[,] smoothMask = new bool[map.Width,map.Height];
48 46
49 Console.WriteLine("S1"); 47 Console.WriteLine("S1");
50 48
@@ -98,7 +96,10 @@ namespace OpenSim.Region.Environment.Modules.Terrain.Effects
98 //smooth.FloodEffect(map, smoothMask, 4.0); 96 //smooth.FloodEffect(map, smoothMask, 4.0);
99 } 97 }
100 98
101 private static void SetLowerChannel(ITerrainChannel map, bool[,] cliffMask, bool[,] channelMask, int x, int y, int numChannels, int channelWidth, int mapSize, int rp) 99 #endregion
100
101 private static void SetLowerChannel(ITerrainChannel map, bool[,] cliffMask, bool[,] channelMask, int x, int y, int numChannels, int channelWidth,
102 int mapSize, int rp)
102 { 103 {
103 for (int i = 0; i < numChannels; i++) 104 for (int i = 0; i < numChannels; i++)
104 { 105 {
@@ -119,7 +120,5 @@ namespace OpenSim.Region.Environment.Modules.Terrain.Effects
119 } 120 }
120 } 121 }
121 } 122 }
122
123 #endregion
124 } 123 }
125} 124} \ No newline at end of file