Changeset 2069 for code/branches/objecthierarchy/src/core/Event.cc
- Timestamp:
- Oct 30, 2008, 11:58:31 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy/src/core/Event.cc
r2065 r2069 38 38 } 39 39 40 void EventContainer::process( BaseObject* object, const Event& event)40 void EventContainer::process(void* object, const Event& event) 41 41 { 42 42 if (this->eventname_ == event.sectionname_) … … 47 47 ++this->activeEvents_; 48 48 else 49 { 49 50 --this->activeEvents_; 50 51 52 if (this->activeEvents_ < 0) 53 this->activeEvents_ = 0; 54 } 55 51 56 if (this->eventfunction_->getParamCount() == 0 && event.activate_) 52 (*this->eventfunction_)( object);57 (*this->eventfunction_)(); 53 58 else if ((this->activeEvents_ == 1 && event.activate_) || (this->activeEvents_ == 0 && !event.activate_)) 54 59 { 55 60 if (this->eventfunction_->getParamCount() == 1) 56 (*this->eventfunction_)( object,this->activeEvents_);61 (*this->eventfunction_)(this->activeEvents_); 57 62 else if (this->eventfunction_->getParamCount() >= 2 && event.castedOriginator_) 58 (*this->eventfunction_)( object,this->activeEvents_, event.castedOriginator_);63 (*this->eventfunction_)(this->activeEvents_, event.castedOriginator_); 59 64 } 60 65 }
Note: See TracChangeset
for help on using the changeset viewer.