Changeset 3182 for code/branches/pch/src/orxonox/interfaces
- Timestamp:
- Jun 15, 2009, 9:50:37 PM (16 years ago)
- Location:
- code/branches/pch/src/orxonox/interfaces
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pch/src/orxonox/interfaces/RadarViewable.cc
r3177 r3182 33 33 #include <OgreEntity.h> 34 34 35 #include "util/Debug.h"36 35 #include "util/String.h" 37 36 #include "core/CoreIncludes.h" … … 159 158 return object->getWorldOrientation() * object->getVelocity(); 160 159 } 160 161 void RadarViewable::validate(const WorldEntity* object) const 162 { 163 if (!object) 164 { 165 COUT(1) << "Assertation: Every RadarViewable has to be assigned a WorldEntity pointer!" << std::endl; 166 assert(0); 167 } 168 } 161 169 } -
code/branches/pch/src/orxonox/interfaces/RadarViewable.h
r3177 r3182 37 37 38 38 #include "util/Math.h" 39 #include "util/Debug.h"40 39 #include "core/OrxonoxClass.h" 41 40 … … 114 113 115 114 private: 116 void validate(const WorldEntity* object) const 117 { 118 if (!object) 119 { 120 COUT(1) << "Assertation: Every RadarViewable has to be assigned a WorldEntity pointer!" << std::endl; 121 assert(0); 122 } 123 } 124 115 void validate(const WorldEntity* object) const; 125 116 bool bVisibility_; 126 117 //Map
Note: See TracChangeset
for help on using the changeset viewer.