From 2ae5b40ca6bb3d33310f0f66569bf150548a2de6 Mon Sep 17 00:00:00 2001
From: Justin Clark-Casey (justincc)
Date: Thu, 24 Nov 2011 22:36:45 +0000
Subject: On pCampBot, add bot as a property on behaviours instead of passing
it in every time
---
OpenSim/Tools/pCampBot/Interfaces/IBehaviour.cs | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
(limited to 'OpenSim/Tools/pCampBot/Interfaces')
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
string Name { get; }
///
+ /// Initialize the behaviour for this bot.
+ ///
+ ///
+ /// This must be invoked before Action() is called.
+ ///
+ ///
+ void Initialize(Bot bot);
+
+ ///
/// Action to take when this behaviour is invoked.
///
///
- void Action(Bot bot);
+ void Action();
}
}
\ No newline at end of file
--
cgit v1.1