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 public abstract class EntityBase
{ {
protected List<EntityBase> m_children;
protected Scene m_scene; protected Scene m_scene;
public Scene Scene public Scene Scene
@ -113,33 +111,17 @@ namespace OpenSim.Region.Environment.Scenes
Rotation = new Quaternion(); Rotation = new Quaternion();
m_name = "(basic entity)"; m_name = "(basic entity)";
m_rotationalvelocity = new LLVector3(0, 0, 0); m_rotationalvelocity = new LLVector3(0, 0, 0);
m_children = new List<EntityBase>();
} }
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
public virtual void UpdateMovement() public abstract void UpdateMovement();
{
foreach (EntityBase child in m_children)
{
child.UpdateMovement();
}
}
/// <summary> /// <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> /// </summary>
public virtual void Update() public abstract void Update();
{
// Do any per-frame updates needed that are applicable to every type of entity
foreach (EntityBase child in m_children)
{
child.Update();
}
}
/// <summary> /// <summary>
/// Copies the entity /// Copies the entity

View File

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