On pCampBot, add bot as a property on behaviours instead of passing it in every time

This commit is contained in:
Justin Clark-Casey (justincc)
2011-11-24 22:36:45 +00:00
parent cbbd992df4
commit 2ae5b40ca6
7 changed files with 115 additions and 56 deletions

View File

@@ -36,10 +36,19 @@ namespace pCampBot.Interfaces
/// </summary>
string Name { get; }
/// <summary>
/// Initialize the behaviour for this bot.
/// </summary>
/// <remarks>
/// This must be invoked before Action() is called.
/// </remarks>
/// <param name="bot"></param>
void Initialize(Bot bot);
/// <summary>
/// Action to take when this behaviour is invoked.
/// </summary>
/// <param name="bot"></param>
void Action(Bot bot);
void Action();
}
}