refactor - remove unused m_children from EntityBase

ThreadPoolClientBranch
Justin Clarke Casey 2008-02-08 20:11:45 +00:00
parent 47353ffe48
commit e6cd420f19
2 changed files with 4 additions and 24 deletions

View File

@ -34,8 +34,6 @@ namespace OpenSim.Region.Environment.Scenes
{
public abstract class EntityBase
{
protected List<EntityBase> m_children;
protected Scene m_scene;
public Scene Scene
@ -113,33 +111,17 @@ namespace OpenSim.Region.Environment.Scenes
Rotation = new Quaternion();
m_name = "(basic entity)";
m_rotationalvelocity = new LLVector3(0, 0, 0);
m_children = new List<EntityBase>();
}
/// <summary>
///
/// </summary>
public virtual void UpdateMovement()
{
foreach (EntityBase child in m_children)
{
child.UpdateMovement();
}
}
public abstract void UpdateMovement();
/// <summary>
/// Performs any updates that need to be done at each frame. This function is overridable from it's children.
/// Performs any updates that need to be done at each frame.
/// </summary>
public virtual void Update()
{
// Do any per-frame updates needed that are applicable to every type of entity
foreach (EntityBase child in m_children)
{
child.Update();
}
}
public abstract void Update();
/// <summary>
/// Copies the entity
@ -174,4 +156,4 @@ namespace OpenSim.Region.Environment.Scenes
HitTF = _HitTF;
}
}
}
}

View File

@ -1585,8 +1585,6 @@ namespace OpenSim.Region.Environment.Scenes
{
part.UpdateMovement();
}
base.UpdateMovement();
}
/// <summary>