00001 00015 #ifndef ANIMMGR_H 00016 #define ANIMMGR_H 00017 00018 #include "IS3DCommon.H" 00019 #include "AnimObj.H" 00020 00021 namespace IS3D { 00022 00023 class AnimMgr 00024 { 00025 public: 00026 00027 static void registerAnimObj(AnimObj *obj); 00028 static void removeAnimObj(AnimObj* obj); 00029 00030 static int getNumAnimObjs() { return _objs.size(); } 00031 static AnimObj* getAnimObj(int i) { return _objs[i]; } 00032 00033 static bool getPaused() { return _paused; } 00034 static void setPaused(bool p) { _paused = p; } 00035 00036 static void runAnimations(); 00037 00038 protected: 00039 static Array<AnimObj*> _objs; 00040 static Array<AnimObj*> _pendingRemoves; 00041 static bool _paused; 00042 }; 00043 00044 } 00045 #endif