aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/TestSuite/PhysicsBot.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/TestSuite/PhysicsBot.cs')
-rw-r--r--OpenSim/TestSuite/PhysicsBot.cs15
1 files changed, 6 insertions, 9 deletions
diff --git a/OpenSim/TestSuite/PhysicsBot.cs b/OpenSim/TestSuite/PhysicsBot.cs
index 792465f..3d6b54c 100644
--- a/OpenSim/TestSuite/PhysicsBot.cs
+++ b/OpenSim/TestSuite/PhysicsBot.cs
@@ -26,17 +26,14 @@
26 */ 26 */
27 27
28using System; 28using System;
29using System.Collections.Generic;
30using System.IO; 29using System.IO;
31using System.Text; 30using System.Threading;
31using System.Timers;
32using libsecondlife; 32using libsecondlife;
33using libsecondlife.Packets;
34using Nini.Config; 33using Nini.Config;
35using System.Threading;
36using OpenSim.Framework; 34using OpenSim.Framework;
37using OpenSim.Framework.Console; 35using OpenSim.Framework.Console;
38using Timer = System.Timers.Timer; 36using Timer=System.Timers.Timer;
39using log4net;
40 37
41namespace OpenSim.TestSuite 38namespace OpenSim.TestSuite
42{ 39{
@@ -55,7 +52,7 @@ namespace OpenSim.TestSuite
55 52
56 protected Timer m_action; // Action Timer 53 protected Timer m_action; // Action Timer
57 54
58 protected Random somthing = new Random(System.Environment.TickCount);// We do stuff randomly here 55 protected Random somthing = new Random(Environment.TickCount);// We do stuff randomly here
59 56
60 57
61 //New instance of a SecondLife client 58 //New instance of a SecondLife client
@@ -76,7 +73,7 @@ namespace OpenSim.TestSuite
76 //We do our actions here. This is where one would 73 //We do our actions here. This is where one would
77 //add additional steps and/or things the bot should do 74 //add additional steps and/or things the bot should do
78 75
79 void m_action_Elapsed(object sender, System.Timers.ElapsedEventArgs e) 76 void m_action_Elapsed(object sender, ElapsedEventArgs e)
80 { 77 {
81 //client.Throttle.Task = 500000f; 78 //client.Throttle.Task = 500000f;
82 //client.Throttle.Set(); 79 //client.Throttle.Set();
@@ -147,7 +144,7 @@ namespace OpenSim.TestSuite
147 if (OnConnected != null) 144 if (OnConnected != null)
148 { 145 {
149 m_action = new Timer(somthing.Next(1000, 10000)); 146 m_action = new Timer(somthing.Next(1000, 10000));
150 m_action.Elapsed += new System.Timers.ElapsedEventHandler(m_action_Elapsed); 147 m_action.Elapsed += new ElapsedEventHandler(m_action_Elapsed);
151 m_action.Start(); 148 m_action.Start();
152 OnConnected(this, EventType.CONNECTED); 149 OnConnected(this, EventType.CONNECTED);
153 client.Self.Jump(); 150 client.Self.Jump();