diff options
author | MW | 2007-07-18 13:40:07 +0000 |
---|---|---|
committer | MW | 2007-07-18 13:40:07 +0000 |
commit | 04ece84d6b3aa442ed7413f23b0daa30ff6d3ee8 (patch) | |
tree | e457adc88cfa763d6e3fb3734b253f94b2aa775b /OpenSim/Region/Environment/Scenes/EntityBase.cs | |
parent | * Added a FileSystemObject to SimpleApp (diff) | |
download | opensim-SC-04ece84d6b3aa442ed7413f23b0daa30ff6d3ee8.zip opensim-SC-04ece84d6b3aa442ed7413f23b0daa30ff6d3ee8.tar.gz opensim-SC-04ece84d6b3aa442ed7413f23b0daa30ff6d3ee8.tar.bz2 opensim-SC-04ece84d6b3aa442ed7413f23b0daa30ff6d3ee8.tar.xz |
few small changes
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/EntityBase.cs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Scenes/EntityBase.cs b/OpenSim/Region/Environment/Scenes/EntityBase.cs index fc75bdc..0d1e3fc 100644 --- a/OpenSim/Region/Environment/Scenes/EntityBase.cs +++ b/OpenSim/Region/Environment/Scenes/EntityBase.cs | |||
@@ -7,9 +7,10 @@ namespace OpenSim.Region.Environment.Scenes | |||
7 | public abstract class EntityBase | 7 | public abstract class EntityBase |
8 | { | 8 | { |
9 | public LLUUID m_uuid; | 9 | public LLUUID m_uuid; |
10 | 10 | ||
11 | protected List<EntityBase> m_children; | 11 | protected List<EntityBase> m_children; |
12 | 12 | ||
13 | |||
13 | protected Scene m_world; | 14 | protected Scene m_world; |
14 | protected string m_name; | 15 | protected string m_name; |
15 | 16 | ||
@@ -88,7 +89,9 @@ namespace OpenSim.Region.Environment.Scenes | |||
88 | m_velocity = new LLVector3(); | 89 | m_velocity = new LLVector3(); |
89 | Rotation = new Quaternion(); | 90 | Rotation = new Quaternion(); |
90 | m_name = "(basic entity)"; | 91 | m_name = "(basic entity)"; |
92 | |||
91 | m_children = new List<EntityBase>(); | 93 | m_children = new List<EntityBase>(); |
94 | |||
92 | } | 95 | } |
93 | 96 | ||
94 | /// <summary> | 97 | /// <summary> |
@@ -96,7 +99,9 @@ namespace OpenSim.Region.Environment.Scenes | |||
96 | /// </summary> | 99 | /// </summary> |
97 | public virtual void updateMovement() | 100 | public virtual void updateMovement() |
98 | { | 101 | { |
102 | |||
99 | foreach (EntityBase child in m_children) | 103 | foreach (EntityBase child in m_children) |
104 | |||
100 | { | 105 | { |
101 | child.updateMovement(); | 106 | child.updateMovement(); |
102 | } | 107 | } |
@@ -108,6 +113,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
108 | public virtual void Update() | 113 | public virtual void Update() |
109 | { | 114 | { |
110 | // Do any per-frame updates needed that are applicable to every type of entity | 115 | // Do any per-frame updates needed that are applicable to every type of entity |
116 | |||
111 | foreach (EntityBase child in m_children) | 117 | foreach (EntityBase child in m_children) |
112 | { | 118 | { |
113 | child.Update(); | 119 | child.Update(); |