aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/EntityBase.cs
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-02-08 20:11:45 +0000
committerJustin Clarke Casey2008-02-08 20:11:45 +0000
commite6cd420f19983e1236ce018f1b9abd5b82daca55 (patch)
tree6e4fd74f782624e25aede79c326728084ea0b834 /OpenSim/Region/Environment/Scenes/EntityBase.cs
parentMinor refactoring (diff)
downloadopensim-SC_OLD-e6cd420f19983e1236ce018f1b9abd5b82daca55.zip
opensim-SC_OLD-e6cd420f19983e1236ce018f1b9abd5b82daca55.tar.gz
opensim-SC_OLD-e6cd420f19983e1236ce018f1b9abd5b82daca55.tar.bz2
opensim-SC_OLD-e6cd420f19983e1236ce018f1b9abd5b82daca55.tar.xz
refactor - remove unused m_children from EntityBase
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Environment/Scenes/EntityBase.cs26
1 files changed, 4 insertions, 22 deletions
diff --git a/OpenSim/Region/Environment/Scenes/EntityBase.cs b/OpenSim/Region/Environment/Scenes/EntityBase.cs
index 82f829d..ffcc44b 100644
--- a/OpenSim/Region/Environment/Scenes/EntityBase.cs
+++ b/OpenSim/Region/Environment/Scenes/EntityBase.cs
@@ -34,8 +34,6 @@ namespace OpenSim.Region.Environment.Scenes
34{ 34{
35 public abstract class EntityBase 35 public abstract class EntityBase
36 { 36 {
37 protected List<EntityBase> m_children;
38
39 protected Scene m_scene; 37 protected Scene m_scene;
40 38
41 public Scene Scene 39 public Scene Scene
@@ -113,33 +111,17 @@ namespace OpenSim.Region.Environment.Scenes
113 Rotation = new Quaternion(); 111 Rotation = new Quaternion();
114 m_name = "(basic entity)"; 112 m_name = "(basic entity)";
115 m_rotationalvelocity = new LLVector3(0, 0, 0); 113 m_rotationalvelocity = new LLVector3(0, 0, 0);
116 m_children = new List<EntityBase>();
117 } 114 }
118 115
119 /// <summary> 116 /// <summary>
120 /// 117 ///
121 /// </summary> 118 /// </summary>
122 public virtual void UpdateMovement() 119 public abstract void UpdateMovement();
123 {
124 foreach (EntityBase child in m_children)
125
126 {
127 child.UpdateMovement();
128 }
129 }
130 120
131 /// <summary> 121 /// <summary>
132 /// Performs any updates that need to be done at each frame. This function is overridable from it's children. 122 /// Performs any updates that need to be done at each frame.
133 /// </summary> 123 /// </summary>
134 public virtual void Update() 124 public abstract void Update();
135 {
136 // Do any per-frame updates needed that are applicable to every type of entity
137
138 foreach (EntityBase child in m_children)
139 {
140 child.Update();
141 }
142 }
143 125
144 /// <summary> 126 /// <summary>
145 /// Copies the entity 127 /// Copies the entity
@@ -174,4 +156,4 @@ namespace OpenSim.Region.Environment.Scenes
174 HitTF = _HitTF; 156 HitTF = _HitTF;
175 } 157 }
176 } 158 }
177} \ No newline at end of file 159}