diff options
author | Justin Clark-Casey (justincc) | 2011-11-24 22:36:45 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-11-24 22:36:45 +0000 |
commit | 2ae5b40ca6bb3d33310f0f66569bf150548a2de6 (patch) | |
tree | 9c485fa9e2e9d1b2d976d3b6d9777457b836df36 /OpenSim/Tools/pCampBot/Interfaces | |
parent | minor: remove mono compiler warning (diff) | |
download | opensim-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/Interfaces')
-rw-r--r-- | OpenSim/Tools/pCampBot/Interfaces/IBehaviour.cs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/OpenSim/Tools/pCampBot/Interfaces/IBehaviour.cs b/OpenSim/Tools/pCampBot/Interfaces/IBehaviour.cs index 912216f..9c984be 100644 --- a/OpenSim/Tools/pCampBot/Interfaces/IBehaviour.cs +++ b/OpenSim/Tools/pCampBot/Interfaces/IBehaviour.cs | |||
@@ -37,9 +37,18 @@ namespace pCampBot.Interfaces | |||
37 | string Name { get; } | 37 | string Name { get; } |
38 | 38 | ||
39 | /// <summary> | 39 | /// <summary> |
40 | /// Initialize the behaviour for this bot. | ||
41 | /// </summary> | ||
42 | /// <remarks> | ||
43 | /// This must be invoked before Action() is called. | ||
44 | /// </remarks> | ||
45 | /// <param name="bot"></param> | ||
46 | void Initialize(Bot bot); | ||
47 | |||
48 | /// <summary> | ||
40 | /// Action to take when this behaviour is invoked. | 49 | /// Action to take when this behaviour is invoked. |
41 | /// </summary> | 50 | /// </summary> |
42 | /// <param name="bot"></param> | 51 | /// <param name="bot"></param> |
43 | void Action(Bot bot); | 52 | void Action(); |
44 | } | 53 | } |
45 | } \ No newline at end of file | 54 | } \ No newline at end of file |