aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/EntityBase.cs
diff options
context:
space:
mode:
authorlbsa712007-07-17 17:47:23 +0000
committerlbsa712007-07-17 17:47:23 +0000
commitd95918f2288967de3937ec7aa648a5303eba4027 (patch)
tree7eeb692e0939d566da2e246a7077b8fcc68ec1b3 /OpenSim/Region/Environment/Scenes/EntityBase.cs
parent* Added "backup" console command for sdague (diff)
downloadopensim-SC-d95918f2288967de3937ec7aa648a5303eba4027.zip
opensim-SC-d95918f2288967de3937ec7aa648a5303eba4027.tar.gz
opensim-SC-d95918f2288967de3937ec7aa648a5303eba4027.tar.bz2
opensim-SC-d95918f2288967de3937ec7aa648a5303eba4027.tar.xz
* Changed SimpleApp to use EventManager and Scene timer
* Refactored a lot of m_* and public -> wrappers
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/EntityBase.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/EntityBase.cs16
1 files changed, 8 insertions, 8 deletions
diff --git a/OpenSim/Region/Environment/Scenes/EntityBase.cs b/OpenSim/Region/Environment/Scenes/EntityBase.cs
index 04cf595..fc75bdc 100644
--- a/OpenSim/Region/Environment/Scenes/EntityBase.cs
+++ b/OpenSim/Region/Environment/Scenes/EntityBase.cs
@@ -6,9 +6,9 @@ namespace OpenSim.Region.Environment.Scenes
6{ 6{
7 public abstract class EntityBase 7 public abstract class EntityBase
8 { 8 {
9 public LLUUID uuid; 9 public LLUUID m_uuid;
10 10
11 protected List<EntityBase> children; 11 protected List<EntityBase> m_children;
12 12
13 protected Scene m_world; 13 protected Scene m_world;
14 protected string m_name; 14 protected string m_name;
@@ -82,13 +82,13 @@ namespace OpenSim.Region.Environment.Scenes
82 /// </summary> 82 /// </summary>
83 public EntityBase() 83 public EntityBase()
84 { 84 {
85 uuid = new LLUUID(); 85 m_uuid = new LLUUID();
86 86
87 m_pos = new LLVector3(); 87 m_pos = new LLVector3();
88 m_velocity = new LLVector3(); 88 m_velocity = new LLVector3();
89 Rotation = new Quaternion(); 89 Rotation = new Quaternion();
90 m_name = "(basic entity)"; 90 m_name = "(basic entity)";
91 children = new List<EntityBase>(); 91 m_children = new List<EntityBase>();
92 } 92 }
93 93
94 /// <summary> 94 /// <summary>
@@ -96,7 +96,7 @@ namespace OpenSim.Region.Environment.Scenes
96 /// </summary> 96 /// </summary>
97 public virtual void updateMovement() 97 public virtual void updateMovement()
98 { 98 {
99 foreach (EntityBase child in children) 99 foreach (EntityBase child in m_children)
100 { 100 {
101 child.updateMovement(); 101 child.updateMovement();
102 } 102 }
@@ -105,12 +105,12 @@ namespace OpenSim.Region.Environment.Scenes
105 /// <summary> 105 /// <summary>
106 /// Performs any updates that need to be done at each frame. This function is overridable from it's children. 106 /// Performs any updates that need to be done at each frame. This function is overridable from it's children.
107 /// </summary> 107 /// </summary>
108 public virtual void update() 108 public virtual void Update()
109 { 109 {
110 // Do any per-frame updates needed that are applicable to every type of entity 110 // Do any per-frame updates needed that are applicable to every type of entity
111 foreach (EntityBase child in children) 111 foreach (EntityBase child in m_children)
112 { 112 {
113 child.update(); 113 child.Update();
114 } 114 }
115 } 115 }
116 116