aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tools/pCampBot/BotManager.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Tools/pCampBot/BotManager.cs')
-rw-r--r--OpenSim/Tools/pCampBot/BotManager.cs34
1 files changed, 17 insertions, 17 deletions
diff --git a/OpenSim/Tools/pCampBot/BotManager.cs b/OpenSim/Tools/pCampBot/BotManager.cs
index 0af9592..37dc0d9 100644
--- a/OpenSim/Tools/pCampBot/BotManager.cs
+++ b/OpenSim/Tools/pCampBot/BotManager.cs
@@ -219,14 +219,14 @@ namespace pCampBot
219 HandleDisconnect); 219 HandleDisconnect);
220 220
221 m_console.Commands.AddCommand( 221 m_console.Commands.AddCommand(
222 "Bots", false, "add behaviour", "add behaviour <abbreviated-name> [<bot-number>]", 222 "Bots", false, "add behaviour", "add behaviour <abbreviated-name> [<bot-number>]",
223 "Add a behaviour to a bot", 223 "Add a behaviour to a bot",
224 "If no bot number is specified then behaviour is added to all bots.\n" 224 "If no bot number is specified then behaviour is added to all bots.\n"
225 + "Can be performed on connected or disconnected bots.", 225 + "Can be performed on connected or disconnected bots.",
226 HandleAddBehaviour); 226 HandleAddBehaviour);
227 227
228 m_console.Commands.AddCommand( 228 m_console.Commands.AddCommand(
229 "Bots", false, "remove behaviour", "remove behaviour <abbreviated-name> [<bot-number>]", 229 "Bots", false, "remove behaviour", "remove behaviour <abbreviated-name> [<bot-number>]",
230 "Remove a behaviour from a bot", 230 "Remove a behaviour from a bot",
231 "If no bot number is specified then behaviour is added to all bots.\n" 231 "If no bot number is specified then behaviour is added to all bots.\n"
232 + "Can be performed on connected or disconnected bots.", 232 + "Can be performed on connected or disconnected bots.",
@@ -250,14 +250,14 @@ namespace pCampBot
250 "Bots", false, "show bots", "show bots", "Shows the status of all bots.", HandleShowBotsStatus); 250 "Bots", false, "show bots", "show bots", "Shows the status of all bots.", HandleShowBotsStatus);
251 251
252 m_console.Commands.AddCommand( 252 m_console.Commands.AddCommand(
253 "Bots", false, "show bot", "show bot <bot-number>", 253 "Bots", false, "show bot", "show bot <bot-number>",
254 "Shows the detailed status and settings of a particular bot.", HandleShowBotStatus); 254 "Shows the detailed status and settings of a particular bot.", HandleShowBotStatus);
255 255
256 m_console.Commands.AddCommand( 256 m_console.Commands.AddCommand(
257 "Debug", 257 "Debug",
258 false, 258 false,
259 "debug lludp packet", 259 "debug lludp packet",
260 "debug lludp packet <level> <avatar-first-name> <avatar-last-name>", 260 "debug lludp packet <level> <avatar-first-name> <avatar-last-name>",
261 "Turn on received packet logging.", 261 "Turn on received packet logging.",
262 "If level > 0 then all received packets that are not duplicates are logged.\n" 262 "If level > 0 then all received packets that are not duplicates are logged.\n"
263 + "If level <= 0 then no received packets are logged.", 263 + "If level <= 0 then no received packets are logged.",
@@ -317,7 +317,7 @@ namespace pCampBot
317 // We must give each bot its own list of instantiated behaviours since they store state. 317 // We must give each bot its own list of instantiated behaviours since they store state.
318 List<IBehaviour> behaviours = new List<IBehaviour>(); 318 List<IBehaviour> behaviours = new List<IBehaviour>();
319 319
320 // Hard-coded for now 320 // Hard-coded for now
321 foreach (string abName in abbreviatedNames) 321 foreach (string abName in abbreviatedNames)
322 { 322 {
323 IBehaviour newBehaviour = null; 323 IBehaviour newBehaviour = null;
@@ -534,7 +534,7 @@ namespace pCampBot
534 } 534 }
535 535
536 private void HandleConnect(string module, string[] cmd) 536 private void HandleConnect(string module, string[] cmd)
537 { 537 {
538 lock (m_bots) 538 lock (m_bots)
539 { 539 {
540 int botsToConnect; 540 int botsToConnect;
@@ -607,7 +607,7 @@ namespace pCampBot
607 } 607 }
608 608
609 MainConsole.Instance.OutputFormat( 609 MainConsole.Instance.OutputFormat(
610 "Added behaviours {0} to bot {1}", 610 "Added behaviours {0} to bot {1}",
611 string.Join(", ", behavioursAdded.ConvertAll<string>(b => b.Name).ToArray()), bot.Name); 611 string.Join(", ", behavioursAdded.ConvertAll<string>(b => b.Name).ToArray()), bot.Name);
612 } 612 }
613 } 613 }
@@ -665,7 +665,7 @@ namespace pCampBot
665 } 665 }
666 666
667 MainConsole.Instance.OutputFormat( 667 MainConsole.Instance.OutputFormat(
668 "Removed behaviours {0} from bot {1}", 668 "Removed behaviours {0} from bot {1}",
669 string.Join(", ", behavioursRemoved.ConvertAll<string>(b => b.Name).ToArray()), bot.Name); 669 string.Join(", ", behavioursRemoved.ConvertAll<string>(b => b.Name).ToArray()), bot.Name);
670 } 670 }
671 } 671 }
@@ -779,7 +779,7 @@ namespace pCampBot
779 string rawValue = cmd[3]; 779 string rawValue = cmd[3];
780 780
781 if (key == "SEND_AGENT_UPDATES") 781 if (key == "SEND_AGENT_UPDATES")
782 { 782 {
783 bool newSendAgentUpdatesSetting; 783 bool newSendAgentUpdatesSetting;
784 784
785 if (!ConsoleUtil.TryParseConsoleBool(MainConsole.Instance, rawValue, out newSendAgentUpdatesSetting)) 785 if (!ConsoleUtil.TryParseConsoleBool(MainConsole.Instance, rawValue, out newSendAgentUpdatesSetting))
@@ -873,10 +873,10 @@ namespace pCampBot
873 totals[bot.ConnectionState]++; 873 totals[bot.ConnectionState]++;
874 874
875 cdt.AddRow( 875 cdt.AddRow(
876 bot.Name, 876 bot.Name,
877 currentSim != null ? currentSim.Name : "(none)", 877 currentSim != null ? currentSim.Name : "(none)",
878 bot.ConnectionState, 878 bot.ConnectionState,
879 bot.SimulatorsCount, 879 bot.SimulatorsCount,
880 string.Join(",", bot.Behaviours.Keys.ToArray())); 880 string.Join(",", bot.Behaviours.Keys.ToArray()));
881 } 881 }
882 } 882 }
@@ -930,7 +930,7 @@ namespace pCampBot
930 ConsoleDisplayList statusCdl = new ConsoleDisplayList(); 930 ConsoleDisplayList statusCdl = new ConsoleDisplayList();
931 931
932 statusCdl.AddRow( 932 statusCdl.AddRow(
933 "Behaviours", 933 "Behaviours",
934 string.Join(", ", bot.Behaviours.Values.ToList().ConvertAll<string>(b => b.Name).ToArray())); 934 string.Join(", ", bot.Behaviours.Values.ToList().ConvertAll<string>(b => b.Name).ToArray()));
935 935
936 GridClient botClient = bot.Client; 936 GridClient botClient = bot.Client;