diff options
author | Jacek Antonelli | 2008-08-15 23:44:54 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:54 -0500 |
commit | b2afb8800bb033a04bb3ecdf0363068d56648ef1 (patch) | |
tree | 3568129b5bbddb47cd39d622b4137a8fbff4abaf /linden/indra/llcharacter/llmotioncontroller.h | |
parent | Second Life viewer sources 1.14.0.1 (diff) | |
download | meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.zip meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.gz meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.bz2 meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.xz |
Second Life viewer sources 1.15.0.2
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llcharacter/llmotioncontroller.h | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/linden/indra/llcharacter/llmotioncontroller.h b/linden/indra/llcharacter/llmotioncontroller.h index c9ee7c4..e4c7b3f 100644 --- a/linden/indra/llcharacter/llmotioncontroller.h +++ b/linden/indra/llcharacter/llmotioncontroller.h | |||
@@ -4,6 +4,7 @@ | |||
4 | * | 4 | * |
5 | * Copyright (c) 2001-2007, Linden Research, Inc. | 5 | * Copyright (c) 2001-2007, Linden Research, Inc. |
6 | * | 6 | * |
7 | * Second Life Viewer Source Code | ||
7 | * The source code in this file ("Source Code") is provided by Linden Lab | 8 | * The source code in this file ("Source Code") is provided by Linden Lab |
8 | * to you under the terms of the GNU General Public License, version 2.0 | 9 | * to you under the terms of the GNU General Public License, version 2.0 |
9 | * ("GPL"), unless you have obtained a separate licensing agreement | 10 | * ("GPL"), unless you have obtained a separate licensing agreement |
@@ -35,7 +36,6 @@ | |||
35 | #include <map> | 36 | #include <map> |
36 | #include <deque> | 37 | #include <deque> |
37 | 38 | ||
38 | #include "linked_lists.h" | ||
39 | #include "lluuidhashmap.h" | 39 | #include "lluuidhashmap.h" |
40 | #include "llmotion.h" | 40 | #include "llmotion.h" |
41 | #include "llpose.h" | 41 | #include "llpose.h" |
@@ -109,6 +109,10 @@ protected: | |||
109 | class LLMotionController | 109 | class LLMotionController |
110 | { | 110 | { |
111 | public: | 111 | public: |
112 | typedef std::list<LLMotion*> motion_list_t; | ||
113 | typedef std::set<LLMotion*> motion_set_t; | ||
114 | |||
115 | public: | ||
112 | // Constructor | 116 | // Constructor |
113 | LLMotionController(); | 117 | LLMotionController(); |
114 | 118 | ||
@@ -164,12 +168,11 @@ public: | |||
164 | void setTimeFactor(F32 time_factor); | 168 | void setTimeFactor(F32 time_factor); |
165 | F32 getTimeFactor() { return mTimeFactor; } | 169 | F32 getTimeFactor() { return mTimeFactor; } |
166 | 170 | ||
167 | LLMotion* getFirstActiveMotion(); | 171 | motion_list_t& getActiveMotions() { return mActiveMotions; } |
168 | LLMotion* getNextActiveMotion(); | ||
169 | 172 | ||
170 | //protected: | 173 | //protected: |
171 | BOOL isMotionActive( LLMotion *motion ); | 174 | bool isMotionActive( LLMotion *motion ); |
172 | BOOL isMotionLoading( LLMotion *motion ); | 175 | bool isMotionLoading( LLMotion *motion ); |
173 | LLMotion *findMotion( const LLUUID& id ); | 176 | LLMotion *findMotion( const LLUUID& id ); |
174 | 177 | ||
175 | protected: | 178 | protected: |
@@ -199,9 +202,9 @@ protected: | |||
199 | 202 | ||
200 | std::map<LLUUID, LLMotion*> mAllMotions; | 203 | std::map<LLUUID, LLMotion*> mAllMotions; |
201 | 204 | ||
202 | LLLinkedList<LLMotion> mLoadingMotions; | 205 | motion_set_t mLoadingMotions; |
203 | std::deque<LLMotion*> mLoadedMotions; | 206 | motion_list_t mLoadedMotions; |
204 | LLLinkedList<LLMotion> mActiveMotions; | 207 | motion_list_t mActiveMotions; |
205 | 208 | ||
206 | LLFrameTimer mTimer; | 209 | LLFrameTimer mTimer; |
207 | F32 mTime; | 210 | F32 mTime; |