| 1 | /* |
| 2 | * Copyright (C) 1999 Rob Crittenden ([email protected]) |
| 3 | * Copyright (C) 1999,2000 Ross Combs ([email protected]) |
| 4 | * |
| 5 | * This program is free software; you can redistribute it and/or |
| 6 | * modify it under the terms of the GNU General Public License |
| 7 | * as published by the Free Software Foundation; either version 2 |
| 8 | * of the License, or (at your option) any later version. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this program; if not, write to the Free Software |
| 17 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 18 | */ |
| 19 | #ifndef INCLUDED_LADDER_TYPEScxx . . $ `src/bnetd/ladder.h:20:9`! |
| 20 | #define INCLUDED_LADDER_TYPEScxx . . $ `src/bnetd/ladder.h:20:9`! |
| 21 | |
| 22 | #include "account.h"cxx . . $ `<file>/src/bnetd/account.h`/ |
| 23 | #include "common/tag.h"cxx . . $ `<file>/src/common/tag.h`/ |
| 24 | #include <vector> |
| 25 | #include <list> |
| 26 | #include <map> |
| 27 | #include <string> |
| 28 | #include <utility> |
| 29 | |
| 30 | #define W3_XPCALC_MAXLEVELcxx . . $ `src/bnetd/ladder.h:30:9`! 65 |
| 31 | |
| 32 | namespace pvpgncxx . . $ pvpgn/ |
| 33 | { |
| 34 | |
| 35 | namespace bnetdcxx . . $ pvpgn/bnetd/ |
| 36 | { |
| 37 | |
| 38 | |
| 39 | typedef enumcxx . . $ pvpgn/bnetd/$anonymous_type_2475ee68166332f8_0# |
| 40 | { |
| 41 | ladder_sort_highestratedcxx . . $ pvpgn/bnetd/ladder_sort_highestrated., |
| 42 | ladder_sort_mostwinscxx . . $ pvpgn/bnetd/ladder_sort_mostwins., |
| 43 | ladder_sort_mostgamescxx . . $ pvpgn/bnetd/ladder_sort_mostgames., |
| 44 | ladder_sort_defaultcxx . . $ pvpgn/bnetd/ladder_sort_default. |
| 45 | } t_ladder_sortcxx . . $ pvpgn/bnetd/t_ladder_sort#; |
| 46 | |
| 47 | extern const stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> bin_ladder_sort_strcxx . . $ pvpgn/bnetd/bin_ladder_sort_str.; |
| 48 | |
| 49 | typedef enumcxx . . $ pvpgn/bnetd/$anonymous_type_2475ee68166332f8_1# |
| 50 | { |
| 51 | ladder_time_activecxx . . $ pvpgn/bnetd/ladder_time_active., |
| 52 | ladder_time_currentcxx . . $ pvpgn/bnetd/ladder_time_current., |
| 53 | ladder_time_defaultcxx . . $ pvpgn/bnetd/ladder_time_default. |
| 54 | } t_ladder_timecxx . . $ pvpgn/bnetd/t_ladder_time#; |
| 55 | |
| 56 | extern const stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> bin_ladder_time_strcxx . . $ pvpgn/bnetd/bin_ladder_time_str.; |
| 57 | |
| 58 | typedef enumcxx . . $ pvpgn/bnetd/$anonymous_type_2475ee68166332f8_2# |
| 59 | { |
| 60 | ladder_id_nonecxx . . $ pvpgn/bnetd/ladder_id_none. = 0, |
| 61 | ladder_id_normalcxx . . $ pvpgn/bnetd/ladder_id_normal. = 1, |
| 62 | ladder_id_ironmancxx . . $ pvpgn/bnetd/ladder_id_ironman. = 3, |
| 63 | ladder_id_solocxx . . $ pvpgn/bnetd/ladder_id_solo. = 5, |
| 64 | ladder_id_teamcxx . . $ pvpgn/bnetd/ladder_id_team. = 6, |
| 65 | ladder_id_ffacxx . . $ pvpgn/bnetd/ladder_id_ffa. = 7, |
| 66 | ladder_id_ateamcxx . . $ pvpgn/bnetd/ladder_id_ateam. = 8 |
| 67 | } t_ladder_idcxx . . $ pvpgn/bnetd/t_ladder_id#; |
| 68 | |
| 69 | const extern stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> ladder_id_strcxx . . $ pvpgn/bnetd/ladder_id_str.; |
| 70 | const extern stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> bin_ladder_id_strcxx . . $ pvpgn/bnetd/bin_ladder_id_str.; |
| 71 | |
| 72 | typedef enumcxx . . $ pvpgn/bnetd/$anonymous_type_2475ee68166332f8_3# |
| 73 | { |
| 74 | ladder_option_nonecxx . . $ pvpgn/bnetd/ladder_option_none. = 0, |
| 75 | ladder_option_disconnectislosscxx . . $ pvpgn/bnetd/ladder_option_disconnectisloss. = 1 |
| 76 | } t_ladder_optioncxx . . $ pvpgn/bnetd/t_ladder_option#; |
| 77 | |
| 78 | typedef enumcxx . . $ pvpgn/bnetd/$anonymous_type_2475ee68166332f8_4# { referenceTypeAccountcxx . . $ pvpgn/bnetd/referenceTypeAccount., referenceTypeTeamcxx . . $ pvpgn/bnetd/referenceTypeTeam., referenceTypeClancxx . . $ pvpgn/bnetd/referenceTypeClan. } t_referenceTypecxx . . $ pvpgn/bnetd/t_referenceType#; |
| 79 | |
| 80 | class LadderKeycxx . . $ pvpgn/bnetd/LadderKey# |
| 81 | { |
| 82 | public: |
| 83 | LadderKeycxx . . $ pvpgn/bnetd/LadderKey#LadderKey(f0da15e05d48c065).(t_ladder_idcxx . . $ pvpgn/bnetd/t_ladder_id# ladderId_, t_clienttagcxx . . $ pvpgn/t_clienttag# clienttag_, t_ladder_sortcxx . . $ pvpgn/bnetd/t_ladder_sort# ladderSort_, t_ladder_timecxx . . $ pvpgn/bnetd/t_ladder_time# ladderTime_); |
| 84 | ~cxx . . $ pvpgn/bnetd/LadderKey#`~LadderKey`(ced63f7c635d850d).LadderKeycxx . . $ pvpgn/bnetd/LadderKey#() throw (); |
| 85 | bool operatorcxx . . $ pvpgn/bnetd/LadderKey#`operator==`(7e4c339e17ad259f).== (const LadderKeycxx . . $ pvpgn/bnetd/LadderKey#& right) const; |
| 86 | bool operatorcxx . . $ pvpgn/bnetd/LadderKey#`operator<`(7e4c339e17ad259f).< (const LadderKeycxx . . $ pvpgn/bnetd/LadderKey#& right) const; |
| 87 | t_ladder_idcxx . . $ pvpgn/bnetd/t_ladder_id# getLadderIdcxx . . $ pvpgn/bnetd/LadderKey#getLadderId(ceffab98f24dad29).() const; |
| 88 | t_clienttagcxx . . $ pvpgn/t_clienttag# getClienttagcxx . . $ pvpgn/bnetd/LadderKey#getClienttag(ddd8539a2fcdd4ce).() const; |
| 89 | t_ladder_sortcxx . . $ pvpgn/bnetd/t_ladder_sort# getLadderSortcxx . . $ pvpgn/bnetd/LadderKey#getLadderSort(f222824a3f7f9f).() const; |
| 90 | t_ladder_timecxx . . $ pvpgn/bnetd/t_ladder_time# getLadderTimecxx . . $ pvpgn/bnetd/LadderKey#getLadderTime(95c8d306b18567f).() const; |
| 91 | LadderKeycxx . . $ pvpgn/bnetd/LadderKey# getOpposingKeycxx . . $ pvpgn/bnetd/LadderKey#getOpposingKey(277d860c897d83c9).() const; |
| 92 | private: |
| 93 | t_ladder_idcxx . . $ pvpgn/bnetd/t_ladder_id# ladderIdcxx . . $ pvpgn/bnetd/LadderKey#ladderId.; |
| 94 | t_clienttagcxx . . $ pvpgn/t_clienttag# clienttagcxx . . $ pvpgn/bnetd/LadderKey#clienttag.; |
| 95 | t_ladder_sortcxx . . $ pvpgn/bnetd/t_ladder_sort# ladderSortcxx . . $ pvpgn/bnetd/LadderKey#ladderSort.; |
| 96 | t_ladder_timecxx . . $ pvpgn/bnetd/t_ladder_time# ladderTimecxx . . $ pvpgn/bnetd/LadderKey#ladderTime.; |
| 97 | }; |
| 98 | |
| 99 | class LadderReferencedObjectcxx . . $ pvpgn/bnetd/LadderReferencedObject# |
| 100 | { |
| 101 | public: |
| 102 | explicit LadderReferencedObjectcxx . . $ pvpgn/bnetd/LadderReferencedObject#LadderReferencedObject(a405232c11a3fb7b).(t_accountcxx . . $ pvpgn/bnetd/t_account# *account_); |
| 103 | explicit LadderReferencedObjectcxx . . $ pvpgn/bnetd/LadderReferencedObject#LadderReferencedObject(5f5c25e2d1d679ca).(t_teamcxx . . $ pvpgn/bnetd/t_team# *team_); |
| 104 | ~cxx . . $ pvpgn/bnetd/LadderReferencedObject#`~LadderReferencedObject`(ced63f7c635d850d).LadderReferencedObjectcxx . . $ pvpgn/bnetd/LadderReferencedObject#() throw (); |
| 105 | bool getDatacxx . . $ pvpgn/bnetd/LadderReferencedObject#getData(f2382695747ae1).(const LadderKeycxx . . $ pvpgn/bnetd/LadderKey#& ladderKey_, unsigned int& uid, unsigned int& primary_, unsigned int& secondary_, unsigned int& tertiary_) const; |
| 106 | unsigned int getRankcxx . . $ pvpgn/bnetd/LadderReferencedObject#getRank(6eafb4033dcbea84).(const LadderKeycxx . . $ pvpgn/bnetd/LadderKey#& ladderKey_) const; |
| 107 | bool setRankcxx . . $ pvpgn/bnetd/LadderReferencedObject#setRank(f9e795c3fd74e783).(const LadderKeycxx . . $ pvpgn/bnetd/LadderKey#& ladderKey_, unsigned int rank_) const; |
| 108 | t_accountcxx . . $ pvpgn/bnetd/t_account#* getAccountcxx . . $ pvpgn/bnetd/LadderReferencedObject#getAccount(bd50dfe41cbbfab3).() const; |
| 109 | t_teamcxx . . $ pvpgn/bnetd/t_team#* getTeamcxx . . $ pvpgn/bnetd/LadderReferencedObject#getTeam(d86d4840e1570a5a).() const; |
| 110 | void activatecxx . . $ pvpgn/bnetd/LadderReferencedObject#activate(de7834775c645ebb).(const LadderKeycxx . . $ pvpgn/bnetd/LadderKey#& ladderKey_) const; |
| 111 | const t_referenceTypecxx . . $ pvpgn/bnetd/t_referenceType# getReferenceTypecxx . . $ pvpgn/bnetd/LadderReferencedObject#getReferenceType(e852590b553adecf).() const; |
| 112 | private: |
| 113 | |
| 114 | t_referenceTypecxx . . $ pvpgn/bnetd/t_referenceType# referenceTypecxx . . $ pvpgn/bnetd/LadderReferencedObject#referenceType.; |
| 115 | t_accountcxx . . $ pvpgn/bnetd/t_account# * accountcxx . . $ pvpgn/bnetd/LadderReferencedObject#account.; |
| 116 | t_teamcxx . . $ pvpgn/bnetd/t_team# * teamcxx . . $ pvpgn/bnetd/LadderReferencedObject#team.; |
| 117 | }; |
| 118 | |
| 119 | class LadderEntrycxx . . $ pvpgn/bnetd/LadderEntry# |
| 120 | { |
| 121 | public: |
| 122 | LadderEntrycxx . . $ pvpgn/bnetd/LadderEntry#LadderEntry(2009b3a2f6ee1637).(unsigned int uid_, unsigned int primary_, unsigned int secondary_, unsigned int tertiary_, LadderReferencedObjectcxx . . $ pvpgn/bnetd/LadderReferencedObject# referencedObject_); |
| 123 | ~cxx . . $ pvpgn/bnetd/LadderEntry#`~LadderEntry`(ced63f7c635d850d).LadderEntrycxx . . $ pvpgn/bnetd/LadderEntry#() throw (); |
| 124 | unsigned int getUidcxx . . $ pvpgn/bnetd/LadderEntry#getUid(ddd8539a2fcdd4ce).() const; |
| 125 | unsigned int getPrimarycxx . . $ pvpgn/bnetd/LadderEntry#getPrimary(ddd8539a2fcdd4ce).() const; |
| 126 | unsigned int getSecondarycxx . . $ pvpgn/bnetd/LadderEntry#getSecondary(ddd8539a2fcdd4ce).() const; |
| 127 | unsigned int getTertiarycxx . . $ pvpgn/bnetd/LadderEntry#getTertiary(ddd8539a2fcdd4ce).() const; |
| 128 | unsigned int getRankcxx . . $ pvpgn/bnetd/LadderEntry#getRank(ddd8539a2fcdd4ce).() const; |
| 129 | const LadderReferencedObjectcxx . . $ pvpgn/bnetd/LadderReferencedObject#& getReferencedObjectcxx . . $ pvpgn/bnetd/LadderEntry#getReferencedObject(10d5159f3188c785).() const; |
| 130 | bool setRankcxx . . $ pvpgn/bnetd/LadderEntry#setRank(8ac21354512918e8).(unsigned int rank_, const LadderKeycxx . . $ pvpgn/bnetd/LadderKey#& ladderKey_); |
| 131 | void updatecxx . . $ pvpgn/bnetd/LadderEntry#update(6df00707c193238d).(unsigned int primary_, unsigned int secondary_, unsigned int tertiary_); |
| 132 | stdcxx . . $ std/::stringcxx . . $ std/string# statuscxx . . $ pvpgn/bnetd/LadderEntry#status(219584694fe2b248).() const; |
| 133 | bool operatorcxx . . $ pvpgn/bnetd/LadderEntry#`operator==`(255513136de1971d).== (const LadderEntrycxx . . $ pvpgn/bnetd/LadderEntry#& right) const; |
| 134 | bool operatorcxx . . $ pvpgn/bnetd/LadderEntry#`operator<`(255513136de1971d).< (const LadderEntrycxx . . $ pvpgn/bnetd/LadderEntry#& right) const; |
| 135 | private: |
| 136 | unsigned int uidcxx . . $ pvpgn/bnetd/LadderEntry#uid.; |
| 137 | unsigned int primarycxx . . $ pvpgn/bnetd/LadderEntry#primary.; |
| 138 | unsigned int secondarycxx . . $ pvpgn/bnetd/LadderEntry#secondary.; |
| 139 | unsigned int tertiarycxx . . $ pvpgn/bnetd/LadderEntry#tertiary.; |
| 140 | unsigned int rankcxx . . $ pvpgn/bnetd/LadderEntry#rank.; |
| 141 | LadderReferencedObjectcxx . . $ pvpgn/bnetd/LadderReferencedObject# referencedObjectcxx . . $ pvpgn/bnetd/LadderEntry#referencedObject.; |
| 142 | }; |
| 143 | |
| 144 | class LadderListcxx . . $ pvpgn/bnetd/LadderList# |
| 145 | { |
| 146 | public: |
| 147 | explicit LadderListcxx . . $ pvpgn/bnetd/LadderList#LadderList(fed12b10a0cb88d6).(LadderKeycxx . . $ pvpgn/bnetd/LadderKey# ladderkey_, t_referenceTypecxx . . $ pvpgn/bnetd/t_referenceType# referenceType_); |
| 148 | ~cxx . . $ pvpgn/bnetd/LadderList#`~LadderList`(ced63f7c635d850d).LadderListcxx . . $ pvpgn/bnetd/LadderList#() throw (); |
| 149 | bool loadcxx . . $ pvpgn/bnetd/LadderList#load(c9857a73d68e59ba).(); |
| 150 | bool savecxx . . $ pvpgn/bnetd/LadderList#save(c9857a73d68e59ba).(); |
| 151 | void addEntrycxx . . $ pvpgn/bnetd/LadderList#addEntry(f0ac5109e0f18056).(unsigned int uid_, unsigned int primary_, unsigned int secondary_, unsigned int tertiary_, const LadderReferencedObjectcxx . . $ pvpgn/bnetd/LadderReferencedObject#& referencedObject_); |
| 152 | void updateEntrycxx . . $ pvpgn/bnetd/LadderList#updateEntry(f0ac5109e0f18056).(unsigned int uid_, unsigned int primary_, unsigned int secondary_, unsigned int tertiary_, const LadderReferencedObjectcxx . . $ pvpgn/bnetd/LadderReferencedObject#& referencedObject_); |
| 153 | bool delEntrycxx . . $ pvpgn/bnetd/LadderList#delEntry(dfa6e707f7696010).(unsigned int uid_); |
| 154 | const LadderKeycxx . . $ pvpgn/bnetd/LadderKey#& getLadderKeycxx . . $ pvpgn/bnetd/LadderList#getLadderKey(5d9c31ea96ca8688).() const; |
| 155 | const t_referenceTypecxx . . $ pvpgn/bnetd/t_referenceType# getReferenceTypecxx . . $ pvpgn/bnetd/LadderList#getReferenceType(e852590b553adecf).() const; |
| 156 | void sortAndUpdatecxx . . $ pvpgn/bnetd/LadderList#sortAndUpdate(49f6e7a06ebc5aa8).(); |
| 157 | const LadderReferencedObjectcxx . . $ pvpgn/bnetd/LadderReferencedObject#* getReferencedObjectcxx . . $ pvpgn/bnetd/LadderList#getReferencedObject(56fd0941de524e93).(unsigned int rank) const; |
| 158 | unsigned int getRankcxx . . $ pvpgn/bnetd/LadderList#getRank(560347b7e9428769).(unsigned int uid_) const; |
| 159 | void activateFromcxx . . $ pvpgn/bnetd/LadderList#activateFrom(b602ba72ad058ae7).(const LadderListcxx . . $ pvpgn/bnetd/LadderList# * currentLadder_); |
| 160 | void writeStatusfilecxx . . $ pvpgn/bnetd/LadderList#writeStatusfile(83f5f38750778ac8).() const; |
| 161 | |
| 162 | private: |
| 163 | typedef stdcxx . . $ std/::vectorcxx . . $ std/vector#<LadderEntrycxx . . $ pvpgn/bnetd/LadderEntry#> LListcxx . . $ pvpgn/bnetd/LadderList#LList#; |
| 164 | LadderKeycxx . . $ pvpgn/bnetd/LadderKey# ladderKeycxx . . $ pvpgn/bnetd/LadderList#ladderKey.; |
| 165 | LListcxx . . $ pvpgn/bnetd/LadderList#LList# laddercxx . . $ pvpgn/bnetd/LadderList#ladder.; |
| 166 | bool dirtycxx . . $ pvpgn/bnetd/LadderList#dirty.; |
| 167 | bool savedcxx . . $ pvpgn/bnetd/LadderList#saved.; |
| 168 | stdcxx . . $ std/::stringcxx . . $ std/string# ladderFilenamecxx . . $ pvpgn/bnetd/LadderList#ladderFilename.; |
| 169 | t_referenceTypecxx . . $ pvpgn/bnetd/t_referenceType# referenceTypecxx . . $ pvpgn/bnetd/LadderList#referenceType.; |
| 170 | bool loadBinarycxx . . $ pvpgn/bnetd/LadderList#loadBinary(c9857a73d68e59ba).(); |
| 171 | bool saveBinarycxx . . $ pvpgn/bnetd/LadderList#saveBinary(c9857a73d68e59ba).(); |
| 172 | void readdatacxx . . $ pvpgn/bnetd/LadderList#readdata(2dd7fd59b847c6c5).(stdcxx . . $ std/::ifstreamcxx . . $ std/ifstream# &fp, unsigned int &data); |
| 173 | void readdatacxx . . $ pvpgn/bnetd/LadderList#readdata(468530e3cea018c6).(stdcxx . . $ std/::ifstreamcxx . . $ std/ifstream# &fp, unsigned int data[], unsigned int membercount); |
| 174 | void writedatacxx . . $ pvpgn/bnetd/LadderList#writedata(8c8c5c3d814e776b).(stdcxx . . $ std/::ofstreamcxx . . $ std/ofstream# &fp, unsigned int &data); |
| 175 | void writedatacxx . . $ pvpgn/bnetd/LadderList#writedata(4edc63c324985b75).(stdcxx . . $ std/::ofstreamcxx . . $ std/ofstream# &fp, const unsigned int &data); |
| 176 | void writedatacxx . . $ pvpgn/bnetd/LadderList#writedata(d1a88e30a0b4da4).(stdcxx . . $ std/::ofstreamcxx . . $ std/ofstream# &fp, unsigned int data[], unsigned int membercount); |
| 177 | |
| 178 | }; |
| 179 | |
| 180 | class Ladderscxx . . $ pvpgn/bnetd/Ladders# |
| 181 | { |
| 182 | public: |
| 183 | Ladderscxx . . $ pvpgn/bnetd/Ladders#Ladders(49f6e7a06ebc5aa8).(); |
| 184 | ~cxx . . $ pvpgn/bnetd/Ladders#`~Ladders`(ced63f7c635d850d).Ladderscxx . . $ pvpgn/bnetd/Ladders#() throw (); |
| 185 | LadderListcxx . . $ pvpgn/bnetd/LadderList#* getLadderListcxx . . $ pvpgn/bnetd/Ladders#getLadderList(2c0c64fbd1351270).(const LadderKeycxx . . $ pvpgn/bnetd/LadderKey#& ladderKey_); |
| 186 | void loadcxx . . $ pvpgn/bnetd/Ladders#load(49f6e7a06ebc5aa8).(); |
| 187 | void updatecxx . . $ pvpgn/bnetd/Ladders#update(49f6e7a06ebc5aa8).(); |
| 188 | void activatecxx . . $ pvpgn/bnetd/Ladders#activate(49f6e7a06ebc5aa8).(); |
| 189 | void savecxx . . $ pvpgn/bnetd/Ladders#save(49f6e7a06ebc5aa8).(); |
| 190 | void statuscxx . . $ pvpgn/bnetd/Ladders#status(83f5f38750778ac8).() const; |
| 191 | private: |
| 192 | void rebuildcxx . . $ pvpgn/bnetd/Ladders#rebuild(3f050cc5f374e5b7).(stdcxx . . $ std/::listcxx . . $ std/__cxx11/list#<LadderListcxx . . $ pvpgn/bnetd/LadderList#*>& laddersToRebuild); |
| 193 | typedef stdcxx . . $ std/::mapcxx . . $ std/map#<LadderKeycxx . . $ pvpgn/bnetd/LadderKey#, LadderListcxx . . $ pvpgn/bnetd/LadderList#> KeyLadderMapcxx . . $ pvpgn/bnetd/Ladders#KeyLadderMap#; |
| 194 | KeyLadderMapcxx . . $ pvpgn/bnetd/Ladders#KeyLadderMap# ladderMapcxx . . $ pvpgn/bnetd/Ladders#ladderMap.; |
| 195 | }; |
| 196 | |
| 197 | |
| 198 | extern Ladderscxx . . $ pvpgn/bnetd/Ladders# ladderscxx . . $ pvpgn/bnetd/ladders.; |
| 199 | |
| 200 | |
| 201 | #ifdef LADDER_INTERNAL_ACCESScxx . . $ `src/bnetd/ladder.cpp:21:9`! |
| 202 | |
| 203 | typedef structcxx . . $ pvpgn/bnetd/$anonymous_type_2475ee68166332f8_5# |
| 204 | { |
| 205 | int startxpcxx . . $ pvpgn/bnetd/$anonymous_type_2475ee68166332f8_5#startxp., neededxpcxx . . $ pvpgn/bnetd/$anonymous_type_2475ee68166332f8_5#neededxp., lossfactorcxx . . $ pvpgn/bnetd/$anonymous_type_2475ee68166332f8_5#lossfactor., mingamescxx . . $ pvpgn/bnetd/$anonymous_type_2475ee68166332f8_5#mingames.; |
| 206 | } t_xplevel_entrycxx . . $ pvpgn/bnetd/t_xplevel_entry#; |
| 207 | |
| 208 | typedef structcxx . . $ pvpgn/bnetd/$anonymous_type_2475ee68166332f8_6# |
| 209 | { |
| 210 | int higher_winxpcxx . . $ pvpgn/bnetd/$anonymous_type_2475ee68166332f8_6#higher_winxp., higher_lossxpcxx . . $ pvpgn/bnetd/$anonymous_type_2475ee68166332f8_6#higher_lossxp., lower_winxpcxx . . $ pvpgn/bnetd/$anonymous_type_2475ee68166332f8_6#lower_winxp., lower_lossxpcxx . . $ pvpgn/bnetd/$anonymous_type_2475ee68166332f8_6#lower_lossxp.; |
| 211 | } t_xpcalc_entrycxx . . $ pvpgn/bnetd/t_xpcalc_entry#; |
| 212 | #endif |
| 213 | |
| 214 | |
| 215 | } |
| 216 | |
| 217 | } |
| 218 | |
| 219 | #endif |
| 220 | |
| 221 | /*****/ |
| 222 | #ifndef JUST_NEED_TYPEScxx . . $ `src/bnetd/account_wrap.h:25:9`! |
| 223 | #ifndef INCLUDED_LADDER_PROTOS |
| 224 | #define INCLUDED_LADDER_PROTOScxx . . $ `src/bnetd/ladder.h:224:9`! |
| 225 | |
| 226 | #define JUST_NEED_TYPEScxx . . $ `src/bnetd/ladder.h:226:9`! |
| 227 | #include "account.h"cxx . . $ `<file>/src/bnetd/account.h`/ |
| 228 | #include "game.h"cxx . . $ `<file>/src/bnetd/game.h`/ |
| 229 | #include "ladder_calc.h"cxx . . $ `<file>/src/bnetd/ladder_calc.h`/ |
| 230 | #include "common/tag.h"cxx . . $ `<file>/src/common/tag.h`/ |
| 231 | #undef JUST_NEED_TYPEScxx . . $ `src/bnetd/ladder.h:226:9`! |
| 232 | |
| 233 | namespace pvpgncxx . . $ pvpgn/ |
| 234 | { |
| 235 | |
| 236 | namespace bnetdcxx . . $ pvpgn/bnetd/ |
| 237 | { |
| 238 | |
| 239 | extern int ladder_updatecxx . . $ pvpgn/bnetd/ladder_update(4752c89782a4cabb).(t_clienttagcxx . . $ pvpgn/t_clienttag# clienttag, t_ladder_idcxx . . $ pvpgn/bnetd/t_ladder_id# id, unsigned int count, t_accountcxx . . $ pvpgn/bnetd/t_account# * * players, t_game_resultcxx . . $ pvpgn/bnetd/t_game_result# * results, t_ladder_infocxx . . $ pvpgn/bnetd/t_ladder_info# * info); |
| 240 | extern int ladder_update_wolcxx . . $ pvpgn/bnetd/ladder_update_wol(d1ed5ef110d0cee8).(t_clienttagcxx . . $ pvpgn/t_clienttag# clienttag, t_ladder_idcxx . . $ pvpgn/bnetd/t_ladder_id# id, t_accountcxx . . $ pvpgn/bnetd/t_account# * * players, t_game_resultcxx . . $ pvpgn/bnetd/t_game_result# * results); |
| 241 | |
| 242 | extern int ladder_init_accountcxx . . $ pvpgn/bnetd/ladder_init_account(829aa05f631ee398).(t_accountcxx . . $ pvpgn/bnetd/t_account# * account, t_clienttagcxx . . $ pvpgn/t_clienttag# clienttag, t_ladder_idcxx . . $ pvpgn/bnetd/t_ladder_id# id); |
| 243 | extern int ladder_init_account_wolcxx . . $ pvpgn/bnetd/ladder_init_account_wol(829aa05f631ee398).(t_accountcxx . . $ pvpgn/bnetd/t_account# * account, t_clienttagcxx . . $ pvpgn/t_clienttag# clienttag, t_ladder_idcxx . . $ pvpgn/bnetd/t_ladder_id# id); |
| 244 | |
| 245 | extern int ladder_check_mapcxx . . $ pvpgn/bnetd/ladder_check_map(d9e7688701682d37).(char const * mapname, t_game_maptypecxx . . $ pvpgn/bnetd/t_game_maptype# maptype, t_clienttagcxx . . $ pvpgn/t_clienttag# clienttag); |
| 246 | |
| 247 | |
| 248 | extern int ladder_createxptablecxx . . $ pvpgn/bnetd/ladder_createxptable(5ae29d726ae57f88).(const char *xplevelfile, const char *xpcalcfile); |
| 249 | extern void ladder_destroyxptablecxx . . $ pvpgn/bnetd/ladder_destroyxptable(49f6e7a06ebc5aa8).(void); |
| 250 | |
| 251 | extern int ladder_war3_xpdiffcxx . . $ pvpgn/bnetd/ladder_war3_xpdiff(61837cdd6f1cbbd0).(unsigned int winnerlevel, unsigned int looserlevel, int *, int *); |
| 252 | extern int ladder_war3_updatelevelcxx . . $ pvpgn/bnetd/ladder_war3_updatelevel(1cb9ad283036edc7).(unsigned int oldlevel, int xp); |
| 253 | extern int ladder_war3_get_min_xpcxx . . $ pvpgn/bnetd/ladder_war3_get_min_xp(4c679297bf94b9eb).(unsigned int level); |
| 254 | extern int war3_get_maxleveldiffcxx . . $ pvpgn/bnetd/war3_get_maxleveldiff(b126dc7c1de90089).(void); |
| 255 | |
| 256 | |
| 257 | extern void ladder_reload_confcxx . . $ pvpgn/bnetd/ladder_reload_conf(49f6e7a06ebc5aa8).(void); |
| 258 | /* reloads relevant parameters from bnetd.conf (xml/std mode for ladder) */ |
| 259 | } |
| 260 | |
| 261 | } |
| 262 | |
| 263 | #endif |
| 264 | #endif |