aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/OpenSim.World/Avatar.cs
diff options
context:
space:
mode:
authorMW2007-05-29 09:16:18 +0000
committerMW2007-05-29 09:16:18 +0000
commitb2eb26e4babbf87c8db84e67de116ef145feb2d6 (patch)
treeb5feafcaa4ee0dbe18c502203595d7e0d9014987 /OpenSim/OpenSim.World/Avatar.cs
parentShould allow multiple worlds (and UDP servers) to be ran in one instance, jus... (diff)
downloadopensim-SC-b2eb26e4babbf87c8db84e67de116ef145feb2d6.zip
opensim-SC-b2eb26e4babbf87c8db84e67de116ef145feb2d6.tar.gz
opensim-SC-b2eb26e4babbf87c8db84e67de116ef145feb2d6.tar.bz2
opensim-SC-b2eb26e4babbf87c8db84e67de116ef145feb2d6.tar.xz
number of changes
Diffstat (limited to 'OpenSim/OpenSim.World/Avatar.cs')
-rw-r--r--OpenSim/OpenSim.World/Avatar.cs40
1 files changed, 22 insertions, 18 deletions
diff --git a/OpenSim/OpenSim.World/Avatar.cs b/OpenSim/OpenSim.World/Avatar.cs
index 551283a..77c18bf 100644
--- a/OpenSim/OpenSim.World/Avatar.cs
+++ b/OpenSim/OpenSim.World/Avatar.cs
@@ -7,6 +7,7 @@ using libsecondlife.Packets;
7using OpenSim.Physics.Manager; 7using OpenSim.Physics.Manager;
8using OpenSim.Framework.Inventory; 8using OpenSim.Framework.Inventory;
9using OpenSim.Framework.Interfaces; 9using OpenSim.Framework.Interfaces;
10using OpenSim.Framework.Types;
10using Axiom.MathLib; 11using Axiom.MathLib;
11 12
12namespace OpenSim.world 13namespace OpenSim.world
@@ -40,13 +41,13 @@ namespace OpenSim.world
40 public Avatar(IClientAPI TheClient, World world, string regionName, Dictionary<uint, IClientAPI> clientThreads, ulong regionHandle, bool regionTerraform, ushort regionWater) 41 public Avatar(IClientAPI TheClient, World world, string regionName, Dictionary<uint, IClientAPI> clientThreads, ulong regionHandle, bool regionTerraform, ushort regionWater)
41 { 42 {
42 m_world = world; 43 m_world = world;
43 // m_clientThreads = clientThreads; 44 // m_clientThreads = clientThreads;
44 m_regionName = regionName; 45 m_regionName = regionName;
45 m_regionHandle = regionHandle; 46 m_regionHandle = regionHandle;
46 m_regionTerraform = regionTerraform; 47 m_regionTerraform = regionTerraform;
47 m_regionWaterHeight = regionWater; 48 m_regionWaterHeight = regionWater;
48 49
49 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW,"Avatar.cs - Loading details from grid (DUMMY)"); 50 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "Avatar.cs - Loading details from grid (DUMMY)");
50 ControllingClient = TheClient; 51 ControllingClient = TheClient;
51 localid = 8880000 + (this.m_world._localNumber++); 52 localid = 8880000 + (this.m_world._localNumber++);
52 Pos = ControllingClient.StartPos; 53 Pos = ControllingClient.StartPos;
@@ -65,6 +66,7 @@ namespace OpenSim.world
65 66
66 this.avatarAppearanceTexture = new LLObject.TextureEntry(new LLUUID("00000000-0000-0000-5005-000000000005")); 67 this.avatarAppearanceTexture = new LLObject.TextureEntry(new LLUUID("00000000-0000-0000-5005-000000000005"));
67 68
69 /*
68 //register for events 70 //register for events
69 ControllingClient.OnRequestWearables += new GenericCall(this.SendOurAppearance); 71 ControllingClient.OnRequestWearables += new GenericCall(this.SendOurAppearance);
70 ControllingClient.OnSetAppearance += new SetAppearance(this.SetAppearance); 72 ControllingClient.OnSetAppearance += new SetAppearance(this.SetAppearance);
@@ -74,6 +76,7 @@ namespace OpenSim.world
74 ControllingClient.OnStartAnim += new StartAnim(this.SendAnimPack); 76 ControllingClient.OnStartAnim += new StartAnim(this.SendAnimPack);
75 ControllingClient.OnChildAgentStatus += new StatusChange(this.ChildStatusChange); 77 ControllingClient.OnChildAgentStatus += new StatusChange(this.ChildStatusChange);
76 ControllingClient.OnStopMovement += new GenericCall2(this.StopMovement); 78 ControllingClient.OnStopMovement += new GenericCall2(this.StopMovement);
79 * */
77 } 80 }
78 81
79 public PhysicsActor PhysActor 82 public PhysicsActor PhysActor
@@ -90,29 +93,29 @@ namespace OpenSim.world
90 93
91 public void ChildStatusChange(bool status) 94 public void ChildStatusChange(bool status)
92 { 95 {
93 96
94 } 97 }
95 98
96 public override void addForces() 99 public override void addForces()
97 { 100 {
98 101
99 } 102 }
100 103
101 public static void SetupTemplate(string name) 104 public static void SetupTemplate(string name)
102 { 105 {
103 106
104 } 107 }
105 108
106 protected static void SetDefaultPacketValues(ObjectUpdatePacket.ObjectDataBlock objdata) 109 protected static void SetDefaultPacketValues(ObjectUpdatePacket.ObjectDataBlock objdata)
107 { 110 {
108 111
109 112
110 113
111 } 114 }
112 115
113 public void CompleteMovement() 116 public void CompleteMovement()
114 { 117 {
115 118
116 } 119 }
117 120
118 public void HandleAgentUpdate(Packet pack) 121 public void HandleAgentUpdate(Packet pack)
@@ -122,35 +125,36 @@ namespace OpenSim.world
122 125
123 public void HandleUpdate(AgentUpdatePacket pack) 126 public void HandleUpdate(AgentUpdatePacket pack)
124 { 127 {
125 128
126 } 129 }
127 130
128 //really really should be moved somewhere else (RegionInfo.cs ?) 131 //really really should be moved somewhere else (RegionInfo.cs ?)
129 public void SendRegionHandshake(World regionInfo) 132 public void SendRegionHandshake(World regionInfo)
130 { 133 {
131 134
132 } 135 }
133 136
134 public static void LoadAnims() 137 public static void LoadAnims()
135 { 138 {
136 139
137 } 140 }
138 141
139 public override void LandRenegerated() 142 public override void LandRenegerated()
140 { 143 {
141 144
142 } 145 }
143 }
144 146
145 public class NewForce
146 {
147 public float X;
148 public float Y;
149 public float Z;
150 147
151 public NewForce() 148 public class NewForce
152 { 149 {
150 public float X;
151 public float Y;
152 public float Z;
153 153
154 public NewForce()
155 {
156
157 }
154 } 158 }
155 } 159 }
156 160