Changeset 4746 in orxonox.OLD for orxonox/trunk/src/util
- Timestamp:
- Jul 1, 2005, 12:48:48 PM (19 years ago)
- Location:
- orxonox/trunk/src/util
- Files:
-
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/util/animation/animation.cc
r4597 r4746 25 25 This also adds the Animation automatically to the AnimationPlayer's list 26 26 */ 27 Animation::Animation( void)27 Animation::Animation() 28 28 { 29 29 this->setClassID(CL_ANIMATION, "Animation"); … … 48 48 this also takes the animation out of the AnimationPlayer's list (if it is there) 49 49 */ 50 Animation::~Animation( void)50 Animation::~Animation() 51 51 { 52 52 this->doNotHandle(); … … 59 59 This means that it will not be ticked, and not be deleted with the AnimationPlayer 60 60 */ 61 void Animation::doNotHandle( void)61 void Animation::doNotHandle() 62 62 { 63 63 if (this->bHandled) … … 77 77 \brief handles the Animation if it gets out of boundraries eg. if animation is finished. 78 78 */ 79 void Animation::handleInfinity( void)79 void Animation::handleInfinity() 80 80 { 81 81 switch (this->postInfinity) -
orxonox/trunk/src/util/animation/animation.h
r4597 r4746 75 75 { 76 76 public: 77 virtual ~Animation( void);78 void doNotHandle( void);77 virtual ~Animation(); 78 void doNotHandle(); 79 79 80 80 void setInfinity(ANIM_INFINITY postInfinity = ANIM_INF_CONSTANT); … … 92 92 93 93 /** \returns the BaseObject, this animation operates on */ 94 BaseObject* getBaseObject( void) const { return this->baseObject; };94 BaseObject* getBaseObject() const { return this->baseObject; }; 95 95 96 96 /** \returns if the Animation should be deleted */ 97 inline bool ifDelete( void) { return bDelete; };97 inline bool ifDelete() { return bDelete; }; 98 98 99 99 protected: 100 Animation( void);100 Animation(); 101 101 102 void handleInfinity( void);102 void handleInfinity(); 103 103 104 104 protected: -
orxonox/trunk/src/util/animation/animation3d.cc
r4597 r4746 54 54 deletes all the Keyframes 55 55 */ 56 Animation3D::~Animation3D( void)56 Animation3D::~Animation3D() 57 57 { 58 58 // delete all the KeyFrames … … 71 71 \brief rewinds the Animation to the beginning (first KeyFrame and time == 0) 72 72 */ 73 void Animation3D::rewind( void)73 void Animation3D::rewind() 74 74 { 75 75 this->currentKeyFrame = keyFrameList->firstElement(); -
orxonox/trunk/src/util/animation/animation3d.h
r4597 r4746 32 32 public: 33 33 Animation3D(PNode* object); 34 virtual ~Animation3D( void);34 virtual ~Animation3D(); 35 35 36 virtual void rewind( void);36 virtual void rewind(); 37 37 38 38 void addKeyFrame(Vector position, Quaternion direction, float time, ANIM_FUNCTION animFuncMov = ANIM_DEFAULT_FUNCTION, ANIM_FUNCTION animFuncRot = ANIM_NULL); -
orxonox/trunk/src/util/animation/animation_player.cc
r4597 r4746 82 82 \brief empties the list AND deletes all the Animations 83 83 */ 84 void AnimationPlayer::flush( void)84 void AnimationPlayer::flush() 85 85 { 86 86 // deleting the Animation List AND all the elements of the List … … 126 126 \brief starts playing the AnimationPlayer 127 127 */ 128 void AnimationPlayer::play( void)128 void AnimationPlayer::play() 129 129 { 130 130 this->bRunning = true; … … 134 134 \brief pauses playing of the AnimationPlayer 135 135 */ 136 void AnimationPlayer::pause( void)136 void AnimationPlayer::pause() 137 137 { 138 138 this->bRunning = false; … … 166 166 \brief Outputs some nice debug-information 167 167 */ 168 void AnimationPlayer::debug( void)168 void AnimationPlayer::debug() 169 169 { 170 170 PRINT(0)("+------------------------------------+\n"); -
orxonox/trunk/src/util/animation/animation_player.h
r4597 r4746 30 30 public: 31 31 /** \returns a Pointer to the only object of this Class */ 32 inline static AnimationPlayer* getInstance( void) { if (!singletonRef) singletonRef = new AnimationPlayer(); return singletonRef; };32 inline static AnimationPlayer* getInstance() { if (!singletonRef) singletonRef = new AnimationPlayer(); return singletonRef; }; 33 33 34 virtual ~AnimationPlayer( void);34 virtual ~AnimationPlayer(); 35 35 36 36 // animation handling 37 37 void addAnimation(Animation* animation); 38 38 void removeAnimation(Animation* animation); 39 void flush( void);39 void flush(); 40 40 41 41 // time functions 42 42 void tick(float timePassed); 43 void play( void);44 void pause( void);43 void play(); 44 void pause(); 45 45 46 46 Animation* getAnimationFromBaseObject(const BaseObject* baseObject) const; 47 47 48 void debug( void);48 void debug(); 49 49 50 50 private: 51 51 /* singleton */ 52 AnimationPlayer( void);52 AnimationPlayer(); 53 53 static AnimationPlayer* singletonRef; //!< SingletonReference to this class. 54 54 -
orxonox/trunk/src/util/animation/t_animation.h
r4597 r4746 122 122 */ 123 123 template<class T> 124 void tAnimation<T>::rewind( void)124 void tAnimation<T>::rewind() 125 125 { 126 126 this->currentKeyFrame = keyFrameList->firstElement(); -
orxonox/trunk/src/util/garbage_collector.h
r4519 r4746 24 24 virtual ~GarbageCollector(); 25 25 /** \returns a Pointer to the only object of this Class */ 26 inline static GarbageCollector* getInstance( void) { if (!singletonRef) singletonRef = new GarbageCollector(); return singletonRef; };26 inline static GarbageCollector* getInstance() { if (!singletonRef) singletonRef = new GarbageCollector(); return singletonRef; }; 27 27 28 28 void setCollectionDelay(float delay); -
orxonox/trunk/src/util/loading/factory.h
r4739 r4746 53 53 static Factory* getFirst() { return Factory::first; }; 54 54 /** \returns the next factory */ 55 Factory* getNext( void) const { return this->next; };55 Factory* getNext() const { return this->next; }; 56 56 57 57 -
orxonox/trunk/src/util/loading/load_param.cc
r4734 r4746 179 179 \brief removes all the alocated memory 180 180 */ 181 LoadParamDescription::~LoadParamDescription( void)181 LoadParamDescription::~LoadParamDescription() 182 182 { 183 183 for(int i = 0; i < this->paramCount; i++) … … 208 208 \brief prints out this parameter, its input method and the description (if availiable) 209 209 */ 210 void LoadParamDescription::print( void) const210 void LoadParamDescription::print() const 211 211 { 212 212 PRINT(3)(" <%s>", this->paramName); … … 268 268 \brief deletes a classDescription (deletes all the parameterDescriptions as well 269 269 */ 270 LoadClassDescription::~LoadClassDescription( void)270 LoadClassDescription::~LoadClassDescription() 271 271 { 272 272 delete []this->className; -
orxonox/trunk/src/util/loading/load_param.h
r4734 r4746 254 254 public: 255 255 LoadParamDescription(const char* paramName); 256 ~LoadParamDescription( void);256 ~LoadParamDescription(); 257 257 258 258 void setDescription(const char* descriptionText); 259 259 /** \returns the descriptionString */ 260 const char* getDescription( void) { return this->description; };261 262 void print( void) const;260 const char* getDescription() { return this->description; }; 261 262 void print() const; 263 263 private: 264 264 char* paramName; //!< The name of the parameter. … … 275 275 public: 276 276 LoadClassDescription(const char* className); 277 ~LoadClassDescription( void);277 ~LoadClassDescription(); 278 278 279 279 static LoadClassDescription* addClass(const char* className); -
orxonox/trunk/src/util/object_manager.cc
r4699 r4746 92 92 \brief outputs some simple debug information about the ObjectManage 93 93 */ 94 void ObjectManager::debug( void) const94 void ObjectManager::debug() const 95 95 { 96 96 PRINT(0)("\n==========================| ObjectManager::debug() |===\n"); -
orxonox/trunk/src/util/object_manager.h
r4744 r4746 44 44 45 45 public: 46 virtual ~ObjectManager( void);46 virtual ~ObjectManager(); 47 47 /** \returns a Pointer to the only object of this Class */ 48 inline static ObjectManager* getInstance( void) { if (!singletonRef) singletonRef = new ObjectManager(); return singletonRef; };48 inline static ObjectManager* getInstance() { if (!singletonRef) singletonRef = new ObjectManager(); return singletonRef; }; 49 49 50 50 void registerClass(ClassID classID); … … 55 55 BaseObject* getFromDeadList(int index, int number = 1); 56 56 57 void debug( void) const;57 void debug() const; 58 58 59 59 private: 60 ObjectManager( void);60 ObjectManager(); 61 61 62 62 private: -
orxonox/trunk/src/util/resource_manager.cc
r4653 r4746 66 66 \brief standard destructor 67 67 */ 68 ResourceManager::~ResourceManager ( void)68 ResourceManager::~ResourceManager () 69 69 { 70 70 // deleting the Resources-List … … 780 780 \brief outputs debug information about the ResourceManager 781 781 */ 782 void ResourceManager::debug( void) const782 void ResourceManager::debug() const 783 783 { 784 784 PRINT(0)("=RM===================================\n"); -
orxonox/trunk/src/util/resource_manager.h
r4653 r4746 100 100 virtual ~ResourceManager(); 101 101 /** \returns a Pointer to the only object of this Class */ 102 inline static ResourceManager* getInstance( void) { if (!singletonRef) singletonRef = new ResourceManager(); return singletonRef; };102 inline static ResourceManager* getInstance() { if (!singletonRef) singletonRef = new ResourceManager(); return singletonRef; }; 103 103 104 104 bool setDataDir(const char* dataDir); 105 105 /** \returns the Name of the data directory */ 106 inline const char* getDataDir( void) const {return this->dataDir;}106 inline const char* getDataDir() const {return this->dataDir;} 107 107 108 108 bool checkDataDir(const char* fileInside); … … 116 116 bool unloadAllByPriority(ResourcePriority prio); 117 117 118 void debug( void) const;118 void debug() const; 119 119 120 120 -
orxonox/trunk/src/util/state.h
r4597 r4746 17 17 public: 18 18 /** \returns a Pointer to the only object of this Class */ 19 inline static State* getInstance( void) { if (!singletonRef) singletonRef = new State(); return singletonRef; };19 inline static State* getInstance() { if (!singletonRef) singletonRef = new State(); return singletonRef; }; 20 20 21 virtual ~State( void);21 virtual ~State(); 22 22 23 23 void setCamera(const PNode* camera, const PNode* cameraTarget); 24 24 /** \returns a Pointer to the PNode of the Camera */ 25 const PNode* getCamera( void) const { return this->camera; };25 const PNode* getCamera() const { return this->camera; }; 26 26 /** \returns a Pointer to the CameraTarget */ 27 const PNode* getCameraTarget( void) const { return this->cameraTarget; };27 const PNode* getCameraTarget() const { return this->cameraTarget; }; 28 28 29 29 private: 30 State( void);30 State(); 31 31 static State* singletonRef; //!< a reference to this class 32 32 -
orxonox/trunk/src/util/track/track_manager.cc
r4597 r4746 38 38 \brief initializes a TrackElement (sets the default values) 39 39 */ 40 TrackElement::TrackElement( void)40 TrackElement::TrackElement() 41 41 { 42 42 this->setClassID(CL_TRACK_ELEMENT, "TrackElement"); … … 69 69 \todo eventually when deleting a TrackElement you would not like to delete all its preceding TrackElements 70 70 */ 71 TrackElement::~TrackElement( void)71 TrackElement::~TrackElement() 72 72 { 73 73 // deleting the Curve … … 152 152 You actually have to act on false!! 153 153 */ 154 bool TrackElement::backLoopCheck( void) const154 bool TrackElement::backLoopCheck() const 155 155 { 156 156 tList<const TrackElement>* trackList = new tList<const TrackElement>; … … 216 216 \brief prints out debug information about this TrackElement 217 217 */ 218 void TrackElement::debug( void) const218 void TrackElement::debug() const 219 219 { 220 220 PRINT(0)("--== TrackElement:%i ==--", this->ID); … … 357 357 358 358 */ 359 TrackManager::TrackManager( void)359 TrackManager::TrackManager() 360 360 { 361 361 this->setClassID(CL_TRACK_MANAGER, "TrackManager"); … … 456 456 \brief standard destructor 457 457 */ 458 TrackManager::~TrackManager( void)458 TrackManager::~TrackManager() 459 459 { 460 460 PRINTF(3)("Destruct TrackManager\n"); … … 997 997 \todo check for any inconsistencies, output errors 998 998 */ 999 void TrackManager::finalize( void)999 void TrackManager::finalize() 1000 1000 { 1001 1001 for (int i = 1; i<= trackElemCount ;i++) … … 1061 1061 \returns the current Width of the track 1062 1062 */ 1063 float TrackManager::getWidth( void) const1063 float TrackManager::getWidth() const 1064 1064 { 1065 1065 return this->currentTrackElem->width; … … 1152 1152 \returns the main TrackNode 1153 1153 */ 1154 PNode* TrackManager::getTrackNode( void)1154 PNode* TrackManager::getTrackNode() 1155 1155 { 1156 1156 return this->trackNode; -
orxonox/trunk/src/util/track/track_manager.h
r4584 r4746 43 43 { 44 44 public: 45 TrackElement( void);46 ~TrackElement( void);45 TrackElement(); 46 ~TrackElement(); 47 47 48 48 TrackElement* findByID(unsigned int trackID); 49 49 TrackElement* findByName(const char* trackName); 50 bool backLoopCheck( void) const;50 bool backLoopCheck() const; 51 51 52 52 TrackElement* getChild(int childNumber) const; … … 78 78 TrackElement* history; //!< a pointer to the last TrackElement we were on. This is if you want to walk the path backwards again. 79 79 80 void debug( void) const;80 void debug() const; 81 81 82 82 // CONDITION FUNCTIONS and STUFF … … 135 135 { 136 136 public: 137 virtual ~TrackManager( void);137 virtual ~TrackManager(); 138 138 /** \returns a Pointer to the only object of this Class */ 139 inline static TrackManager* getInstance( void) { if (!singletonRef) singletonRef = new TrackManager(); return singletonRef; };139 inline static TrackManager* getInstance() { if (!singletonRef) singletonRef = new TrackManager(); return singletonRef; }; 140 140 141 141 bool loadParams(TiXmlElement* root); … … 166 166 void joinS(unsigned int cound, ...); 167 167 void joinV(unsigned int count, int* trackIDs); 168 void finalize( void);168 void finalize(); 169 169 170 170 // Methods to calculate the position on the Path (runtime) 171 inline Vector calcPos( void) const;172 inline Vector calcDir( void) const;173 float getWidth( void) const;171 inline Vector calcPos() const; 172 inline Vector calcDir() const; 173 float getWidth() const; 174 174 void tick(float dt); 175 175 void jumpTo(float time); … … 177 177 178 178 void setBindSlave(PNode* bindSlave); 179 PNode* getTrackNode( void);179 PNode* getTrackNode(); 180 180 181 181 // DEBUG // … … 184 184 185 185 private: 186 TrackManager( void);186 TrackManager(); 187 187 void initChildren(unsigned int childCount, TrackElement* trackElem = NULL); 188 188
Note: See TracChangeset
for help on using the changeset viewer.