#include <gFriends.h>
Public Member Functions | |
gFriends () | |
Static Public Member Functions | |
static void | FriendsMenu () |
Public Attributes | |
tString | friends [MAX_FRIENDS] |
std::auto_ptr< tConfItemLine > | confItems [MAX_FRIENDS] |
Definition at line 35 of file gFriends.h.
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 }
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 }
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] |