| 1 | /* |
| 2 | * This program is free software; you can redistribute it and/or |
| 3 | * modify it under the terms of the GNU General Public License |
| 4 | * as published by the Free Software Foundation; either version 2 |
| 5 | * of the License, or (at your option) any later version. |
| 6 | * |
| 7 | * This program is distributed in the hope that it will be useful, |
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 10 | * GNU General Public License for more details. |
| 11 | * |
| 12 | * You should have received a copy of the GNU General Public License |
| 13 | * along with this program; if not, write to the Free Software |
| 14 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 15 | */ |
| 16 | #ifndef INCLUDED_TOURNAMENT_TYPES |
| 17 | #define INCLUDED_TOURNAMENT_TYPEScxx . . $ `src/bnetd/tournament.h:17:9`! |
| 18 | |
| 19 | #include <ctime> |
| 20 | |
| 21 | namespace pvpgncxx . . $ pvpgn/ |
| 22 | { |
| 23 | |
| 24 | namespace bnetdcxx . . $ pvpgn/bnetd/ |
| 25 | { |
| 26 | |
| 27 | typedef structcxx . . $ pvpgn/bnetd/$anonymous_type_ae46d1c287e2b54c_0# |
| 28 | { |
| 29 | stdcxx . . $ std/::time_tcxx . . $ std/time_t# start_preliminarycxx . . $ pvpgn/bnetd/$anonymous_type_ae46d1c287e2b54c_0#start_preliminary.; |
| 30 | stdcxx . . $ std/::time_tcxx . . $ std/time_t# end_signupcxx . . $ pvpgn/bnetd/$anonymous_type_ae46d1c287e2b54c_0#end_signup.; |
| 31 | stdcxx . . $ std/::time_tcxx . . $ std/time_t# end_preliminarycxx . . $ pvpgn/bnetd/$anonymous_type_ae46d1c287e2b54c_0#end_preliminary.; |
| 32 | stdcxx . . $ std/::time_tcxx . . $ std/time_t# start_round_1cxx . . $ pvpgn/bnetd/$anonymous_type_ae46d1c287e2b54c_0#start_round_1.; |
| 33 | stdcxx . . $ std/::time_tcxx . . $ std/time_t# start_round_2cxx . . $ pvpgn/bnetd/$anonymous_type_ae46d1c287e2b54c_0#start_round_2.; |
| 34 | stdcxx . . $ std/::time_tcxx . . $ std/time_t# start_round_3cxx . . $ pvpgn/bnetd/$anonymous_type_ae46d1c287e2b54c_0#start_round_3.; |
| 35 | stdcxx . . $ std/::time_tcxx . . $ std/time_t# start_round_4cxx . . $ pvpgn/bnetd/$anonymous_type_ae46d1c287e2b54c_0#start_round_4.; |
| 36 | stdcxx . . $ std/::time_tcxx . . $ std/time_t# tournament_endcxx . . $ pvpgn/bnetd/$anonymous_type_ae46d1c287e2b54c_0#tournament_end.; |
| 37 | unsigned int game_selectioncxx . . $ pvpgn/bnetd/$anonymous_type_ae46d1c287e2b54c_0#game_selection.; |
| 38 | unsigned int game_typecxx . . $ pvpgn/bnetd/$anonymous_type_ae46d1c287e2b54c_0#game_type.; |
| 39 | unsigned int game_clientcxx . . $ pvpgn/bnetd/$anonymous_type_ae46d1c287e2b54c_0#game_client.; |
| 40 | unsigned int racescxx . . $ pvpgn/bnetd/$anonymous_type_ae46d1c287e2b54c_0#races.; |
| 41 | char * formatcxx . . $ pvpgn/bnetd/$anonymous_type_ae46d1c287e2b54c_0#format.; |
| 42 | char * sponsorcxx . . $ pvpgn/bnetd/$anonymous_type_ae46d1c287e2b54c_0#sponsor.; /* format: "ricon,sponsor" |
| 43 | * ricon = W3+icon reversed , if 2 char icon is selected |
| 44 | * or reversed icon if 4 char icon is selected |
| 45 | * ie. "4R3W,The PvPGN Team" |
| 46 | */ |
| 47 | unsigned int thumbs_downcxx . . $ pvpgn/bnetd/$anonymous_type_ae46d1c287e2b54c_0#thumbs_down.; |
| 48 | } t_tournament_infocxx . . $ pvpgn/bnetd/t_tournament_info#; |
| 49 | |
| 50 | typedef structcxx . . $ pvpgn/bnetd/$anonymous_type_ae46d1c287e2b54c_1# |
| 51 | { |
| 52 | char * namecxx . . $ pvpgn/bnetd/$anonymous_type_ae46d1c287e2b54c_1#name.; |
| 53 | unsigned int winscxx . . $ pvpgn/bnetd/$anonymous_type_ae46d1c287e2b54c_1#wins.; |
| 54 | unsigned int lossescxx . . $ pvpgn/bnetd/$anonymous_type_ae46d1c287e2b54c_1#losses.; |
| 55 | unsigned int tiescxx . . $ pvpgn/bnetd/$anonymous_type_ae46d1c287e2b54c_1#ties.; |
| 56 | int in_gamecxx . . $ pvpgn/bnetd/$anonymous_type_ae46d1c287e2b54c_1#in_game.; |
| 57 | int in_finalscxx . . $ pvpgn/bnetd/$anonymous_type_ae46d1c287e2b54c_1#in_finals.; |
| 58 | } t_tournament_usercxx . . $ pvpgn/bnetd/t_tournament_user#; |
| 59 | |
| 60 | } |
| 61 | |
| 62 | } |
| 63 | |
| 64 | #endif |
| 65 | |
| 66 | #ifndef JUST_NEED_TYPES |
| 67 | #ifndef INCLUDED_TOURNAMENT_PROTOS |
| 68 | #define INCLUDED_TOURNAMENT_PROTOScxx . . $ `src/bnetd/tournament.h:68:9`! |
| 69 | |
| 70 | #define JUST_NEED_TYPEScxx . . $ `src/bnetd/tournament.h:70:9`! |
| 71 | # include "account.h"cxx . . $ `<file>/src/bnetd/account.h`/ |
| 72 | #undef JUST_NEED_TYPEScxx . . $ `src/bnetd/tournament.h:70:9`! |
| 73 | |
| 74 | namespace pvpgncxx . . $ pvpgn/ |
| 75 | { |
| 76 | |
| 77 | namespace bnetdcxx . . $ pvpgn/bnetd/ |
| 78 | { |
| 79 | |
| 80 | extern int tournament_signup_usercxx . . $ pvpgn/bnetd/tournament_signup_user(367bfb076f70247b).(t_accountcxx . . $ pvpgn/bnetd/t_account# * account); |
| 81 | extern int tournament_user_signed_upcxx . . $ pvpgn/bnetd/tournament_user_signed_up(367bfb076f70247b).(t_accountcxx . . $ pvpgn/bnetd/t_account# * account); |
| 82 | extern int tournament_add_statcxx . . $ pvpgn/bnetd/tournament_add_stat(9f6a50bf8c531a3f).(t_accountcxx . . $ pvpgn/bnetd/t_account# * account, int stat); |
| 83 | extern int tournament_get_statcxx . . $ pvpgn/bnetd/tournament_get_stat(9f6a50bf8c531a3f).(t_accountcxx . . $ pvpgn/bnetd/t_account# * account, int stat); |
| 84 | extern int tournament_get_player_scorecxx . . $ pvpgn/bnetd/tournament_get_player_score(367bfb076f70247b).(t_accountcxx . . $ pvpgn/bnetd/t_account# * account); |
| 85 | extern int tournament_set_in_game_statuscxx . . $ pvpgn/bnetd/tournament_set_in_game_status(9f6a50bf8c531a3f).(t_accountcxx . . $ pvpgn/bnetd/t_account# * account, int status); |
| 86 | extern int tournament_get_in_finals_statuscxx . . $ pvpgn/bnetd/tournament_get_in_finals_status(367bfb076f70247b).(t_accountcxx . . $ pvpgn/bnetd/t_account# * account); |
| 87 | extern int tournament_get_game_in_progresscxx . . $ pvpgn/bnetd/tournament_get_game_in_progress(b126dc7c1de90089).(void); |
| 88 | extern int tournament_check_clientcxx . . $ pvpgn/bnetd/tournament_check_client(4c679297bf94b9eb).(t_clienttagcxx . . $ pvpgn/t_clienttag# clienttag); |
| 89 | |
| 90 | extern int tournament_get_totalplayerscxx . . $ pvpgn/bnetd/tournament_get_totalplayers(b126dc7c1de90089).(void); |
| 91 | extern int tournament_is_arrangedcxx . . $ pvpgn/bnetd/tournament_is_arranged(b126dc7c1de90089).(void); |
| 92 | |
| 93 | /*****/ |
| 94 | extern int tournament_initcxx . . $ pvpgn/bnetd/tournament_init(5c4306d8553b3696).(char const * filename); |
| 95 | extern int tournament_destroycxx . . $ pvpgn/bnetd/tournament_destroy(b126dc7c1de90089).(void); |
| 96 | extern int tournament_reloadcxx . . $ pvpgn/bnetd/tournament_reload(5c4306d8553b3696).(char const * filename); |
| 97 | |
| 98 | /*****/ |
| 99 | extern unsigned int tournament_get_start_preliminarycxx . . $ pvpgn/bnetd/tournament_get_start_preliminary(db52760e79bf9054).(void); |
| 100 | extern unsigned int tournament_get_end_signupcxx . . $ pvpgn/bnetd/tournament_get_end_signup(db52760e79bf9054).(void); |
| 101 | extern unsigned int tournament_get_end_preliminarycxx . . $ pvpgn/bnetd/tournament_get_end_preliminary(db52760e79bf9054).(void); |
| 102 | extern unsigned int tournament_get_start_round_1cxx . . $ pvpgn/bnetd/tournament_get_start_round_1(db52760e79bf9054).(void); |
| 103 | extern unsigned int tournament_get_start_round_2cxx . . $ pvpgn/bnetd/tournament_get_start_round_2(db52760e79bf9054).(void); |
| 104 | extern unsigned int tournament_get_start_round_3cxx . . $ pvpgn/bnetd/tournament_get_start_round_3(db52760e79bf9054).(void); |
| 105 | extern unsigned int tournament_get_start_round_4cxx . . $ pvpgn/bnetd/tournament_get_start_round_4(db52760e79bf9054).(void); |
| 106 | extern unsigned int tournament_get_tournament_endcxx . . $ pvpgn/bnetd/tournament_get_tournament_end(db52760e79bf9054).(void); |
| 107 | extern unsigned int tournament_get_game_selectioncxx . . $ pvpgn/bnetd/tournament_get_game_selection(db52760e79bf9054).(void); |
| 108 | extern unsigned int tournament_get_game_typecxx . . $ pvpgn/bnetd/tournament_get_game_type(db52760e79bf9054).(void); |
| 109 | extern unsigned int tournament_get_racescxx . . $ pvpgn/bnetd/tournament_get_races(db52760e79bf9054).(void); |
| 110 | extern char * tournament_get_formatcxx . . $ pvpgn/bnetd/tournament_get_format(41208ce6ca65dd58).(void); |
| 111 | extern char * tournament_get_sponsorcxx . . $ pvpgn/bnetd/tournament_get_sponsor(41208ce6ca65dd58).(void); |
| 112 | extern unsigned int tournament_get_thumbs_downcxx . . $ pvpgn/bnetd/tournament_get_thumbs_down(db52760e79bf9054).(void); |
| 113 | |
| 114 | } |
| 115 | |
| 116 | } |
| 117 | |
| 118 | /*****/ |
| 119 | #endif |
| 120 | #endif |