diff options
Diffstat (limited to 'OpenSim/TestSuite/PhysicsBot.cs')
-rw-r--r-- | OpenSim/TestSuite/PhysicsBot.cs | 15 |
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 | ||
28 | using System; | 28 | using System; |
29 | using System.Collections.Generic; | ||
30 | using System.IO; | 29 | using System.IO; |
31 | using System.Text; | 30 | using System.Threading; |
31 | using System.Timers; | ||
32 | using libsecondlife; | 32 | using libsecondlife; |
33 | using libsecondlife.Packets; | ||
34 | using Nini.Config; | 33 | using Nini.Config; |
35 | using System.Threading; | ||
36 | using OpenSim.Framework; | 34 | using OpenSim.Framework; |
37 | using OpenSim.Framework.Console; | 35 | using OpenSim.Framework.Console; |
38 | using Timer = System.Timers.Timer; | 36 | using Timer=System.Timers.Timer; |
39 | using log4net; | ||
40 | 37 | ||
41 | namespace OpenSim.TestSuite | 38 | namespace 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(); |