aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/OpenSim.Region
diff options
context:
space:
mode:
authorMW2007-06-20 17:32:21 +0000
committerMW2007-06-20 17:32:21 +0000
commit3e484d1aaf6d2d893f258e7372003de9bf5e8bdb (patch)
tree78eba8a9c1e77748d73d77e9f366021235a738b8 /OpenSim/OpenSim.Region
parent* and done the same for OGS.. (diff)
downloadopensim-SC_OLD-3e484d1aaf6d2d893f258e7372003de9bf5e8bdb.zip
opensim-SC_OLD-3e484d1aaf6d2d893f258e7372003de9bf5e8bdb.tar.gz
opensim-SC_OLD-3e484d1aaf6d2d893f258e7372003de9bf5e8bdb.tar.bz2
opensim-SC_OLD-3e484d1aaf6d2d893f258e7372003de9bf5e8bdb.tar.xz
Renamed Avatar to ScenePresence to avoid clash with libsl Avatar class.
Added ThirdPartyLicenses folder containing the licenses for the various third party libraries we use. Plus some other small changes.
Diffstat (limited to '')
-rw-r--r--OpenSim/OpenSim.Region/EstateManager.cs2
-rw-r--r--OpenSim/OpenSim.Region/OpenSim.Region.csproj18
-rw-r--r--OpenSim/OpenSim.Region/OpenSim.Region.dll.build6
-rw-r--r--OpenSim/OpenSim.Region/ParcelManager.cs2
-rw-r--r--OpenSim/OpenSim.Region/Scenes/Primitive.cs4
-rw-r--r--OpenSim/OpenSim.Region/Scenes/Scene.PacketHandlers.cs2
-rw-r--r--OpenSim/OpenSim.Region/Scenes/Scene.Scripting.cs2
-rw-r--r--OpenSim/OpenSim.Region/Scenes/Scene.cs77
-rw-r--r--OpenSim/OpenSim.Region/Scenes/SceneBase.cs6
-rw-r--r--OpenSim/OpenSim.Region/Scenes/ScenePresence.Animations.cs (renamed from OpenSim/OpenSim.Region/Scenes/Avatar.Animations.cs)4
-rw-r--r--OpenSim/OpenSim.Region/Scenes/ScenePresence.Update.cs (renamed from OpenSim/OpenSim.Region/Scenes/Avatar.Update.cs)10
-rw-r--r--OpenSim/OpenSim.Region/Scenes/ScenePresence.cs (renamed from OpenSim/OpenSim.Region/Scenes/Avatar.cs)20
-rw-r--r--OpenSim/OpenSim.Region/Scenes/scripting/IScriptHandler.cs2
-rw-r--r--OpenSim/OpenSim.RegionServer/ClientView.API.cs4
-rw-r--r--OpenSim/OpenSim.RegionServer/ClientView.cs6
-rw-r--r--OpenSim/OpenSim.RegionServer/OpenSim.RegionServer.dll.build1
16 files changed, 86 insertions, 80 deletions
diff --git a/OpenSim/OpenSim.Region/EstateManager.cs b/OpenSim/OpenSim.Region/EstateManager.cs
index 3b918b1..fbcab33 100644
--- a/OpenSim/OpenSim.Region/EstateManager.cs
+++ b/OpenSim/OpenSim.Region/EstateManager.cs
@@ -35,7 +35,7 @@ using OpenSim.Region.Scenes;
35using OpenSim; 35using OpenSim;
36using libsecondlife; 36using libsecondlife;
37using libsecondlife.Packets; 37using libsecondlife.Packets;
38using Avatar = OpenSim.Region.Scenes.Avatar; 38using Avatar = OpenSim.Region.Scenes.ScenePresence;
39 39
40 40
41namespace OpenSim.Region 41namespace OpenSim.Region
diff --git a/OpenSim/OpenSim.Region/OpenSim.Region.csproj b/OpenSim/OpenSim.Region/OpenSim.Region.csproj
index 94efbed..a531e5c 100644
--- a/OpenSim/OpenSim.Region/OpenSim.Region.csproj
+++ b/OpenSim/OpenSim.Region/OpenSim.Region.csproj
@@ -142,15 +142,6 @@
142 <Compile Include="ParcelManager.cs"> 142 <Compile Include="ParcelManager.cs">
143 <SubType>Code</SubType> 143 <SubType>Code</SubType>
144 </Compile> 144 </Compile>
145 <Compile Include="Scenes\Avatar.Animations.cs">
146 <SubType>Code</SubType>
147 </Compile>
148 <Compile Include="Scenes\Avatar.cs">
149 <SubType>Code</SubType>
150 </Compile>
151 <Compile Include="Scenes\Avatar.Update.cs">
152 <SubType>Code</SubType>
153 </Compile>
154 <Compile Include="Scenes\Entity.cs"> 145 <Compile Include="Scenes\Entity.cs">
155 <SubType>Code</SubType> 146 <SubType>Code</SubType>
156 </Compile> 147 </Compile>
@@ -172,6 +163,15 @@
172 <Compile Include="Scenes\SceneObject.cs"> 163 <Compile Include="Scenes\SceneObject.cs">
173 <SubType>Code</SubType> 164 <SubType>Code</SubType>
174 </Compile> 165 </Compile>
166 <Compile Include="Scenes\ScenePresence.Animations.cs">
167 <SubType>Code</SubType>
168 </Compile>
169 <Compile Include="Scenes\ScenePresence.cs">
170 <SubType>Code</SubType>
171 </Compile>
172 <Compile Include="Scenes\ScenePresence.Update.cs">
173 <SubType>Code</SubType>
174 </Compile>
175 <Compile Include="Scenes\scripting\IScriptContext.cs"> 175 <Compile Include="Scenes\scripting\IScriptContext.cs">
176 <SubType>Code</SubType> 176 <SubType>Code</SubType>
177 </Compile> 177 </Compile>
diff --git a/OpenSim/OpenSim.Region/OpenSim.Region.dll.build b/OpenSim/OpenSim.Region/OpenSim.Region.dll.build
index 6d47576..e277ec7 100644
--- a/OpenSim/OpenSim.Region/OpenSim.Region.dll.build
+++ b/OpenSim/OpenSim.Region/OpenSim.Region.dll.build
@@ -13,9 +13,6 @@
13 <sources failonempty="true"> 13 <sources failonempty="true">
14 <include name="EstateManager.cs" /> 14 <include name="EstateManager.cs" />
15 <include name="ParcelManager.cs" /> 15 <include name="ParcelManager.cs" />
16 <include name="Scenes/Avatar.Animations.cs" />
17 <include name="Scenes/Avatar.cs" />
18 <include name="Scenes/Avatar.Update.cs" />
19 <include name="Scenes/Entity.cs" /> 16 <include name="Scenes/Entity.cs" />
20 <include name="Scenes/Primitive.cs" /> 17 <include name="Scenes/Primitive.cs" />
21 <include name="Scenes/Scene.cs" /> 18 <include name="Scenes/Scene.cs" />
@@ -23,6 +20,9 @@
23 <include name="Scenes/Scene.Scripting.cs" /> 20 <include name="Scenes/Scene.Scripting.cs" />
24 <include name="Scenes/SceneBase.cs" /> 21 <include name="Scenes/SceneBase.cs" />
25 <include name="Scenes/SceneObject.cs" /> 22 <include name="Scenes/SceneObject.cs" />
23 <include name="Scenes/ScenePresence.Animations.cs" />
24 <include name="Scenes/ScenePresence.cs" />
25 <include name="Scenes/ScenePresence.Update.cs" />
26 <include name="Scenes/scripting/IScriptContext.cs" /> 26 <include name="Scenes/scripting/IScriptContext.cs" />
27 <include name="Scenes/scripting/IScriptEntity.cs" /> 27 <include name="Scenes/scripting/IScriptEntity.cs" />
28 <include name="Scenes/scripting/IScriptHandler.cs" /> 28 <include name="Scenes/scripting/IScriptHandler.cs" />
diff --git a/OpenSim/OpenSim.Region/ParcelManager.cs b/OpenSim/OpenSim.Region/ParcelManager.cs
index 3b0785f..d15d77d 100644
--- a/OpenSim/OpenSim.Region/ParcelManager.cs
+++ b/OpenSim/OpenSim.Region/ParcelManager.cs
@@ -33,7 +33,7 @@ using libsecondlife.Packets;
33using OpenSim.Framework.Interfaces; 33using OpenSim.Framework.Interfaces;
34using OpenSim.Framework.Types; 34using OpenSim.Framework.Types;
35using OpenSim.Region.Scenes; 35using OpenSim.Region.Scenes;
36using Avatar = OpenSim.Region.Scenes.Avatar; 36using Avatar = OpenSim.Region.Scenes.ScenePresence;
37 37
38namespace OpenSim.Region 38namespace OpenSim.Region
39{ 39{
diff --git a/OpenSim/OpenSim.Region/Scenes/Primitive.cs b/OpenSim/OpenSim.Region/Scenes/Primitive.cs
index 929f0b5..39b3fbc 100644
--- a/OpenSim/OpenSim.Region/Scenes/Primitive.cs
+++ b/OpenSim/OpenSim.Region/Scenes/Primitive.cs
@@ -419,7 +419,7 @@ namespace OpenSim.Region.Scenes
419 /// </summary> 419 /// </summary>
420 public void SendFullUpdateToAllClients() 420 public void SendFullUpdateToAllClients()
421 { 421 {
422 List<Avatar> avatars = this.m_world.RequestAvatarList(); 422 List<ScenePresence> avatars = this.m_world.RequestAvatarList();
423 for (int i = 0; i < avatars.Count; i++) 423 for (int i = 0; i < avatars.Count; i++)
424 { 424 {
425 this.SendFullUpdateToClient(avatars[i].ControllingClient); 425 this.SendFullUpdateToClient(avatars[i].ControllingClient);
@@ -452,7 +452,7 @@ namespace OpenSim.Region.Scenes
452 /// </summary> 452 /// </summary>
453 public void SendTerseUpdateToALLClients() 453 public void SendTerseUpdateToALLClients()
454 { 454 {
455 List<Avatar> avatars = this.m_world.RequestAvatarList(); 455 List<ScenePresence> avatars = this.m_world.RequestAvatarList();
456 for (int i = 0; i < avatars.Count; i++) 456 for (int i = 0; i < avatars.Count; i++)
457 { 457 {
458 this.SendTerseUpdateToClient(avatars[i].ControllingClient); 458 this.SendTerseUpdateToClient(avatars[i].ControllingClient);
diff --git a/OpenSim/OpenSim.Region/Scenes/Scene.PacketHandlers.cs b/OpenSim/OpenSim.Region/Scenes/Scene.PacketHandlers.cs
index 35a3bda..75fe779 100644
--- a/OpenSim/OpenSim.Region/Scenes/Scene.PacketHandlers.cs
+++ b/OpenSim/OpenSim.Region/Scenes/Scene.PacketHandlers.cs
@@ -75,7 +75,7 @@ namespace OpenSim.Region.Scenes
75 public void SimChat(byte[] message, byte type, LLVector3 fromPos, string fromName, LLUUID fromAgentID) 75 public void SimChat(byte[] message, byte type, LLVector3 fromPos, string fromName, LLUUID fromAgentID)
76 { 76 {
77 Console.WriteLine("Chat message"); 77 Console.WriteLine("Chat message");
78 Avatar avatar = null; 78 ScenePresence avatar = null;
79 foreach (IClientAPI client in m_clientThreads.Values) 79 foreach (IClientAPI client in m_clientThreads.Values)
80 { 80 {
81 int dis = -1000; 81 int dis = -1000;
diff --git a/OpenSim/OpenSim.Region/Scenes/Scene.Scripting.cs b/OpenSim/OpenSim.Region/Scenes/Scene.Scripting.cs
index 6317e43..7b53388 100644
--- a/OpenSim/OpenSim.Region/Scenes/Scene.Scripting.cs
+++ b/OpenSim/OpenSim.Region/Scenes/Scene.Scripting.cs
@@ -169,7 +169,7 @@ namespace OpenSim.Region.Scenes
169 uint res = 0; 169 uint res = 0;
170 foreach (Entity entity in this.Entities.Values) 170 foreach (Entity entity in this.Entities.Values)
171 { 171 {
172 if (entity is Avatar) 172 if (entity is ScenePresence)
173 { 173 {
174 res = entity.LocalId; 174 res = entity.LocalId;
175 } 175 }
diff --git a/OpenSim/OpenSim.Region/Scenes/Scene.cs b/OpenSim/OpenSim.Region/Scenes/Scene.cs
index ffcc0c8..74b4945 100644
--- a/OpenSim/OpenSim.Region/Scenes/Scene.cs
+++ b/OpenSim/OpenSim.Region/Scenes/Scene.cs
@@ -46,12 +46,12 @@ using OpenSim.Caches;
46 46
47namespace OpenSim.Region.Scenes 47namespace OpenSim.Region.Scenes
48{ 48{
49 public delegate bool FilterAvatarList(Avatar avatar); 49 public delegate bool FilterAvatarList(ScenePresence avatar);
50 50
51 public partial class Scene : SceneBase, ILocalStorageReceiver, IScriptAPI 51 public partial class Scene : SceneBase, ILocalStorageReceiver, IScriptAPI
52 { 52 {
53 protected System.Timers.Timer m_heartbeatTimer = new System.Timers.Timer(); 53 protected System.Timers.Timer m_heartbeatTimer = new System.Timers.Timer();
54 protected Dictionary<libsecondlife.LLUUID, Avatar> Avatars; 54 protected Dictionary<libsecondlife.LLUUID, ScenePresence> Avatars;
55 protected Dictionary<libsecondlife.LLUUID, Primitive> Prims; 55 protected Dictionary<libsecondlife.LLUUID, Primitive> Prims;
56 private PhysicsScene phyScene; 56 private PhysicsScene phyScene;
57 private float timeStep = 0.1f; 57 private float timeStep = 0.1f;
@@ -66,7 +66,7 @@ namespace OpenSim.Region.Scenes
66 protected AuthenticateSessionsBase authenticateHandler; 66 protected AuthenticateSessionsBase authenticateHandler;
67 protected RegionCommsListener regionCommsHost; 67 protected RegionCommsListener regionCommsHost;
68 protected CommunicationsManager commsManager; 68 protected CommunicationsManager commsManager;
69 69
70 70
71 public ParcelManager parcelManager; 71 public ParcelManager parcelManager;
72 public EstateManager estateManager; 72 public EstateManager estateManager;
@@ -119,14 +119,14 @@ namespace OpenSim.Region.Scenes
119 119
120 OpenSim.Framework.Console.MainLog.Instance.Verbose( "World.cs - creating new entitities instance"); 120 OpenSim.Framework.Console.MainLog.Instance.Verbose( "World.cs - creating new entitities instance");
121 Entities = new Dictionary<libsecondlife.LLUUID, Entity>(); 121 Entities = new Dictionary<libsecondlife.LLUUID, Entity>();
122 Avatars = new Dictionary<LLUUID, Avatar>(); 122 Avatars = new Dictionary<LLUUID, ScenePresence>();
123 Prims = new Dictionary<LLUUID, Primitive>(); 123 Prims = new Dictionary<LLUUID, Primitive>();
124 124
125 OpenSim.Framework.Console.MainLog.Instance.Verbose( "World.cs - creating LandMap"); 125 OpenSim.Framework.Console.MainLog.Instance.Verbose( "World.cs - creating LandMap");
126 TerrainManager = new TerrainManager(new SecondLife()); 126 TerrainManager = new TerrainManager(new SecondLife());
127 Terrain = new TerrainEngine(); 127 Terrain = new TerrainEngine();
128 128
129 Avatar.LoadAnims(); 129 ScenePresence.LoadAnims();
130 } 130 }
131 catch (Exception e) 131 catch (Exception e)
132 { 132 {
@@ -209,7 +209,7 @@ namespace OpenSim.Region.Scenes
209 OpenSim.Framework.Console.MainLog.Instance.Warn("World.cs: Update() - Failed with exception " + e.ToString()); 209 OpenSim.Framework.Console.MainLog.Instance.Warn("World.cs: Update() - Failed with exception " + e.ToString());
210 } 210 }
211 updateLock.ReleaseMutex(); 211 updateLock.ReleaseMutex();
212 212
213 } 213 }
214 214
215 /// <summary> 215 /// <summary>
@@ -408,6 +408,7 @@ namespace OpenSim.Region.Scenes
408 /// <summary> 408 /// <summary>
409 /// Loads the World heightmap 409 /// Loads the World heightmap
410 /// </summary> 410 /// </summary>
411 ///
411 public override void LoadWorldMap() 412 public override void LoadWorldMap()
412 { 413 {
413 try 414 try
@@ -415,16 +416,16 @@ namespace OpenSim.Region.Scenes
415 float[] map = this.localStorage.LoadWorld(); 416 float[] map = this.localStorage.LoadWorld();
416 if (map == null) 417 if (map == null)
417 { 418 {
418 // Console.WriteLine("creating new terrain"); 419 // Console.WriteLine("creating new terrain");
419 // this.Terrain.hills(); 420 // this.Terrain.hills();
420 421
421 // this.localStorage.SaveMap(this.Terrain.getHeights1D()); 422 // this.localStorage.SaveMap(this.Terrain.getHeights1D());
422 if (string.IsNullOrEmpty(this.m_regInfo.estateSettings.terrainFile)) 423 if (string.IsNullOrEmpty(this.m_regInfo.estateSettings.terrainFile))
423 { 424 {
424 Console.WriteLine("No default terrain, procedurally generating..."); 425 Console.WriteLine("No default terrain, procedurally generating...");
425 this.Terrain.hills(); 426 this.Terrain.hills();
426 427
427 // this.localStorage.SaveMap(this.Terrain.getHeights1D()); 428 // this.localStorage.SaveMap(this.Terrain.getHeights1D());
428 } 429 }
429 else 430 else
430 { 431 {
@@ -438,7 +439,7 @@ namespace OpenSim.Region.Scenes
438 Console.WriteLine("Unable to load default terrain, procedurally generating instead..."); 439 Console.WriteLine("Unable to load default terrain, procedurally generating instead...");
439 Terrain.hills(); 440 Terrain.hills();
440 } 441 }
441 // this.localStorage.SaveMap(this.Terrain.getHeights1D()); 442 // this.localStorage.SaveMap(this.Terrain.getHeights1D());
442 } 443 }
443 } 444 }
444 else 445 else
@@ -447,7 +448,7 @@ namespace OpenSim.Region.Scenes
447 } 448 }
448 449
449 CreateTerrainTexture(); 450 CreateTerrainTexture();
450 451
451 } 452 }
452 catch (Exception e) 453 catch (Exception e)
453 { 454 {
@@ -455,7 +456,6 @@ namespace OpenSim.Region.Scenes
455 } 456 }
456 } 457 }
457 458
458
459 /// <summary> 459 /// <summary>
460 /// 460 ///
461 /// </summary> 461 /// </summary>
@@ -520,15 +520,19 @@ namespace OpenSim.Region.Scenes
520 { 520 {
521 try 521 try
522 { 522 {
523
523 // MainLog.Instance.Notice("World.cs: AddNewPrim() - Creating new prim"); 524 // MainLog.Instance.Notice("World.cs: AddNewPrim() - Creating new prim");
525
524 Primitive prim = new Primitive(m_regionHandle, this, addPacket, ownerID, this._primCount); 526 Primitive prim = new Primitive(m_regionHandle, this, addPacket, ownerID, this._primCount);
525 527
526 this.Entities.Add(prim.uuid, prim); 528 this.Entities.Add(prim.uuid, prim);
527 this._primCount++; 529 this._primCount++;
528 } 530 }
529 catch (Exception e) 531 catch (Exception e)
530 { 532 {
533
531 // MainLog.Instance.Warn("World.cs: AddNewPrim() - Failed with exception " + e.ToString()); 534 // MainLog.Instance.Warn("World.cs: AddNewPrim() - Failed with exception " + e.ToString());
535
532 } 536 }
533 } 537 }
534 538
@@ -542,16 +546,16 @@ namespace OpenSim.Region.Scenes
542 /// <param name="remoteClient"></param 546 /// <param name="remoteClient"></param
543 /// <param name="agentID"></param> 547 /// <param name="agentID"></param>
544 /// <param name="child"></param> 548 /// <param name="child"></param>
545 public override void AddNewAvatar(IClientAPI remoteClient, LLUUID agentID, bool child) 549 public override void AddNewClient(IClientAPI remoteClient, LLUUID agentID, bool child)
546 { 550 {
547 remoteClient.OnRegionHandShakeReply += new GenericCall(this.SendLayerData); 551 remoteClient.OnRegionHandShakeReply += this.SendLayerData;
548 //remoteClient.OnRequestWearables += new GenericCall(this.GetInitialPrims); 552 //remoteClient.OnRequestWearables += new GenericCall(this.GetInitialPrims);
549 remoteClient.OnChatFromViewer += new ChatFromViewer(this.SimChat); 553 remoteClient.OnChatFromViewer += this.SimChat;
550 remoteClient.OnRequestWearables += new GenericCall(this.InformClientOfNeighbours); 554 remoteClient.OnRequestWearables += this.InformClientOfNeighbours;
551 remoteClient.OnAddPrim += new GenericCall4(this.AddNewPrim); 555 remoteClient.OnAddPrim += this.AddNewPrim;
552 remoteClient.OnUpdatePrimPosition += new UpdatePrimVector(this.UpdatePrimPosition); 556 remoteClient.OnUpdatePrimPosition += this.UpdatePrimPosition;
553 remoteClient.OnRequestMapBlocks += new RequestMapBlocks(this.RequestMapBlocks); 557 remoteClient.OnRequestMapBlocks += this.RequestMapBlocks;
554 remoteClient.OnTeleportLocationRequest += new TeleportLocationRequest(this.RequestTeleportLocation); 558 remoteClient.OnTeleportLocationRequest += this.RequestTeleportLocation;
555 559
556 /* remoteClient.OnParcelPropertiesRequest += new ParcelPropertiesRequest(parcelManager.handleParcelPropertiesRequest); 560 /* remoteClient.OnParcelPropertiesRequest += new ParcelPropertiesRequest(parcelManager.handleParcelPropertiesRequest);
557 remoteClient.OnParcelDivideRequest += new ParcelDivideRequest(parcelManager.handleParcelDivideRequest); 561 remoteClient.OnParcelDivideRequest += new ParcelDivideRequest(parcelManager.handleParcelDivideRequest);
@@ -560,11 +564,12 @@ namespace OpenSim.Region.Scenes
560 remoteClient.OnEstateOwnerMessage += new EstateOwnerMessageRequest(estateManager.handleEstateOwnerMessage); 564 remoteClient.OnEstateOwnerMessage += new EstateOwnerMessageRequest(estateManager.handleEstateOwnerMessage);
561 */ 565 */
562 566
563 Avatar newAvatar = null; 567 ScenePresence newAvatar = null;
564 try 568 try
565 { 569 {
570
566 OpenSim.Framework.Console.MainLog.Instance.Verbose( "World.cs:AddViewerAgent() - Creating new avatar for remote viewer agent"); 571 OpenSim.Framework.Console.MainLog.Instance.Verbose( "World.cs:AddViewerAgent() - Creating new avatar for remote viewer agent");
567 newAvatar = new Avatar(remoteClient, this, this.m_regInfo); 572 newAvatar = new ScenePresence(remoteClient, this, this.m_regInfo);
568 OpenSim.Framework.Console.MainLog.Instance.Verbose( "World.cs:AddViewerAgent() - Adding new avatar to world"); 573 OpenSim.Framework.Console.MainLog.Instance.Verbose( "World.cs:AddViewerAgent() - Adding new avatar to world");
569 OpenSim.Framework.Console.MainLog.Instance.Verbose( "World.cs:AddViewerAgent() - Starting RegionHandshake "); 574 OpenSim.Framework.Console.MainLog.Instance.Verbose( "World.cs:AddViewerAgent() - Starting RegionHandshake ");
570 575
@@ -607,13 +612,13 @@ namespace OpenSim.Region.Scenes
607 return; 612 return;
608 } 613 }
609 614
610 615
611 616
612 /// <summary> 617 /// <summary>
613 /// 618 ///
614 /// </summary> 619 /// </summary>
615 /// <param name="agentID"></param> 620 /// <param name="agentID"></param>
616 public override void RemoveAvatar(LLUUID agentID) 621 public override void RemoveClient(LLUUID agentID)
617 { 622 {
618 return; 623 return;
619 } 624 }
@@ -627,11 +632,11 @@ namespace OpenSim.Region.Scenes
627 /// Request a List of all Avatars in this World 632 /// Request a List of all Avatars in this World
628 /// </summary> 633 /// </summary>
629 /// <returns></returns> 634 /// <returns></returns>
630 public List<Avatar> RequestAvatarList() 635 public List<ScenePresence> RequestAvatarList()
631 { 636 {
632 List<Avatar> result = new List<Avatar>(); 637 List<ScenePresence> result = new List<ScenePresence>();
633 638
634 foreach (Avatar avatar in Avatars.Values) 639 foreach (ScenePresence avatar in Avatars.Values)
635 { 640 {
636 result.Add(avatar); 641 result.Add(avatar);
637 } 642 }
@@ -643,11 +648,11 @@ namespace OpenSim.Region.Scenes
643 /// Request a filtered list of Avatars in this World 648 /// Request a filtered list of Avatars in this World
644 /// </summary> 649 /// </summary>
645 /// <returns></returns> 650 /// <returns></returns>
646 public List<Avatar> RequestAvatarList(FilterAvatarList filter) 651 public List<ScenePresence> RequestAvatarList(FilterAvatarList filter)
647 { 652 {
648 List<Avatar> result = new List<Avatar>(); 653 List<ScenePresence> result = new List<ScenePresence>();
649 654
650 foreach (Avatar avatar in Avatars.Values) 655 foreach (ScenePresence avatar in Avatars.Values)
651 { 656 {
652 if (filter(avatar)) 657 if (filter(avatar))
653 { 658 {
@@ -663,7 +668,7 @@ namespace OpenSim.Region.Scenes
663 /// </summary> 668 /// </summary>
664 /// <param name="avatarID"></param> 669 /// <param name="avatarID"></param>
665 /// <returns></returns> 670 /// <returns></returns>
666 public Avatar RequestAvatar(LLUUID avatarID) 671 public ScenePresence RequestAvatar(LLUUID avatarID)
667 { 672 {
668 if (this.Avatars.ContainsKey(avatarID)) 673 if (this.Avatars.ContainsKey(avatarID))
669 { 674 {
@@ -712,7 +717,7 @@ namespace OpenSim.Region.Scenes
712 /// <param name="agent"></param> 717 /// <param name="agent"></param>
713 public void NewUserConnection(ulong regionHandle, AgentCircuitData agent) 718 public void NewUserConnection(ulong regionHandle, AgentCircuitData agent)
714 { 719 {
715 // Console.WriteLine("World.cs - add new user connection"); 720 // Console.WriteLine("World.cs - add new user connection");
716 //should just check that its meant for this region 721 //should just check that its meant for this region
717 if (regionHandle == this.m_regInfo.RegionHandle) 722 if (regionHandle == this.m_regInfo.RegionHandle)
718 { 723 {
@@ -777,7 +782,7 @@ namespace OpenSim.Region.Scenes
777 { 782 {
778 List<MapBlockData> mapBlocks; 783 List<MapBlockData> mapBlocks;
779 mapBlocks = this.commsManager.GridServer.RequestNeighbourMapBlocks(minX, minY, maxX, maxY); 784 mapBlocks = this.commsManager.GridServer.RequestNeighbourMapBlocks(minX, minY, maxX, maxY);
780 785
781 remoteClient.SendMapBlock(mapBlocks); 786 remoteClient.SendMapBlock(mapBlocks);
782 } 787 }
783 788
diff --git a/OpenSim/OpenSim.Region/Scenes/SceneBase.cs b/OpenSim/OpenSim.Region/Scenes/SceneBase.cs
index 05c2aba..e650127 100644
--- a/OpenSim/OpenSim.Region/Scenes/SceneBase.cs
+++ b/OpenSim/OpenSim.Region/Scenes/SceneBase.cs
@@ -43,7 +43,7 @@ using OpenSim.Caches;
43 43
44namespace OpenSim.Region.Scenes 44namespace OpenSim.Region.Scenes
45{ 45{
46 public abstract class SceneBase : IWorld 46 public abstract class SceneBase : IWorld
47 { 47 {
48 public Dictionary<libsecondlife.LLUUID, Entity> Entities; 48 public Dictionary<libsecondlife.LLUUID, Entity> Entities;
49 protected Dictionary<uint, IClientAPI> m_clientThreads; 49 protected Dictionary<uint, IClientAPI> m_clientThreads;
@@ -98,13 +98,13 @@ namespace OpenSim.Region.Scenes
98 /// <param name="remoteClient"></param> 98 /// <param name="remoteClient"></param>
99 /// <param name="agentID"></param> 99 /// <param name="agentID"></param>
100 /// <param name="child"></param> 100 /// <param name="child"></param>
101 public abstract void AddNewAvatar(IClientAPI remoteClient, LLUUID agentID, bool child); 101 public abstract void AddNewClient(IClientAPI remoteClient, LLUUID agentID, bool child);
102 102
103 /// <summary> 103 /// <summary>
104 /// 104 ///
105 /// </summary> 105 /// </summary>
106 /// <param name="agentID"></param> 106 /// <param name="agentID"></param>
107 public abstract void RemoveAvatar(LLUUID agentID); 107 public abstract void RemoveClient(LLUUID agentID);
108 108
109 #endregion 109 #endregion
110 110
diff --git a/OpenSim/OpenSim.Region/Scenes/Avatar.Animations.cs b/OpenSim/OpenSim.Region/Scenes/ScenePresence.Animations.cs
index cc0fb7a..f0a8721 100644
--- a/OpenSim/OpenSim.Region/Scenes/Avatar.Animations.cs
+++ b/OpenSim/OpenSim.Region/Scenes/ScenePresence.Animations.cs
@@ -33,7 +33,7 @@ using System.Xml;
33 33
34namespace OpenSim.Region.Scenes 34namespace OpenSim.Region.Scenes
35{ 35{
36 partial class Avatar 36 partial class ScenePresence
37 { 37 {
38 public class AvatarAnimations 38 public class AvatarAnimations
39 { 39 {
@@ -66,7 +66,7 @@ namespace OpenSim.Region.Scenes
66 66
67 // OpenSim.Framework.Console.MainLog.Instance.Verbose("Loaded " + AnimsLLUUID.Count.ToString() + " animation(s)"); 67 // OpenSim.Framework.Console.MainLog.Instance.Verbose("Loaded " + AnimsLLUUID.Count.ToString() + " animation(s)");
68 68
69 foreach (KeyValuePair<string, LLUUID> kp in OpenSim.Region.Scenes.Avatar.Animations.AnimsLLUUID) 69 foreach (KeyValuePair<string, LLUUID> kp in OpenSim.Region.Scenes.ScenePresence.Animations.AnimsLLUUID)
70 { 70 {
71 AnimsNames.Add(kp.Value, kp.Key); 71 AnimsNames.Add(kp.Value, kp.Key);
72 } 72 }
diff --git a/OpenSim/OpenSim.Region/Scenes/Avatar.Update.cs b/OpenSim/OpenSim.Region/Scenes/ScenePresence.Update.cs
index 8b27efe..3885c0d 100644
--- a/OpenSim/OpenSim.Region/Scenes/Avatar.Update.cs
+++ b/OpenSim/OpenSim.Region/Scenes/ScenePresence.Update.cs
@@ -36,7 +36,7 @@ using OpenSim.Framework.Types;
36 36
37namespace OpenSim.Region.Scenes 37namespace OpenSim.Region.Scenes
38{ 38{
39 partial class Avatar 39 partial class ScenePresence
40 { 40 {
41 /// <summary> 41 /// <summary>
42 /// 42 ///
@@ -68,7 +68,7 @@ namespace OpenSim.Region.Scenes
68 /// 68 ///
69 /// </summary> 69 /// </summary>
70 /// <param name="remoteAvatar"></param> 70 /// <param name="remoteAvatar"></param>
71 public void SendUpdateToOtherClient(Avatar remoteAvatar) 71 public void SendUpdateToOtherClient(ScenePresence remoteAvatar)
72 { 72 {
73 73
74 } 74 }
@@ -87,7 +87,7 @@ namespace OpenSim.Region.Scenes
87 /// </summary> 87 /// </summary>
88 public void SendInitialPosition() 88 public void SendInitialPosition()
89 { 89 {
90 this.ControllingClient.SendAvatarData(m_regionInfo, this.firstname, this.lastname, this.uuid, this.LocalId, this.Pos); 90 this.ControllingClient.SendAvatarData(m_regionInfo.RegionHandle, this.firstname, this.lastname, this.uuid, this.LocalId, this.Pos);
91 } 91 }
92 92
93 /// <summary> 93 /// <summary>
@@ -111,7 +111,7 @@ namespace OpenSim.Region.Scenes
111 /// 111 ///
112 /// </summary> 112 /// </summary>
113 /// <param name="avatarInfo"></param> 113 /// <param name="avatarInfo"></param>
114 public void SendAppearanceToOtherAgent(Avatar avatarInfo) 114 public void SendAppearanceToOtherAgent(ScenePresence avatarInfo)
115 { 115 {
116 116
117 } 117 }
@@ -161,7 +161,7 @@ namespace OpenSim.Region.Scenes
161 LLVector3 pos2 = this.Pos; 161 LLVector3 pos2 = this.Pos;
162 LLVector3 vel = this.Velocity; 162 LLVector3 vel = this.Velocity;
163 163
164 float timeStep = 0.3f; 164 float timeStep = 0.2f;
165 pos2.X = pos2.X + (vel.X * timeStep); 165 pos2.X = pos2.X + (vel.X * timeStep);
166 pos2.Y = pos2.Y + (vel.Y * timeStep); 166 pos2.Y = pos2.Y + (vel.Y * timeStep);
167 pos2.Z = pos2.Z + (vel.Z * timeStep); 167 pos2.Z = pos2.Z + (vel.Z * timeStep);
diff --git a/OpenSim/OpenSim.Region/Scenes/Avatar.cs b/OpenSim/OpenSim.Region/Scenes/ScenePresence.cs
index 1149896..3fbda39 100644
--- a/OpenSim/OpenSim.Region/Scenes/Avatar.cs
+++ b/OpenSim/OpenSim.Region/Scenes/ScenePresence.cs
@@ -39,7 +39,7 @@ using Axiom.MathLib;
39 39
40namespace OpenSim.Region.Scenes 40namespace OpenSim.Region.Scenes
41{ 41{
42 public partial class Avatar : Entity 42 public partial class ScenePresence : Entity
43 { 43 {
44 public static bool PhysicsEngineFlying = false; 44 public static bool PhysicsEngineFlying = false;
45 public static AvatarAnimations Animations; 45 public static AvatarAnimations Animations;
@@ -70,7 +70,7 @@ namespace OpenSim.Region.Scenes
70 /// <param name="world"></param> 70 /// <param name="world"></param>
71 /// <param name="clientThreads"></param> 71 /// <param name="clientThreads"></param>
72 /// <param name="regionDat"></param> 72 /// <param name="regionDat"></param>
73 public Avatar(IClientAPI theClient, Scene world, RegionInfo reginfo) 73 public ScenePresence(IClientAPI theClient, Scene world, RegionInfo reginfo)
74 { 74 {
75 75
76 m_world = world; 76 m_world = world;
@@ -93,15 +93,15 @@ namespace OpenSim.Region.Scenes
93 Wearables = AvatarWearable.DefaultWearables; 93 Wearables = AvatarWearable.DefaultWearables;
94 94
95 this.avatarAppearanceTexture = new LLObject.TextureEntry(new LLUUID("00000000-0000-0000-5005-000000000005")); 95 this.avatarAppearanceTexture = new LLObject.TextureEntry(new LLUUID("00000000-0000-0000-5005-000000000005"));
96 96
97 //register for events 97 //register for events
98 ControllingClient.OnRequestWearables += new GenericCall(this.SendOurAppearance); 98 ControllingClient.OnRequestWearables += this.SendOurAppearance;
99 //ControllingClient.OnSetAppearance += new SetAppearance(this.SetAppearance); 99 //ControllingClient.OnSetAppearance += new SetAppearance(this.SetAppearance);
100 ControllingClient.OnCompleteMovementToRegion += new GenericCall2(this.CompleteMovement); 100 ControllingClient.OnCompleteMovementToRegion += this.CompleteMovement;
101 ControllingClient.OnCompleteMovementToRegion += new GenericCall2(this.SendInitialPosition); 101 ControllingClient.OnCompleteMovementToRegion += this.SendInitialPosition;
102 ControllingClient.OnAgentUpdate += new UpdateAgent(this.HandleAgentUpdate); 102 ControllingClient.OnAgentUpdate += this.HandleAgentUpdate;
103 // ControllingClient.OnStartAnim += new StartAnim(this.SendAnimPack); 103 // ControllingClient.OnStartAnim += new StartAnim(this.SendAnimPack);
104 // ControllingClient.OnChildAgentStatus += new StatusChange(this.ChildStatusChange); 104 // ControllingClient.OnChildAgentStatus += new StatusChange(this.ChildStatusChange);
105 //ControllingClient.OnStopMovement += new GenericCall2(this.StopMovement); 105 //ControllingClient.OnStopMovement += new GenericCall2(this.StopMovement);
106 106
107 } 107 }
@@ -202,7 +202,7 @@ namespace OpenSim.Region.Scenes
202 /// </summary> 202 /// </summary>
203 public void SendTerseUpdateToALLClients() 203 public void SendTerseUpdateToALLClients()
204 { 204 {
205 List<Avatar> avatars = this.m_world.RequestAvatarList(); 205 List<ScenePresence> avatars = this.m_world.RequestAvatarList();
206 for (int i = 0; i < avatars.Count; i++) 206 for (int i = 0; i < avatars.Count; i++)
207 { 207 {
208 this.SendTerseUpdateToClient(avatars[i].ControllingClient); 208 this.SendTerseUpdateToClient(avatars[i].ControllingClient);
diff --git a/OpenSim/OpenSim.Region/Scenes/scripting/IScriptHandler.cs b/OpenSim/OpenSim.Region/Scenes/scripting/IScriptHandler.cs
index 581ad43..797998d 100644
--- a/OpenSim/OpenSim.Region/Scenes/scripting/IScriptHandler.cs
+++ b/OpenSim/OpenSim.Region/Scenes/scripting/IScriptHandler.cs
@@ -32,7 +32,7 @@ using libsecondlife;
32using OpenSim.Physics.Manager; 32using OpenSim.Physics.Manager;
33using OpenSim.Region; 33using OpenSim.Region;
34using OpenSim.Region.Scenes; 34using OpenSim.Region.Scenes;
35using Avatar=OpenSim.Region.Scenes.Avatar; 35using Avatar=OpenSim.Region.Scenes.ScenePresence;
36using Primitive = OpenSim.Region.Scenes.Primitive; 36using Primitive = OpenSim.Region.Scenes.Primitive;
37 37
38namespace OpenSim.Region.Scripting 38namespace OpenSim.Region.Scripting
diff --git a/OpenSim/OpenSim.RegionServer/ClientView.API.cs b/OpenSim/OpenSim.RegionServer/ClientView.API.cs
index ee6d741..1895fb9 100644
--- a/OpenSim/OpenSim.RegionServer/ClientView.API.cs
+++ b/OpenSim/OpenSim.RegionServer/ClientView.API.cs
@@ -483,13 +483,13 @@ namespace OpenSim
483 /// <param name="avatarID"></param> 483 /// <param name="avatarID"></param>
484 /// <param name="avatarLocalID"></param> 484 /// <param name="avatarLocalID"></param>
485 /// <param name="Pos"></param> 485 /// <param name="Pos"></param>
486 public void SendAvatarData(RegionInfo regionInfo, string firstName, string lastName, LLUUID avatarID, uint avatarLocalID, LLVector3 Pos) 486 public void SendAvatarData(ulong regionHandle, string firstName, string lastName, LLUUID avatarID, uint avatarLocalID, LLVector3 Pos)
487 { 487 {
488 System.Text.Encoding _enc = System.Text.Encoding.ASCII; 488 System.Text.Encoding _enc = System.Text.Encoding.ASCII;
489 //send a objectupdate packet with information about the clients avatar 489 //send a objectupdate packet with information about the clients avatar
490 490
491 ObjectUpdatePacket objupdate = new ObjectUpdatePacket(); 491 ObjectUpdatePacket objupdate = new ObjectUpdatePacket();
492 objupdate.RegionData.RegionHandle = regionInfo.RegionHandle; 492 objupdate.RegionData.RegionHandle = regionHandle;
493 objupdate.RegionData.TimeDilation = 64096; 493 objupdate.RegionData.TimeDilation = 64096;
494 objupdate.ObjectData = new libsecondlife.Packets.ObjectUpdatePacket.ObjectDataBlock[1]; 494 objupdate.ObjectData = new libsecondlife.Packets.ObjectUpdatePacket.ObjectDataBlock[1];
495 objupdate.ObjectData[0] = this.CreateDefaultAvatarPacket(); 495 objupdate.ObjectData[0] = this.CreateDefaultAvatarPacket();
diff --git a/OpenSim/OpenSim.RegionServer/ClientView.cs b/OpenSim/OpenSim.RegionServer/ClientView.cs
index b089bdc..5d15ae3 100644
--- a/OpenSim/OpenSim.RegionServer/ClientView.cs
+++ b/OpenSim/OpenSim.RegionServer/ClientView.cs
@@ -71,7 +71,7 @@ namespace OpenSim
71 71
72 private AgentAssetUpload UploadAssets; 72 private AgentAssetUpload UploadAssets;
73 private LLUUID newAssetFolder = LLUUID.Zero; 73 private LLUUID newAssetFolder = LLUUID.Zero;
74 private bool debug = false; 74 private bool debug = true;
75 protected IWorld m_world; 75 protected IWorld m_world;
76 private Dictionary<uint, ClientView> m_clientThreads; 76 private Dictionary<uint, ClientView> m_clientThreads;
77 private AssetCache m_assetCache; 77 private AssetCache m_assetCache;
@@ -124,7 +124,7 @@ namespace OpenSim
124 } 124 }
125 125
126 this.m_inventoryCache.ClientLeaving(this.AgentID, null); 126 this.m_inventoryCache.ClientLeaving(this.AgentID, null);
127 m_world.RemoveAvatar(this.AgentId); 127 m_world.RemoveClient(this.AgentId);
128 128
129 m_clientThreads.Remove(this.CircuitCode); 129 m_clientThreads.Remove(this.CircuitCode);
130 m_networkServer.RemoveClientCircuit(this.CircuitCode); 130 m_networkServer.RemoveClientCircuit(this.CircuitCode);
@@ -211,7 +211,7 @@ namespace OpenSim
211 protected virtual void InitNewClient() 211 protected virtual void InitNewClient()
212 { 212 {
213 OpenSim.Framework.Console.MainLog.Instance.Verbose( "OpenSimClient.cs:InitNewClient() - Adding viewer agent to world"); 213 OpenSim.Framework.Console.MainLog.Instance.Verbose( "OpenSimClient.cs:InitNewClient() - Adding viewer agent to world");
214 this.m_world.AddNewAvatar(this, this.AgentID, false); 214 this.m_world.AddNewClient(this, this.AgentID, false);
215 } 215 }
216 216
217 protected virtual void AuthUser() 217 protected virtual void AuthUser()
diff --git a/OpenSim/OpenSim.RegionServer/OpenSim.RegionServer.dll.build b/OpenSim/OpenSim.RegionServer/OpenSim.RegionServer.dll.build
index 23eca3a..520f826 100644
--- a/OpenSim/OpenSim.RegionServer/OpenSim.RegionServer.dll.build
+++ b/OpenSim/OpenSim.RegionServer/OpenSim.RegionServer.dll.build
@@ -38,6 +38,7 @@
38 <include name="../../bin/OpenSim.Framework.Console.dll" /> 38 <include name="../../bin/OpenSim.Framework.Console.dll" />
39 <include name="../../bin/OpenSim.GenericConfig.Xml.dll" /> 39 <include name="../../bin/OpenSim.GenericConfig.Xml.dll" />
40 <include name="../../bin/OpenSim.Physics.Manager.dll" /> 40 <include name="../../bin/OpenSim.Physics.Manager.dll" />
41 <include name="../../bin/OpenSim.Region.dll" />
41 <include name="../../bin/OpenSim.Servers.dll" /> 42 <include name="../../bin/OpenSim.Servers.dll" />
42 <include name="../../bin/OpenSim.Terrain.BasicTerrain.dll" /> 43 <include name="../../bin/OpenSim.Terrain.BasicTerrain.dll" />
43 <include name="System.dll" /> 44 <include name="System.dll" />