src/engine/eEventNotification.cpp File Reference

#include <iostream>
#include "eEventNotification.h"
#include "ePlayer.h"
#include "nNetwork.h"
#include "tString.h"

Include dependency graph for eEventNotification.cpp:

Go to the source code of this file.

Functions

void se_eventNotificationHandle (nMessage &m)
void se_sendEventNotification (tString title, tString message)

Variables

static nVersionFeature se_eventNotificationFeature (20)
static nDescriptor se_eventNotificationDescriptor (199, se_eventNotificationHandle,"event_notification")


Function Documentation

void se_eventNotificationHandle ( nMessage m  ) 

Definition at line 46 of file eEventNotification.cpp.

References Growl().

00047 {
00048     tString title, message;
00049     m >> title;
00050     m >> message;
00051 #ifdef MACOSX_XCODE
00052 #ifndef DEDICATED
00053     Growl(title, message);
00054 #endif
00055 #endif
00056 }

Here is the call graph for this function:

void se_sendEventNotification ( tString  title,
tString  message 
)

Definition at line 58 of file eEventNotification.cpp.

References MAXCLIENTS, se_eventNotificationDescriptor, se_eventNotificationFeature, nMessage::Send(), sn_Connections, and nVersionFeature::Supported().

Referenced by gGame::Analysis(), gCycle::KillAt(), own_game(), and gGame::StateUpdate().

00059 {
00060     for ( int user = MAXCLIENTS; user > 0; --user )
00061     {
00062         if ( sn_Connections[ user ].socket )
00063         {
00064             if ( se_eventNotificationFeature.Supported( user ) )
00065             {
00066                 nMessage *m = new nMessage( se_eventNotificationDescriptor );
00067                 *m << title;
00068                 *m << message;
00069                 m->Send( user );
00070             }
00071 
00072         }
00073     }
00074 }

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

nDescriptor se_eventNotificationDescriptor(199, se_eventNotificationHandle,"event_notification") [static]

Referenced by se_sendEventNotification().

nVersionFeature se_eventNotificationFeature(20) [static]

Referenced by se_sendEventNotification().


Generated on Sat Mar 15 22:56:58 2008 for Armagetron Advanced by  doxygen 1.5.4