src/tron/gServerBrowser.cpp File Reference

#include "gServerBrowser.h"
#include "gGame.h"
#include "gLogo.h"
#include "gServerFavorites.h"
#include "gFriends.h"
#include "nServerInfo.h"
#include "nNetwork.h"
#include "rSysdep.h"
#include "rScreen.h"
#include "rConsole.h"
#include "rRender.h"
#include "uMenu.h"
#include "tMemManager.h"
#include "tSysTime.h"
#include "tToDo.h"
#include "tDirectories.h"
#include "tConfiguration.h"

Include dependency graph for gServerBrowser.cpp:

Go to the source code of this file.

Classes

class  gServerInfo
class  gServerMenu
class  gBrowserMenuItem
class  gServerMenuItem
class  gServerStartMenuItem

Functions

 tCONFIG_ENUM (nServerInfo::QueryType)
nServerInfoCreateGServer ()
static void Refresh ()

Variables

static bool continuePoll = false
static int sg_simultaneous = 5
static tSettingItem< int > sg_simultaneousConf ("BROWSER_QUERIES_SIMULTANEOUS", sg_simultaneous)
static tOutputsg_StartHelpText = NULL
nServerInfo::QueryType sg_queryType = nServerInfo::QUERY_OPTOUT
static tSettingItem
< nServerInfo::QueryType
sg_query_type ("BROWSER_QUERY_FILTER", sg_queryType)
static bool sg_RequestLANcontinuously = false
static nServerInfoBasesg_currentMaster = 0
static REAL text_height = .05
static REAL shrink = .6f
static REAL displace = .15
static bool sg_filterServernameColorStrings = true
static tSettingItem< bool > removeServerNameColors ("FILTER_COLOR_SERVER_NAMES", sg_filterServernameColorStrings)
static char const * sg_HelpText = "$network_master_browserhelp"


Function Documentation

nServerInfo* CreateGServer (  ) 

Definition at line 91 of file gServerBrowser.cpp.

References tNEW.

Referenced by gServerBrowser::BrowseLAN(), and gServerBrowser::BrowseSpecialMaster().

00092 {
00093     nServerInfo *ret = tNEW(gServerInfo);
00094 
00095     //if (!continuePoll)
00096     //{
00097     //    nServerInfo::StartQueryAll( sg_queryType );
00098     //    continuePoll = true;
00099     // }
00100 
00101     return ret;
00102 }

Here is the caller graph for this function:

static void Refresh (  )  [static]

Definition at line 665 of file gServerBrowser.cpp.

References continuePoll, sg_queryType, and nServerInfo::StartQueryAll().

Referenced by gBrowserMenuItem::Event().

00666 {
00667     continuePoll = true;
00668     nServerInfo::StartQueryAll( sg_queryType );
00669 }

Here is the call graph for this function:

Here is the caller graph for this function:

tCONFIG_ENUM ( nServerInfo::QueryType   ) 


Variable Documentation

bool continuePoll = false [static]

Definition at line 54 of file gServerBrowser.cpp.

Referenced by gServerBrowser::BrowseServers(), gServerMenuItem::Event(), Refresh(), gBrowserMenuItem::RenderBackground(), and gServerMenu::Update().

REAL displace = .15 [static]

Definition at line 487 of file gServerBrowser.cpp.

Referenced by gServerStartMenuItem::Render(), and gServerMenuItem::Render().

tSettingItem< bool > removeServerNameColors("FILTER_COLOR_SERVER_NAMES", sg_filterServernameColorStrings) [static]

nServerInfoBase* sg_currentMaster = 0 [static]

Definition at line 188 of file gServerBrowser.cpp.

bool sg_filterServernameColorStrings = true [static]

Definition at line 544 of file gServerBrowser.cpp.

Referenced by gServerMenuItem::Render().

char const* sg_HelpText = "$network_master_browserhelp" [static]

Definition at line 832 of file gServerBrowser.cpp.

tSettingItem< nServerInfo::QueryType > sg_query_type("BROWSER_QUERY_FILTER", sg_queryType) [static]

nServerInfo::QueryType sg_queryType = nServerInfo::QUERY_OPTOUT

Definition at line 60 of file gServerBrowser.cpp.

Referenced by gServerBrowser::BrowseServers(), Refresh(), and gServerMenu::Update().

bool sg_RequestLANcontinuously = false [static]

Definition at line 180 of file gServerBrowser.cpp.

Referenced by gServerBrowser::BrowseLAN(), gServerBrowser::BrowseSpecialMaster(), and gServerMenu::Update().

int sg_simultaneous = 5 [static]

Definition at line 55 of file gServerBrowser.cpp.

Referenced by gBrowserMenuItem::RenderBackground().

tSettingItem< int > sg_simultaneousConf("BROWSER_QUERIES_SIMULTANEOUS", sg_simultaneous) [static]

tOutput* sg_StartHelpText = NULL [static]

Definition at line 58 of file gServerBrowser.cpp.

REAL shrink = .6f [static]

Definition at line 486 of file gServerBrowser.cpp.

Referenced by gServerStartMenuItem::Render(), and gServerMenuItem::Render().

REAL text_height = .05 [static]

Definition at line 484 of file gServerBrowser.cpp.

Referenced by gServerMenu::Render(), and gServerMenuItem::RenderBackground().


Generated on Sat Mar 15 23:17:51 2008 for Armagetron Advanced by  doxygen 1.5.4