| 1 | /* |
| 2 | * (C) 2004 Olaf Freyer ([email protected]) |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or |
| 5 | * modify it under the terms of the GNU General Public License |
| 6 | * as published by the Free Software Foundation; either version 2 |
| 7 | * of the License, or (at your option) any later version. |
| 8 | * |
| 9 | * This program is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | * GNU General Public License for more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU General Public License |
| 15 | * along with this program; if not, write to the Free Software |
| 16 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 17 | */ |
| 18 | |
| 19 | #ifndef INCLUDED_TEAM_TYPEScxx . . $ `src/bnetd/team.h:20:9`! |
| 20 | #define INCLUDED_TEAM_TYPEScxx . . $ `src/bnetd/team.h:20:9`! |
| 21 | |
| 22 | #include <ctime> |
| 23 | |
| 24 | #ifndef JUST_NEED_TYPEScxx . . $ `src/bnetd/account_wrap.h:25:9`! |
| 25 | # define JUST_NEED_TYPEScxx . . $ `src/bnetd/team.h:25:10`! |
| 26 | # include "common/list.h"cxx . . $ `<file>/src/common/list.h`/ |
| 27 | # include "common/tag.h"cxx . . $ `<file>/src/common/tag.h`/ |
| 28 | # include "account.h"cxx . . $ `<file>/src/bnetd/account.h`/ |
| 29 | # undef JUST_NEED_TYPEScxx . . $ `src/bnetd/team.h:25:10`! |
| 30 | #else |
| 31 | # include "common/list.h"cxx . . $ `<file>/src/common/list.h`/ |
| 32 | # include "common/tag.h"cxx . . $ `<file>/src/common/tag.h`/ |
| 33 | # include "account.h"cxx . . $ `<file>/src/bnetd/account.h`/ |
| 34 | #endif |
| 35 | |
| 36 | #define MAX_TEAMSIZEcxx . . $ `src/bnetd/team.h:36:9`! 4 |
| 37 | |
| 38 | namespace pvpgncxx . . $ pvpgn/ |
| 39 | { |
| 40 | |
| 41 | namespace bnetdcxx . . $ pvpgn/bnetd/ |
| 42 | { |
| 43 | |
| 44 | typedef struct teamcxx . . $ pvpgn/bnetd/team# |
| 45 | #ifdef TEAM_INTERNAL_ACCESScxx . . $ `src/bnetd/team.cpp:19:9`! |
| 46 | { |
| 47 | unsigned char sizecxx . . $ pvpgn/bnetd/team#size.; |
| 48 | int winscxx . . $ pvpgn/bnetd/team#wins.; |
| 49 | int lossescxx . . $ pvpgn/bnetd/team#losses.; |
| 50 | int xpcxx . . $ pvpgn/bnetd/team#xp.; |
| 51 | int levelcxx . . $ pvpgn/bnetd/team#level.; |
| 52 | int rankcxx . . $ pvpgn/bnetd/team#rank.; |
| 53 | unsigned int teamidcxx . . $ pvpgn/bnetd/team#teamid.; |
| 54 | unsigned int teammemberscxx . . $ pvpgn/bnetd/team#teammembers.[MAX_TEAMSIZEcxx . . $ `src/bnetd/team.h:36:9`!]; |
| 55 | t_accountcxx . . $ pvpgn/bnetd/t_account# * memberscxx . . $ pvpgn/bnetd/team#members.[MAX_TEAMSIZEcxx . . $ `src/bnetd/team.h:36:9`!]; |
| 56 | t_clienttagcxx . . $ pvpgn/t_clienttag# clienttagcxx . . $ pvpgn/bnetd/team#clienttag.; |
| 57 | stdcxx . . $ std/::time_tcxx . . $ std/time_t# lastgamecxx . . $ pvpgn/bnetd/team#lastgame.; |
| 58 | } |
| 59 | #endif |
| 60 | t_teamcxx . . $ pvpgn/bnetd/t_team#; |
| 61 | |
| 62 | } |
| 63 | |
| 64 | } |
| 65 | |
| 66 | #endif |
| 67 | |
| 68 | #ifndef JUST_NEED_TYPEScxx . . $ `src/bnetd/account_wrap.h:25:9`! |
| 69 | #ifndef INCLUDED_TEAM_PROTOS |
| 70 | #define INCLUDED_TEAM_PROTOScxx . . $ `src/bnetd/team.h:70:9`! |
| 71 | |
| 72 | namespace pvpgncxx . . $ pvpgn/ |
| 73 | { |
| 74 | |
| 75 | namespace bnetdcxx . . $ pvpgn/bnetd/ |
| 76 | { |
| 77 | |
| 78 | extern int teamlist_loadcxx . . $ pvpgn/bnetd/teamlist_load(b126dc7c1de90089).(void); |
| 79 | extern int teamlist_unloadcxx . . $ pvpgn/bnetd/teamlist_unload(b126dc7c1de90089).(void); |
| 80 | extern int teams_destroycxx . . $ pvpgn/bnetd/teams_destroy(20db0232078327de).(t_listcxx . . $ pvpgn/t_list# *); |
| 81 | |
| 82 | extern t_teamcxx . . $ pvpgn/bnetd/t_team#* create_teamcxx . . $ pvpgn/bnetd/create_team(42f9c07c658dd58a).(t_accountcxx . . $ pvpgn/bnetd/t_account# **accounts, t_clienttagcxx . . $ pvpgn/t_clienttag# clienttag); |
| 83 | extern void dispose_teamcxx . . $ pvpgn/bnetd/dispose_team(5f5c25e2d1d679ca).(t_teamcxx . . $ pvpgn/bnetd/t_team# * team); |
| 84 | |
| 85 | extern t_teamcxx . . $ pvpgn/bnetd/t_team#* teamlist_find_team_by_accountscxx . . $ pvpgn/bnetd/teamlist_find_team_by_accounts(42f9c07c658dd58a).(t_accountcxx . . $ pvpgn/bnetd/t_account# **accounts, t_clienttagcxx . . $ pvpgn/t_clienttag# clienttag); |
| 86 | extern t_teamcxx . . $ pvpgn/bnetd/t_team#* teamlist_find_team_by_uidscxx . . $ pvpgn/bnetd/teamlist_find_team_by_uids(6fe6f0524b3a64d4).(unsigned int * uids, t_clienttagcxx . . $ pvpgn/t_clienttag# clienttag); |
| 87 | extern t_teamcxx . . $ pvpgn/bnetd/t_team#* teamlist_find_team_by_teamidcxx . . $ pvpgn/bnetd/teamlist_find_team_by_teamid(9f379b9caf96d76a).(unsigned int teamid); |
| 88 | |
| 89 | extern t_teamcxx . . $ pvpgn/bnetd/t_team#* _list_find_team_by_accountscxx . . $ pvpgn/bnetd/_list_find_team_by_accounts(9996263dfee4e414).(t_accountcxx . . $ pvpgn/bnetd/t_account# **accounts, t_clienttagcxx . . $ pvpgn/t_clienttag# clienttag, t_listcxx . . $ pvpgn/t_list# * list); |
| 90 | extern t_teamcxx . . $ pvpgn/bnetd/t_team#* _list_find_team_by_uidscxx . . $ pvpgn/bnetd/_list_find_team_by_uids(8fb7560a318b2f55).(unsigned int * uids, t_clienttagcxx . . $ pvpgn/t_clienttag# clienttag, t_listcxx . . $ pvpgn/t_list# * list); |
| 91 | extern t_teamcxx . . $ pvpgn/bnetd/t_team#* _list_find_team_by_teamidcxx . . $ pvpgn/bnetd/_list_find_team_by_teamid(924765dc6b5f1897).(unsigned int teamid, t_listcxx . . $ pvpgn/t_list# * list); |
| 92 | |
| 93 | extern unsigned int team_get_teamidcxx . . $ pvpgn/bnetd/team_get_teamid(3d0b4ed7d37a7d35).(t_teamcxx . . $ pvpgn/bnetd/t_team# * team); |
| 94 | extern t_accountcxx . . $ pvpgn/bnetd/t_account# * team_get_membercxx . . $ pvpgn/bnetd/team_get_member(98f1b445a9d30dd9).(t_teamcxx . . $ pvpgn/bnetd/t_team# * team, int count); |
| 95 | extern unsigned int team_get_memberuidcxx . . $ pvpgn/bnetd/team_get_memberuid(ddee88b4298fccdd).(t_teamcxx . . $ pvpgn/bnetd/t_team# * team, int count); |
| 96 | |
| 97 | extern t_clienttagcxx . . $ pvpgn/t_clienttag# team_get_clienttagcxx . . $ pvpgn/bnetd/team_get_clienttag(3d0b4ed7d37a7d35).(t_teamcxx . . $ pvpgn/bnetd/t_team# * team); |
| 98 | extern unsigned char team_get_sizecxx . . $ pvpgn/bnetd/team_get_size(7a9350cb6bb6d81e).(t_teamcxx . . $ pvpgn/bnetd/t_team# * team); |
| 99 | extern int team_get_winscxx . . $ pvpgn/bnetd/team_get_wins(bfd9c5af88c00d10).(t_teamcxx . . $ pvpgn/bnetd/t_team# * team); |
| 100 | extern int team_get_lossescxx . . $ pvpgn/bnetd/team_get_losses(bfd9c5af88c00d10).(t_teamcxx . . $ pvpgn/bnetd/t_team# * team); |
| 101 | extern int team_get_xpcxx . . $ pvpgn/bnetd/team_get_xp(bfd9c5af88c00d10).(t_teamcxx . . $ pvpgn/bnetd/t_team# * team); |
| 102 | extern int team_get_levelcxx . . $ pvpgn/bnetd/team_get_level(bfd9c5af88c00d10).(t_teamcxx . . $ pvpgn/bnetd/t_team# * team); |
| 103 | extern int team_set_rankcxx . . $ pvpgn/bnetd/team_set_rank(635b0a799ca96413).(t_teamcxx . . $ pvpgn/bnetd/t_team# * team, unsigned int rank); |
| 104 | extern int team_get_rankcxx . . $ pvpgn/bnetd/team_get_rank(bfd9c5af88c00d10).(t_teamcxx . . $ pvpgn/bnetd/t_team# * team); |
| 105 | extern stdcxx . . $ std/::time_tcxx . . $ std/time_t# team_get_lastgamecxx . . $ pvpgn/bnetd/team_get_lastgame(44a6e6e074cf5534).(t_teamcxx . . $ pvpgn/bnetd/t_team# * team); |
| 106 | |
| 107 | extern int team_inc_winscxx . . $ pvpgn/bnetd/team_inc_wins(bfd9c5af88c00d10).(t_teamcxx . . $ pvpgn/bnetd/t_team# * team); |
| 108 | extern int team_inc_lossescxx . . $ pvpgn/bnetd/team_inc_losses(bfd9c5af88c00d10).(t_teamcxx . . $ pvpgn/bnetd/t_team# * team); |
| 109 | |
| 110 | extern int team_set_saveladderstatscxx . . $ pvpgn/bnetd/team_set_saveladderstats(2629837aadad176e).(t_teamcxx . . $ pvpgn/bnetd/t_team# * team, unsigned int gametype, int result, unsigned int opponlevel, t_clienttagcxx . . $ pvpgn/t_clienttag# clienttag); |
| 111 | |
| 112 | } |
| 113 | |
| 114 | } |
| 115 | |
| 116 | #endif |
| 117 | #endif |