diff options
author | Adam Frisby | 2008-04-21 07:09:17 +0000 |
---|---|---|
committer | Adam Frisby | 2008-04-21 07:09:17 +0000 |
commit | fef3b3689492dea63693c964bcdbec9f5137eb5e (patch) | |
tree | 7791eef001d85d3e1de863a68f26ff9434d062ca /OpenSim/Tools/pCampBot/PhysicsBot.cs | |
parent | * Terrain Module code has been reformatted to comply with guidelines. (diff) | |
download | opensim-SC_OLD-fef3b3689492dea63693c964bcdbec9f5137eb5e.zip opensim-SC_OLD-fef3b3689492dea63693c964bcdbec9f5137eb5e.tar.gz opensim-SC_OLD-fef3b3689492dea63693c964bcdbec9f5137eb5e.tar.bz2 opensim-SC_OLD-fef3b3689492dea63693c964bcdbec9f5137eb5e.tar.xz |
* Optimised using statements and namespace references across entire project (this took a while to run).
Diffstat (limited to 'OpenSim/Tools/pCampBot/PhysicsBot.cs')
-rw-r--r-- | OpenSim/Tools/pCampBot/PhysicsBot.cs | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/OpenSim/Tools/pCampBot/PhysicsBot.cs b/OpenSim/Tools/pCampBot/PhysicsBot.cs index 8495b09..334f699 100644 --- a/OpenSim/Tools/pCampBot/PhysicsBot.cs +++ b/OpenSim/Tools/pCampBot/PhysicsBot.cs | |||
@@ -26,16 +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 | 37 | ||
40 | namespace pCampBot | 38 | namespace pCampBot |
41 | { | 39 | { |
@@ -54,7 +52,7 @@ namespace pCampBot | |||
54 | 52 | ||
55 | protected Timer m_action; // Action Timer | 53 | protected Timer m_action; // Action Timer |
56 | 54 | ||
57 | 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 |
58 | 56 | ||
59 | //New instance of a SecondLife client | 57 | //New instance of a SecondLife client |
60 | public SecondLife client = new SecondLife(); | 58 | public SecondLife client = new SecondLife(); |
@@ -74,7 +72,7 @@ namespace pCampBot | |||
74 | //We do our actions here. This is where one would | 72 | //We do our actions here. This is where one would |
75 | //add additional steps and/or things the bot should do | 73 | //add additional steps and/or things the bot should do |
76 | 74 | ||
77 | void m_action_Elapsed(object sender, System.Timers.ElapsedEventArgs e) | 75 | void m_action_Elapsed(object sender, ElapsedEventArgs e) |
78 | { | 76 | { |
79 | //client.Throttle.Task = 500000f; | 77 | //client.Throttle.Task = 500000f; |
80 | //client.Throttle.Set(); | 78 | //client.Throttle.Set(); |
@@ -145,7 +143,7 @@ namespace pCampBot | |||
145 | if (OnConnected != null) | 143 | if (OnConnected != null) |
146 | { | 144 | { |
147 | m_action = new Timer(somthing.Next(1000, 10000)); | 145 | m_action = new Timer(somthing.Next(1000, 10000)); |
148 | m_action.Elapsed += new System.Timers.ElapsedEventHandler(m_action_Elapsed); | 146 | m_action.Elapsed += new ElapsedEventHandler(m_action_Elapsed); |
149 | m_action.Start(); | 147 | m_action.Start(); |
150 | OnConnected(this, EventType.CONNECTED); | 148 | OnConnected(this, EventType.CONNECTED); |
151 | client.Self.Jump(); | 149 | client.Self.Jump(); |