Changeset 7193 for code/trunk
- Timestamp:
- Aug 20, 2010, 9:55:50 PM (14 years ago)
- Location:
- code/trunk
- Files:
-
- 6 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/data/levels/tutorial.oxw
r7163 r7193 14 14 </templates> 15 15 16 <NotificationQueue 17 name = "notification" 18 position = "0.05, 0.05" 19 font = "VeraMono" 20 textsize = 0.020 21 length = 3 22 width = 50 23 /> 24 16 25 <Scene 17 26 ambientlight = "0.5, 0.5, 0.5" … … 19 28 > 20 29 21 22 30 <CommandNotification preMessage="Press '" postMessage="' to fire your primary weapon." command="fire 0"> 31 <events> 32 <trigger> 33 <DistanceTrigger name=trigger position="0,0,-100" distance=10 target="Pawn"> 34 <attached> 35 <Billboard position="0,0,0" colour="1.0,1.0,0" material="Examples/Flare" /> 36 </attached> 37 </DistanceTrigger> 38 </trigger> 39 </events> 40 </CommandNotification> 23 41 24 42 <Drone name="meineDrohne" primarythrust="80" auxilarythrust="10" rotationthrust="10" mass= "50" linearDamping = "0.9" angularDamping = "0.7"> -
code/trunk/src/modules/notifications/CMakeLists.txt
r7164 r7193 1 1 SET_SOURCE_FILES(NOTIFICATIONS_SRC_FILES 2 2 Notification.cc 3 NotificationDispatcher.cc 3 4 NotificationManager.cc 4 5 NotificationOverlay.cc 5 6 NotificationQueue.cc 6 7 ) 8 9 ADD_SUBDIRECTORY(dispatchers) 7 10 8 11 ORXONOX_ADD_LIBRARY(notifications -
code/trunk/src/modules/notifications/Notification.cc
r7163 r7193 60 60 Notification::Notification(BaseObject* creator, const std::string & message) : BaseObject(creator) 61 61 { 62 RegisterObject(Notification); 63 this->initialize(); 62 64 this->message_ = message; 63 65 } … … 104 106 bool Notification::send(const std::string & sender) 105 107 { 108 if(this->isSent()) //TODO: Needed? 109 return false; 110 106 111 this->sender_ = sender; 107 112 bool successful = NotificationManager::getInstance().registerNotification(this); -
code/trunk/src/modules/notifications/NotificationsPrereqs.h
r7164 r7193 66 66 { 67 67 class Notification; 68 class NotificationDispatcher; 68 69 class NotificationManager; 69 70 class NotificationOverlay; 70 71 class NotificationQueue; 72 73 //dispatchers 74 class CommandNotification; 71 75 } 72 76
Note: See TracChangeset
for help on using the changeset viewer.