aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/OptionalModules/World
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-08-03 23:20:36 +0100
committerJustin Clark-Casey (justincc)2011-08-03 23:20:36 +0100
commit61d49d4f63eafa68d0b63877029da3475d977263 (patch)
treea1d6f6c51ac50a9b9920f4dcd74765e5ad70feee /OpenSim/Region/OptionalModules/World
parentextend move test to check avatar is moving in the right direction after setti... (diff)
downloadopensim-SC-61d49d4f63eafa68d0b63877029da3475d977263.zip
opensim-SC-61d49d4f63eafa68d0b63877029da3475d977263.tar.gz
opensim-SC-61d49d4f63eafa68d0b63877029da3475d977263.tar.bz2
opensim-SC-61d49d4f63eafa68d0b63877029da3475d977263.tar.xz
rename NPC.Autopilot to NPC.MoveToTarget internally. Add method doc to INPCModule
Diffstat (limited to 'OpenSim/Region/OptionalModules/World')
-rw-r--r--OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs2
-rw-r--r--OpenSim/Region/OptionalModules/World/NPC/Tests/NPCModuleTests.cs2
2 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs b/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs
index 1d88e43..f9c41d7 100644
--- a/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs
+++ b/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs
@@ -177,7 +177,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC
177 return npcAvatar.AgentId; 177 return npcAvatar.AgentId;
178 } 178 }
179 179
180 public void Autopilot(UUID agentID, Scene scene, Vector3 pos) 180 public void MoveToTarget(UUID agentID, Scene scene, Vector3 pos)
181 { 181 {
182 lock (m_avatars) 182 lock (m_avatars)
183 { 183 {
diff --git a/OpenSim/Region/OptionalModules/World/NPC/Tests/NPCModuleTests.cs b/OpenSim/Region/OptionalModules/World/NPC/Tests/NPCModuleTests.cs
index 512405a..2e3d431 100644
--- a/OpenSim/Region/OptionalModules/World/NPC/Tests/NPCModuleTests.cs
+++ b/OpenSim/Region/OptionalModules/World/NPC/Tests/NPCModuleTests.cs
@@ -113,7 +113,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC.Tests
113 Assert.That(npc.AbsolutePosition, Is.EqualTo(startPos)); 113 Assert.That(npc.AbsolutePosition, Is.EqualTo(startPos));
114 114
115 Vector3 targetPos = new Vector3(128, 128, 40); 115 Vector3 targetPos = new Vector3(128, 128, 40);
116 npcModule.Autopilot(npc.UUID, scene, targetPos); 116 npcModule.MoveToTarget(npc.UUID, scene, targetPos);
117 117
118 Assert.That(npc.AbsolutePosition, Is.EqualTo(startPos)); 118 Assert.That(npc.AbsolutePosition, Is.EqualTo(startPos));
119 119