aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tools/pCampBot/BotManager.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-11-03 22:39:06 +0000
committerJustin Clark-Casey (justincc)2011-11-03 22:39:06 +0000
commitf26fdbd8da89ee35a23886defc13b44bc63b1349 (patch)
treeb788fcc4948ab1fc4d3c20d309b5361d3b2c809b /OpenSim/Tools/pCampBot/BotManager.cs
parentMove one of the old physics sleeps out into the main bot loop, so leaving out... (diff)
downloadopensim-SC-f26fdbd8da89ee35a23886defc13b44bc63b1349.zip
opensim-SC-f26fdbd8da89ee35a23886defc13b44bc63b1349.tar.gz
opensim-SC-f26fdbd8da89ee35a23886defc13b44bc63b1349.tar.bz2
opensim-SC-f26fdbd8da89ee35a23886defc13b44bc63b1349.tar.xz
Rename PhysicsBot => Bot since it doesn't just exercise physics anymore
Diffstat (limited to '')
-rw-r--r--OpenSim/Tools/pCampBot/BotManager.cs12
1 files changed, 6 insertions, 6 deletions
diff --git a/OpenSim/Tools/pCampBot/BotManager.cs b/OpenSim/Tools/pCampBot/BotManager.cs
index dac6e0e..704770a 100644
--- a/OpenSim/Tools/pCampBot/BotManager.cs
+++ b/OpenSim/Tools/pCampBot/BotManager.cs
@@ -49,7 +49,7 @@ namespace pCampBot
49 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 49 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
50 50
51 protected CommandConsole m_console; 51 protected CommandConsole m_console;
52 protected List<PhysicsBot> m_lBot; 52 protected List<Bot> m_lBot;
53 protected Random somthing = new Random(Environment.TickCount); 53 protected Random somthing = new Random(Environment.TickCount);
54 protected int numbots = 0; 54 protected int numbots = 0;
55 public IConfig Config { get; private set; } 55 public IConfig Config { get; private set; }
@@ -103,7 +103,7 @@ namespace pCampBot
103// "add bots <number>", 103// "add bots <number>",
104// "Add more bots", HandleAddBots); 104// "Add more bots", HandleAddBots);
105 105
106 m_lBot = new List<PhysicsBot>(); 106 m_lBot = new List<Bot>();
107 } 107 }
108 108
109 /// <summary> 109 /// <summary>
@@ -175,7 +175,7 @@ namespace pCampBot
175 int pos, BotManager bm, List<IBehaviour> behaviours, 175 int pos, BotManager bm, List<IBehaviour> behaviours,
176 string firstName, string lastName, string password, string loginUri) 176 string firstName, string lastName, string password, string loginUri)
177 { 177 {
178 PhysicsBot pb = new PhysicsBot(bm, behaviours, firstName, lastName, password, loginUri); 178 Bot pb = new Bot(bm, behaviours, firstName, lastName, password, loginUri);
179 179
180 pb.OnConnected += handlebotEvent; 180 pb.OnConnected += handlebotEvent;
181 pb.OnDisconnected += handlebotEvent; 181 pb.OnDisconnected += handlebotEvent;
@@ -194,7 +194,7 @@ namespace pCampBot
194 /// </summary> 194 /// </summary>
195 /// <param name="callbot"></param> 195 /// <param name="callbot"></param>
196 /// <param name="eventt"></param> 196 /// <param name="eventt"></param>
197 private void handlebotEvent(PhysicsBot callbot, EventType eventt) 197 private void handlebotEvent(Bot callbot, EventType eventt)
198 { 198 {
199 switch (eventt) 199 switch (eventt)
200 { 200 {
@@ -219,7 +219,7 @@ namespace pCampBot
219 public void doBotShutdown() 219 public void doBotShutdown()
220 { 220 {
221 lock (m_lBot) 221 lock (m_lBot)
222 foreach (PhysicsBot pb in m_lBot) 222 foreach (Bot pb in m_lBot)
223 pb.shutdown(); 223 pb.shutdown();
224 } 224 }
225 225
@@ -245,7 +245,7 @@ namespace pCampBot
245 245
246 lock (m_lBot) 246 lock (m_lBot)
247 { 247 {
248 foreach (PhysicsBot pb in m_lBot) 248 foreach (Bot pb in m_lBot)
249 { 249 {
250 MainConsole.Instance.OutputFormat( 250 MainConsole.Instance.OutputFormat(
251 outputFormat, pb.Name, (pb.IsConnected ? "Connected" : "Disconnected")); 251 outputFormat, pb.Name, (pb.IsConnected ? "Connected" : "Disconnected"));