src/network/nConfig.h File Reference

#include "tConfiguration.h"
#include "nNetwork.h"

Include dependency graph for nConfig.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  nIConfItemWatcher
 interface for objects watching over the change of network configuration items More...
class  nConfItemBase
 base clas for network configuration items More...
class  nConfItem< T >
class  nSettingItem< T >
class  nConfItemLine
class  nConfItemVersionWatcher
 configuration item watcher that shuts out clients that don't support a certain interface More...
class  nSettingItemWatched< T >
 convenience helper class: setting item and version watcher combined More...

Enumerations

enum  nConfigItemBehavior { Behavior_Nothing = 0, Behavior_Revert = 1, Behavior_Block = 2, Behavior_Default = 3 }
 how we react on a client with a version incompatible with a setting More...

Functions

template<class T>
bool sn_compare (T &a, T &b)
bool sn_compare (float &a, float &b)
 tCONFIG_ENUM (nConfigItemBehavior)


Enumeration Type Documentation

enum nConfigItemBehavior

how we react on a client with a version incompatible with a setting

Enumerator:
Behavior_Nothing  do nothing, let client on
Behavior_Revert  revert setting to default value
Behavior_Block  don't let the client play at all
Behavior_Default  do whatever someone else says

Definition at line 218 of file nConfig.h.

00219 {
00220     Behavior_Nothing = 0, 
00221     Behavior_Revert = 1,  
00222     Behavior_Block = 2,   
00223     Behavior_Default = 3  
00224 };


Function Documentation

bool sn_compare ( float &  a,
float &  b 
) [inline]

Definition at line 39 of file nConfig.h.

00040 {
00041     return (1000 * fabs(a-b) > fabs(a) + fabs(b));
00042 }

template<class T>
bool sn_compare ( T &  a,
T &  b 
) [inline]

Definition at line 34 of file nConfig.h.

Referenced by nConfItem< tString >::NetReadVal().

00035 {
00036     return (a!=b);
00037 }

Here is the caller graph for this function:

tCONFIG_ENUM ( nConfigItemBehavior   ) 


Generated on Sat Mar 15 23:00:27 2008 for Armagetron Advanced by  doxygen 1.5.4