diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Tools/pCampBot/Behaviours/NoneBehaviour.cs (renamed from OpenSim/Region/Physics/POSPlugin/POSPlugin.cs) | 40 |
1 files changed, 18 insertions, 22 deletions
diff --git a/OpenSim/Region/Physics/POSPlugin/POSPlugin.cs b/OpenSim/Tools/pCampBot/Behaviours/NoneBehaviour.cs index e6b42e6..0d43781 100644 --- a/OpenSim/Region/Physics/POSPlugin/POSPlugin.cs +++ b/OpenSim/Tools/pCampBot/Behaviours/NoneBehaviour.cs | |||
@@ -25,40 +25,36 @@ | |||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | */ | 26 | */ |
27 | 27 | ||
28 | using OpenMetaverse; | ||
28 | using System; | 29 | using System; |
29 | using System.Collections.Generic; | 30 | using System.Collections.Generic; |
30 | using Nini.Config; | 31 | using System.Linq; |
31 | using OpenSim.Framework; | 32 | using pCampBot.Interfaces; |
32 | using OpenSim.Region.Physics.Manager; | ||
33 | 33 | ||
34 | namespace OpenSim.Region.Physics.POSPlugin | 34 | namespace pCampBot |
35 | { | 35 | { |
36 | /// <summary> | 36 | /// <summary> |
37 | /// for now will be a very POS physics engine | 37 | /// Do nothing |
38 | /// </summary> | 38 | /// </summary> |
39 | public class POSPlugin : IPhysicsPlugin | 39 | public class NoneBehaviour : AbstractBehaviour |
40 | { | 40 | { |
41 | public POSPlugin() | 41 | public NoneBehaviour() |
42 | { | 42 | { |
43 | } | 43 | AbbreviatedName = "n"; |
44 | 44 | Name = "None"; | |
45 | public bool Init() | ||
46 | { | ||
47 | return true; | ||
48 | } | ||
49 | |||
50 | public PhysicsScene GetScene(string sceneIdentifier) | ||
51 | { | ||
52 | return new POSScene(sceneIdentifier); | ||
53 | } | 45 | } |
54 | 46 | ||
55 | public string GetName() | 47 | public override void Action() |
56 | { | 48 | { |
57 | return ("POS"); | 49 | Bot.Client.Self.Jump(false); |
50 | Bot.Client.Self.Movement.Stop = true; | ||
51 | m_interruptEvent.WaitOne(); | ||
52 | Bot.Client.Self.Movement.Stop = false; | ||
58 | } | 53 | } |
59 | 54 | ||
60 | public void Dispose() | 55 | public override void Interrupt() |
61 | { | 56 | { |
57 | m_interruptEvent.Set(); | ||
62 | } | 58 | } |
63 | } | 59 | } |
64 | } | 60 | } \ No newline at end of file |