gFriends Class Reference

#include <gFriends.h>

Collaboration diagram for gFriends:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 gFriends ()

Static Public Member Functions

static void FriendsMenu ()

Public Attributes

tString friends [MAX_FRIENDS]
std::auto_ptr< tConfItemLineconfItems [MAX_FRIENDS]


Detailed Description

Definition at line 35 of file gFriends.h.


Constructor & Destructor Documentation

gFriends::gFriends (  ) 

Definition at line 37 of file gFriends.cpp.

References confItems, friends, MAX_FRIENDS, and tNEW.

00038 {
00039         tString name;
00040     for(int i = MAX_FRIENDS-1; i>=0; i--)
00041         {
00042                 name = "FRIEND_";
00043                 name << (i + 1);
00044                 confItems[i] = std::auto_ptr< tConfItemLine >( tNEW(tConfItemLine) (tConfItemLine(name, friends[i])));
00045     }
00046 }


Member Function Documentation

void gFriends::FriendsMenu ( void   )  [static]

Definition at line 48 of file gFriends.cpp.

References uMenu::Enter(), friends, MAX_FRIENDS, sg_enableFriends, and tNEW.

Referenced by net_game().

00049 {
00050     uMenu net_menu("$friends_menu");
00051 
00052         uMenuItemToggle friends_enable (&net_menu, "$friends_enable", "$friends_enable_help", sg_enableFriends);
00053 
00054         tString name;
00055     for (int i = MAX_FRIENDS-1; i>=0; i--)
00056         {
00057                 name = tOutput("$friend_word");
00058                 name << " " << (i + 1);
00059                 tNEW(uMenuItemString) (uMenuItemString(&net_menu, name, "$friend_help", sg_friends.friends[i]));
00060     }
00061 
00062     net_menu.Enter();
00063 }

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

tString gFriends::friends[MAX_FRIENDS]

Definition at line 40 of file gFriends.h.

Referenced by FriendsMenu(), getFriends(), and gFriends().

std::auto_ptr< tConfItemLine > gFriends::confItems[MAX_FRIENDS]

Definition at line 41 of file gFriends.h.

Referenced by gFriends().


The documentation for this class was generated from the following files:
Generated on Sat Mar 15 23:39:19 2008 for Armagetron Advanced by  doxygen 1.5.4