aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tools/pCampBot/Bot.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-11-24 22:36:45 +0000
committerJustin Clark-Casey (justincc)2011-11-24 22:36:45 +0000
commit2ae5b40ca6bb3d33310f0f66569bf150548a2de6 (patch)
tree9c485fa9e2e9d1b2d976d3b6d9777457b836df36 /OpenSim/Tools/pCampBot/Bot.cs
parentminor: remove mono compiler warning (diff)
downloadopensim-SC_OLD-2ae5b40ca6bb3d33310f0f66569bf150548a2de6.zip
opensim-SC_OLD-2ae5b40ca6bb3d33310f0f66569bf150548a2de6.tar.gz
opensim-SC_OLD-2ae5b40ca6bb3d33310f0f66569bf150548a2de6.tar.bz2
opensim-SC_OLD-2ae5b40ca6bb3d33310f0f66569bf150548a2de6.tar.xz
On pCampBot, add bot as a property on behaviours instead of passing it in every time
Diffstat (limited to 'OpenSim/Tools/pCampBot/Bot.cs')
-rw-r--r--OpenSim/Tools/pCampBot/Bot.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenSim/Tools/pCampBot/Bot.cs b/OpenSim/Tools/pCampBot/Bot.cs
index 409734e..0bd0bcc 100644
--- a/OpenSim/Tools/pCampBot/Bot.cs
+++ b/OpenSim/Tools/pCampBot/Bot.cs
@@ -130,6 +130,8 @@ namespace pCampBot
130 BotManager bm, List<IBehaviour> behaviours, 130 BotManager bm, List<IBehaviour> behaviours,
131 string firstName, string lastName, string password, string loginUri) 131 string firstName, string lastName, string password, string loginUri)
132 { 132 {
133 behaviours.ForEach(b => b.Initialize(this));
134
133 Client = new GridClient(); 135 Client = new GridClient();
134 136
135 Random = new Random(Environment.TickCount);// We do stuff randomly here 137 Random = new Random(Environment.TickCount);// We do stuff randomly here
@@ -156,7 +158,7 @@ namespace pCampBot
156 b => 158 b =>
157 { 159 {
158 // m_log.DebugFormat("[pCAMPBOT]: For {0} performing action {1}", Name, b.GetType()); 160 // m_log.DebugFormat("[pCAMPBOT]: For {0} performing action {1}", Name, b.GetType());
159 b.Action(this); 161 b.Action();
160 162
161 Thread.Sleep(Random.Next(1000, 10000)); 163 Thread.Sleep(Random.Next(1000, 10000));
162 } 164 }