author | truebrain |
Fri, 18 Jul 2008 10:15:16 +0000 | |
branch | noai |
changeset 11168 | 3842648184cd |
parent 10829 | 8a0ec0f0f928 |
permissions | -rw-r--r-- |
2186 | 1 |
/* $Id$ */ |
2 |
||
10455
22c441f5adf9
(svn r12997) [NoAI] -Sync: with trunk r12895:12996.
rubidium
parents:
6573
diff
changeset
|
3 |
/** @file network_gamelist.h Handling of the list of games. */ |
22c441f5adf9
(svn r12997) [NoAI] -Sync: with trunk r12895:12996.
rubidium
parents:
6573
diff
changeset
|
4 |
|
543
e3b43338096b
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
diff
changeset
|
5 |
#ifndef NETWORK_GAMELIST_H |
e3b43338096b
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
diff
changeset
|
6 |
#define NETWORK_GAMELIST_H |
e3b43338096b
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
diff
changeset
|
7 |
|
10829 | 8 |
#include "network_type.h" |
9 |
||
6168
b587bfc4e44e
(svn r8544) -Codechange: move game list related function/struct declarations to network_gamelist.h
rubidium
parents:
6148
diff
changeset
|
10 |
/** Structure with information shown in the game list (GUI) */ |
b587bfc4e44e
(svn r8544) -Codechange: move game list related function/struct declarations to network_gamelist.h
rubidium
parents:
6148
diff
changeset
|
11 |
struct NetworkGameList { |
b587bfc4e44e
(svn r8544) -Codechange: move game list related function/struct declarations to network_gamelist.h
rubidium
parents:
6148
diff
changeset
|
12 |
NetworkGameInfo info; ///< The game information of this server |
b587bfc4e44e
(svn r8544) -Codechange: move game list related function/struct declarations to network_gamelist.h
rubidium
parents:
6148
diff
changeset
|
13 |
uint32 ip; ///< The IP of the game server |
b587bfc4e44e
(svn r8544) -Codechange: move game list related function/struct declarations to network_gamelist.h
rubidium
parents:
6148
diff
changeset
|
14 |
uint16 port; ///< The port of the game server |
b587bfc4e44e
(svn r8544) -Codechange: move game list related function/struct declarations to network_gamelist.h
rubidium
parents:
6148
diff
changeset
|
15 |
bool online; ///< False if the server did not respond (default status) |
b587bfc4e44e
(svn r8544) -Codechange: move game list related function/struct declarations to network_gamelist.h
rubidium
parents:
6148
diff
changeset
|
16 |
bool manually; ///< True if the server was added manually |
b587bfc4e44e
(svn r8544) -Codechange: move game list related function/struct declarations to network_gamelist.h
rubidium
parents:
6148
diff
changeset
|
17 |
uint8 retries; ///< Number of retries (to stop requerying) |
b587bfc4e44e
(svn r8544) -Codechange: move game list related function/struct declarations to network_gamelist.h
rubidium
parents:
6148
diff
changeset
|
18 |
NetworkGameList *next; ///< Next pointer to make a linked game list |
b587bfc4e44e
(svn r8544) -Codechange: move game list related function/struct declarations to network_gamelist.h
rubidium
parents:
6148
diff
changeset
|
19 |
}; |
b587bfc4e44e
(svn r8544) -Codechange: move game list related function/struct declarations to network_gamelist.h
rubidium
parents:
6148
diff
changeset
|
20 |
|
b587bfc4e44e
(svn r8544) -Codechange: move game list related function/struct declarations to network_gamelist.h
rubidium
parents:
6148
diff
changeset
|
21 |
/** Game list of this client */ |
b587bfc4e44e
(svn r8544) -Codechange: move game list related function/struct declarations to network_gamelist.h
rubidium
parents:
6148
diff
changeset
|
22 |
extern NetworkGameList *_network_game_list; |
b587bfc4e44e
(svn r8544) -Codechange: move game list related function/struct declarations to network_gamelist.h
rubidium
parents:
6148
diff
changeset
|
23 |
|
543
e3b43338096b
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
diff
changeset
|
24 |
NetworkGameList *NetworkGameListAddItem(uint32 ip, uint16 port); |
738
0b2fb79e64fc
(svn r1194) Feature: You can now add and remove servers from the server list. Those will be remembered until you delete them by pressing the Delete key.
dominik
parents:
716
diff
changeset
|
25 |
void NetworkGameListRemoveItem(NetworkGameList *remove); |
6573 | 26 |
void NetworkGameListRequery(); |
543
e3b43338096b
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
diff
changeset
|
27 |
|
e3b43338096b
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
diff
changeset
|
28 |
#endif /* NETWORK_GAMELIST_H */ |