aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tools/pCampBot/Behaviours/NoneBehaviour.cs
diff options
context:
space:
mode:
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
28using OpenMetaverse;
28using System; 29using System;
29using System.Collections.Generic; 30using System.Collections.Generic;
30using Nini.Config; 31using System.Linq;
31using OpenSim.Framework; 32using pCampBot.Interfaces;
32using OpenSim.Region.Physics.Manager;
33 33
34namespace OpenSim.Region.Physics.POSPlugin 34namespace 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