Changeset 6412 for code/branches/pickup2/src/modules/objects
- Timestamp:
- Dec 25, 2009, 1:18:03 PM (15 years ago)
- Location:
- code/branches/pickup2
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pickup2
- Property svn:mergeinfo changed
-
code/branches/pickup2/src/modules/objects/Attacher.cc
r5929 r6412 98 98 this->target_ = 0; 99 99 100 if (this->targetname_ == "")100 if (this->targetname_.empty()) 101 101 return; 102 102 … … 113 113 void Attacher::loadedNewXMLName(BaseObject* object) 114 114 { 115 if (this->target_ || this->targetname_ == "")115 if (this->target_ || this->targetname_.empty()) 116 116 return; 117 117 -
code/branches/pickup2/src/modules/objects/collisionshapes/BoxCollisionShape.cc
r5781 r6412 66 66 XMLPortParam(BoxCollisionShape, "halfExtents", setHalfExtents, getHalfExtents, xmlelement, mode); 67 67 XMLPortParamLoadOnly(BoxCollisionShape, "width", setWidth, xmlelement, mode); 68 XMLPortParamLoadOnly(BoxCollisionShape, "height", setHeight, xmlelement, mode); 69 XMLPortParamLoadOnly(BoxCollisionShape, "length", setLength, xmlelement, mode); 68 XMLPortParamLoadOnly(BoxCollisionShape, "height", setHeight, xmlelement, mode); 69 XMLPortParamLoadOnly(BoxCollisionShape, "length", setLength, xmlelement, mode); 70 70 } 71 71 -
code/branches/pickup2/src/modules/objects/collisionshapes/ConeCollisionShape.cc
r5781 r6412 66 66 67 67 XMLPortParam(ConeCollisionShape, "radius", setRadius, getRadius, xmlelement, mode); 68 XMLPortParam(ConeCollisionShape, "height", setHeight, getHeight, xmlelement, mode); 68 XMLPortParam(ConeCollisionShape, "height", setHeight, getHeight, xmlelement, mode); 69 69 } 70 70 -
code/branches/pickup2/src/modules/objects/collisionshapes/PlaneCollisionShape.cc
r5781 r6412 67 67 68 68 XMLPortParam(PlaneCollisionShape, "normal", setNormal, getNormal, xmlelement, mode); 69 XMLPortParam(PlaneCollisionShape, "offset", setOffset, getOffset, xmlelement, mode); 69 XMLPortParam(PlaneCollisionShape, "offset", setOffset, getOffset, xmlelement, mode); 70 70 } 71 71 -
code/branches/pickup2/src/modules/objects/eventsystem/EventFilter.cc
r5929 r6412 62 62 if (this->bActive_) 63 63 { 64 COUT(2) << "Warning: Detected Event loop in EventFilter \"" << this->getName() << "\""<< std::endl;64 COUT(2) << "Warning: Detected Event loop in EventFilter \"" << this->getName() << '"' << std::endl; 65 65 return; 66 66 } -
code/branches/pickup2/src/modules/objects/eventsystem/EventListener.cc
r5929 r6412 58 58 if (this->bActive_) 59 59 { 60 COUT(2) << "Warning: Detected Event loop in EventListener \"" << this->getName() << "\""<< std::endl;60 COUT(2) << "Warning: Detected Event loop in EventListener \"" << this->getName() << '"' << std::endl; 61 61 return; 62 62 } … … 71 71 this->eventName_ = eventname; 72 72 73 if (this->eventName_ == "")73 if (this->eventName_.empty()) 74 74 return; 75 75 … … 81 81 void EventListener::loadedNewXMLName(BaseObject* object) 82 82 { 83 if (this->eventName_ == "")83 if (this->eventName_.empty()) 84 84 return; 85 85 -
code/branches/pickup2/src/modules/objects/eventsystem/EventTarget.cc
r5929 r6412 45 45 { 46 46 } 47 47 48 48 void EventTarget::XMLPort(Element& xmlelement, XMLPort::Mode mode) 49 49 { … … 60 60 if (this->bActive_) 61 61 { 62 COUT(2) << "Warning: Detected Event loop in EventTarget \"" << this->getName() << "\""<< std::endl;62 COUT(2) << "Warning: Detected Event loop in EventTarget \"" << this->getName() << '"' << std::endl; 63 63 return; 64 64 } … … 72 72 { 73 73 this->target_ = name; 74 74 75 75 for (ObjectList<BaseObject>::iterator it = ObjectList<BaseObject>::begin(); it != ObjectList<BaseObject>::end(); ++it) 76 76 if (it->getName() == this->target_) … … 80 80 void EventTarget::loadedNewXMLName(BaseObject* object) 81 81 { 82 if (this->target_ == "")82 if (this->target_.empty()) 83 83 return; 84 84 -
code/branches/pickup2/src/modules/objects/eventsystem/EventTarget.h
r5929 r6412 42 42 EventTarget(BaseObject* creator); 43 43 virtual ~EventTarget(); 44 44 45 45 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 46 46 47 47 virtual void processEvent(Event& event); 48 48 … … 54 54 virtual void loadedNewXMLName(BaseObject* object); 55 55 void addEventTarget(BaseObject* object); 56 56 57 57 std::string target_; 58 58 bool bActive_; -
code/branches/pickup2/src/modules/objects/triggers/DistanceTrigger.cc
r5937 r6412 92 92 if (!targetId) 93 93 { 94 COUT(1) << "Error: \"" << targets << "\" is not a valid class name to include in ClassTreeMask (in " << this->getName() << ", class " << this->getIdentifier()->getName() << ")"<< std::endl;94 COUT(1) << "Error: \"" << targets << "\" is not a valid class name to include in ClassTreeMask (in " << this->getName() << ", class " << this->getIdentifier()->getName() << ')' << std::endl; 95 95 return; 96 96 } -
code/branches/pickup2/src/modules/objects/triggers/Trigger.cc
r5929 r6412 280 280 { 281 281 if (this->mode_ == TriggerMode::EventTriggerAND) 282 return std::string("and");282 return "and"; 283 283 else if (this->mode_ == TriggerMode::EventTriggerOR) 284 return std::string("or");284 return "or"; 285 285 else if (this->mode_ == TriggerMode::EventTriggerXOR) 286 return std::string("xor");286 return "xor"; 287 287 else 288 return std::string("and");288 return "and"; 289 289 } 290 290
Note: See TracChangeset
for help on using the changeset viewer.