Rename PhysicsBot => Bot since it doesn't just exercise physics anymore

This commit is contained in:
Justin Clark-Casey (justincc)
2011-11-03 22:39:06 +00:00
parent ca2c25ece2
commit f26fdbd8da
5 changed files with 12 additions and 12 deletions

View File

@@ -49,7 +49,7 @@ namespace pCampBot
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
protected CommandConsole m_console;
protected List<PhysicsBot> m_lBot;
protected List<Bot> m_lBot;
protected Random somthing = new Random(Environment.TickCount);
protected int numbots = 0;
public IConfig Config { get; private set; }
@@ -103,7 +103,7 @@ namespace pCampBot
// "add bots <number>",
// "Add more bots", HandleAddBots);
m_lBot = new List<PhysicsBot>();
m_lBot = new List<Bot>();
}
/// <summary>
@@ -175,7 +175,7 @@ namespace pCampBot
int pos, BotManager bm, List<IBehaviour> behaviours,
string firstName, string lastName, string password, string loginUri)
{
PhysicsBot pb = new PhysicsBot(bm, behaviours, firstName, lastName, password, loginUri);
Bot pb = new Bot(bm, behaviours, firstName, lastName, password, loginUri);
pb.OnConnected += handlebotEvent;
pb.OnDisconnected += handlebotEvent;
@@ -194,7 +194,7 @@ namespace pCampBot
/// </summary>
/// <param name="callbot"></param>
/// <param name="eventt"></param>
private void handlebotEvent(PhysicsBot callbot, EventType eventt)
private void handlebotEvent(Bot callbot, EventType eventt)
{
switch (eventt)
{
@@ -219,7 +219,7 @@ namespace pCampBot
public void doBotShutdown()
{
lock (m_lBot)
foreach (PhysicsBot pb in m_lBot)
foreach (Bot pb in m_lBot)
pb.shutdown();
}
@@ -245,7 +245,7 @@ namespace pCampBot
lock (m_lBot)
{
foreach (PhysicsBot pb in m_lBot)
foreach (Bot pb in m_lBot)
{
MainConsole.Instance.OutputFormat(
outputFormat, pb.Name, (pb.IsConnected ? "Connected" : "Disconnected"));