- Timestamp:
- Dec 14, 2008, 1:42:17 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation/src/orxonox/overlays/notifications/Notification.cc
r2385 r2435 34 34 #include "NotificationManager.h" 35 35 36 namespace orxonox {37 36 namespace orxonox 37 { 38 38 Notification::Notification(BaseObject* creator) : BaseObject(creator) 39 39 { … … 41 41 } 42 42 43 Notification::Notification( const std::string & message, const std::string & title, float time) : BaseObject(this)43 Notification::Notification(BaseObject* creator, const std::string & message, const std::string & title, float time) : BaseObject(creator) 44 44 { 45 45 this->title_ = title; … … 59 59 this->title_ = ""; 60 60 this->message_ = ""; 61 this->displayTime_ = DISPLAY_TIME;61 this->displayTime_ = NOTIFICATION_DISPLAY_TIME; 62 62 this->sent_ = false; 63 63 } … … 68 68 if(successful) 69 69 this->sent_ = true; 70 70 return successful; 71 71 } 72 72 … … 75 75 if(this->isSent()) 76 76 return false; 77 78 77 this->title_ = title; 78 return true; 79 79 } 80 80 … … 83 83 if(this->isSent()) 84 84 return false; 85 86 85 this->message_ = message; 86 return true; 87 87 } 88 88 … … 92 92 { 93 93 return false; 94 95 96 97 98 99 100 94 } 95 if(time > 0) 96 { 97 this->displayTime_ = time; 98 return true; 99 } 100 return false; 101 101 } 102 103 102 }
Note: See TracChangeset
for help on using the changeset viewer.