-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathghostdb.h
1285 lines (1105 loc) · 51.5 KB
/
ghostdb.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
ent-ghost
Copyright [2011-2013] [Jack Lu]
This file is part of the ent-ghost source code.
ent-ghost is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
ent-ghost source code is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with ent-ghost source code. If not, see <http://www.gnu.org/licenses/>.
ent-ghost is modified from GHost++ (http://ghostplusplus.googlecode.com/)
GHost++ is Copyright [2008] [Trevor Hogan]
*/
#ifndef GHOSTDB_H
#define GHOSTDB_H
//
// CGHostDB
//
class CBaseCallable;
class CCallableAdminCount;
class CCallableAdminCheck;
class CCallableAdminAdd;
class CCallableAdminRemove;
class CCallableAdminList;
class CCallableBanCount;
class CCallableBanCheck;
class CCallableBanAdd;
class CCallableBanRemove;
class CCallableSpoofList;
class CCallableReconUpdate;
class CCallableCommandList;
class CCallableGameAdd;
class CCallableGameUpdate;
class CCallableGamePlayerAdd;
class CCallableGamePlayerSummaryCheck;
class CCallableDotAGameAdd;
class CCallableDotAPlayerAdd;
class CCallableDotAPlayerSummaryCheck;
class CCallableVampPlayerSummaryCheck;
class CCallableTreePlayerSummaryCheck;
class CCallableShipsPlayerSummaryCheck;
class CCallableSnipePlayerSummaryCheck;
class CCallableW3MMDPlayerSummaryCheck;
class CCallableDownloadAdd;
class CCallableScoreCheck;
class CCallableLeagueCheck;
class CCallableGetTournament;
class CCallableTournamentChat;
class CCallableTournamentUpdate;
class CCallableConnectCheck;
class CCallableW3MMDPlayerAdd;
class CCallableW3MMDVarAdd;
class CDBBan;
class CDBGame;
class CDBGamePlayer;
class CDBGamePlayerSummary;
class CDBDotAPlayerSummary;
class CDBVampPlayerSummary;
class CDBTreePlayerSummary;
class CDBShipsPlayerSummary;
class CDBSnipePlayerSummary;
class CDBW3MMDPlayerSummary;
class CBNET;
typedef pair<uint32_t,string> VarP;
class CGHostDB
{
protected:
bool m_HasError;
string m_Error;
public:
CGHostDB( CConfig *CFG );
virtual ~CGHostDB( );
bool HasError( ) { return m_HasError; }
string GetError( ) { return m_Error; }
virtual string GetStatus( ) { return "DB STATUS --- OK"; }
virtual void RecoverCallable( CBaseCallable *callable );
// standard (non-threaded) database functions
virtual bool Begin( );
virtual bool Commit( );
virtual uint32_t AdminCount( string server );
virtual bool AdminCheck( string server, string user );
virtual bool AdminAdd( string server, string user );
virtual bool AdminRemove( string server, string user );
virtual vector<string> AdminList( string server );
virtual uint32_t BanCount( string server );
virtual CDBBan *BanCheck( string server, string user, string ip, string hostname, string ownername );
virtual uint32_t BanAdd( string server, string user, string ip, string gamename, string admin, string reason, uint32_t expiretime, string context );
virtual bool BanRemove( string server, string user, string context );
virtual bool BanRemove( string user, string context );
virtual map<string, string> SpoofList( );
virtual void ReconUpdate( uint32_t hostcounter, uint32_t seconds );
virtual vector<string> CommandList( );
virtual uint32_t GameAdd( string server, string map, string gamename, string ownername, uint32_t duration, uint32_t gamestate, string creatorname, string creatorserver, string savetype );
virtual uint32_t GameUpdate( uint32_t id, string map, string gamename, string ownername, string creatorname, uint32_t players, string usernames, uint32_t slotsTotal, uint32_t totalGames, uint32_t totalPlayers, bool add );
virtual uint32_t GamePlayerAdd( uint32_t gameid, string name, string ip, uint32_t spoofed, string spoofedrealm, uint32_t reserved, uint32_t loadingtime, uint32_t left, string leftreason, uint32_t team, uint32_t colour, string savetype );
virtual uint32_t GamePlayerCount( string name );
virtual CDBGamePlayerSummary *GamePlayerSummaryCheck( string name, string realm );
virtual CDBVampPlayerSummary *VampPlayerSummaryCheck( string name );
virtual uint32_t DotAGameAdd( uint32_t gameid, uint32_t winner, uint32_t min, uint32_t sec, string saveType );
virtual uint32_t DotAPlayerAdd( uint32_t gameid, uint32_t colour, uint32_t kills, uint32_t deaths, uint32_t creepkills, uint32_t creepdenies, uint32_t assists, uint32_t gold, uint32_t neutralkills, string item1, string item2, string item3, string item4, string item5, string item6, string hero, uint32_t newcolour, uint32_t towerkills, uint32_t raxkills, uint32_t courierkills, string saveType );
virtual uint32_t DotAPlayerCount( string name );
virtual CDBDotAPlayerSummary *DotAPlayerSummaryCheck( string name, string realm, string saveType );
virtual CDBTreePlayerSummary *TreePlayerSummaryCheck( string name, string realm );
virtual CDBShipsPlayerSummary *ShipsPlayerSummaryCheck( string name, string realm );
virtual CDBSnipePlayerSummary *SnipePlayerSummaryCheck( string name, string realm );
virtual CDBW3MMDPlayerSummary *W3MMDPlayerSummaryCheck( string name, string realm, string category );
virtual string FromCheck( uint32_t ip );
virtual bool FromAdd( uint32_t ip1, uint32_t ip2, string country );
virtual bool DownloadAdd( string map, uint32_t mapsize, string name, string ip, uint32_t spoofed, string spoofedrealm, uint32_t downloadtime );
virtual uint32_t W3MMDPlayerAdd( string category, uint32_t gameid, uint32_t pid, string name, string flag, uint32_t leaver, uint32_t practicing, string saveType );
virtual bool W3MMDVarAdd( uint32_t gameid, map<VarP,int32_t> var_ints, string saveType );
virtual bool W3MMDVarAdd( uint32_t gameid, map<VarP,double> var_reals, string saveType );
virtual bool W3MMDVarAdd( uint32_t gameid, map<VarP,string> var_strings, string saveType );
// threaded database functions
virtual void CreateThread( CBaseCallable *callable );
virtual CCallableAdminCount *ThreadedAdminCount( string server );
virtual CCallableAdminCheck *ThreadedAdminCheck( string server, string user );
virtual CCallableAdminAdd *ThreadedAdminAdd( string server, string user );
virtual CCallableAdminRemove *ThreadedAdminRemove( string server, string user );
virtual CCallableAdminList *ThreadedAdminList( string server );
virtual CCallableBanCount *ThreadedBanCount( string server );
virtual CCallableBanCheck *ThreadedBanCheck( string server, string user, string ip, string hostname, string ownername );
virtual CCallableBanAdd *ThreadedBanAdd( string server, string user, string ip, string gamename, string admin, string reason, uint32_t expiretime, string context );
virtual CCallableBanRemove *ThreadedBanRemove( string server, string user, string context );
virtual CCallableBanRemove *ThreadedBanRemove( string user, string context );
virtual CCallableSpoofList *ThreadedSpoofList( );
virtual CCallableReconUpdate *ThreadedReconUpdate( uint32_t hostcounter, uint32_t seconds );
virtual CCallableCommandList *ThreadedCommandList( );
virtual CCallableGameAdd *ThreadedGameAdd( string server, string map, string gamename, string ownername, uint32_t duration, uint32_t gamestate, string creatorname, string creatorserver, string savetype );
virtual CCallableGameUpdate *ThreadedGameUpdate( uint32_t id, string map, string gamename, string ownername, string creatorname, uint32_t players, string usernames, uint32_t slotsTotal, uint32_t totalGames, uint32_t totalPlayers, bool add );
virtual CCallableGamePlayerAdd *ThreadedGamePlayerAdd( uint32_t gameid, string name, string ip, uint32_t spoofed, string spoofedrealm, uint32_t reserved, uint32_t loadingtime, uint32_t left, string leftreason, uint32_t team, uint32_t colour, string savetype );
virtual CCallableGamePlayerSummaryCheck *ThreadedGamePlayerSummaryCheck( string name, string realm );
virtual CCallableVampPlayerSummaryCheck *ThreadedVampPlayerSummaryCheck( string name );
virtual CCallableDotAGameAdd *ThreadedDotAGameAdd( uint32_t gameid, uint32_t winner, uint32_t min, uint32_t sec, string saveType );
virtual CCallableDotAPlayerAdd *ThreadedDotAPlayerAdd( uint32_t gameid, uint32_t colour, uint32_t kills, uint32_t deaths, uint32_t creepkills, uint32_t creepdenies, uint32_t assists, uint32_t gold, uint32_t neutralkills, string item1, string item2, string item3, string item4, string item5, string item6, string hero, uint32_t newcolour, uint32_t towerkills, uint32_t raxkills, uint32_t courierkills, string saveType );
virtual CCallableDotAPlayerSummaryCheck *ThreadedDotAPlayerSummaryCheck( string name, string realm, string saveType );
virtual CCallableTreePlayerSummaryCheck *ThreadedTreePlayerSummaryCheck( string name, string realm );
virtual CCallableShipsPlayerSummaryCheck *ThreadedShipsPlayerSummaryCheck( string name, string realm );
virtual CCallableSnipePlayerSummaryCheck *ThreadedSnipePlayerSummaryCheck( string name, string realm );
virtual CCallableW3MMDPlayerSummaryCheck *ThreadedW3MMDPlayerSummaryCheck( string name, string realm, string category );
virtual CCallableDownloadAdd *ThreadedDownloadAdd( string map, uint32_t mapsize, string name, string ip, uint32_t spoofed, string spoofedrealm, uint32_t downloadtime );
virtual CCallableScoreCheck *ThreadedScoreCheck( string category, string name, string server );
virtual CCallableLeagueCheck *ThreadedLeagueCheck( string category, string name, string server, string gamename );
virtual CCallableGetTournament *ThreadedGetTournament( string gamename );
virtual CCallableTournamentChat *ThreadedTournamentChat( uint32_t chatid, string message );
virtual CCallableTournamentUpdate *ThreadedTournamentUpdate( uint32_t matchid, string gamename, uint32_t status );
virtual CCallableConnectCheck *ThreadedConnectCheck( string name, uint32_t sessionkey );
virtual CCallableW3MMDPlayerAdd *ThreadedW3MMDPlayerAdd( string category, uint32_t gameid, uint32_t pid, string name, string flag, uint32_t leaver, uint32_t practicing, string saveType );
virtual CCallableW3MMDVarAdd *ThreadedW3MMDVarAdd( uint32_t gameid, map<VarP,int32_t> var_ints, string saveType );
virtual CCallableW3MMDVarAdd *ThreadedW3MMDVarAdd( uint32_t gameid, map<VarP,double> var_reals, string saveType );
virtual CCallableW3MMDVarAdd *ThreadedW3MMDVarAdd( uint32_t gameid, map<VarP,string> var_strings, string saveType );
};
//
// Callables
//
// life cycle of a callable:
// - the callable is created in one of the database's ThreadedXXX functions
// - initially the callable is NOT ready (i.e. m_Ready = false)
// - the ThreadedXXX function normally creates a thread to perform some query and (potentially) store some result in the callable
// - at the time of this writing all threads are immediately detached, the code does not join any threads (the callable's "readiness" is used for this purpose instead)
// - when the thread completes it will set m_Ready = true
// - DO NOT DO *ANYTHING* TO THE CALLABLE UNTIL IT'S READY OR YOU WILL CREATE A CONCURRENCY MESS
// - THE ONLY SAFE FUNCTION IN THE CALLABLE IS GetReady
// - when the callable is ready you may access the callable's result which will have been set within the (now terminated) thread
// example usage:
// - normally you will call a ThreadedXXX function, store the callable in a vector, and periodically check if the callable is ready
// - when the callable is ready you will consume the result then you will pass the callable back to the database via the RecoverCallable function
// - the RecoverCallable function allows the database to recover some of the callable's resources to be reused later (e.g. MySQL connections)
// - note that this will NOT free the callable's memory, you must do that yourself after calling the RecoverCallable function
// - be careful not to leak any callables, it's NOT safe to delete a callable even if you decide that you don't want the result anymore
// - you should deliver any to-be-orphaned callables to the main vector in CGHost so they can be properly deleted when ready even if you don't care about the result anymore
// - e.g. if a player does a stats check immediately before a game is deleted you can't just delete the callable on game deletion unless it's ready
class CBaseCallable
{
protected:
string m_Error;
volatile bool m_Ready;
uint32_t m_StartTicks;
uint32_t m_EndTicks;
public:
CBaseCallable( ) : m_Error( ), m_Ready( false ), m_StartTicks( 0 ), m_EndTicks( 0 ) { }
virtual ~CBaseCallable( ) { }
virtual void operator( )( ) { }
virtual void Init( );
virtual void Close( );
virtual string GetError( ) { return m_Error; }
virtual bool GetReady( ) { return m_Ready; }
virtual void SetReady( bool nReady ) { m_Ready = nReady; }
virtual uint32_t GetElapsed( ) { return m_Ready ? m_EndTicks - m_StartTicks : 0; }
};
class CCallableAdminCount : virtual public CBaseCallable
{
protected:
string m_Server;
uint32_t m_Result;
public:
CCallableAdminCount( string nServer ) : CBaseCallable( ), m_Server( nServer ), m_Result( 0 ) { }
virtual ~CCallableAdminCount( );
virtual string GetServer( ) { return m_Server; }
virtual uint32_t GetResult( ) { return m_Result; }
virtual void SetResult( uint32_t nResult ) { m_Result = nResult; }
};
class CCallableAdminCheck : virtual public CBaseCallable
{
protected:
string m_Server;
string m_User;
bool m_Result;
public:
CCallableAdminCheck( string nServer, string nUser ) : CBaseCallable( ), m_Server( nServer ), m_User( nUser ), m_Result( false ) { }
virtual ~CCallableAdminCheck( );
virtual string GetServer( ) { return m_Server; }
virtual string GetUser( ) { return m_User; }
virtual bool GetResult( ) { return m_Result; }
virtual void SetResult( bool nResult ) { m_Result = nResult; }
};
class CCallableAdminAdd : virtual public CBaseCallable
{
protected:
string m_Server;
string m_User;
bool m_Result;
public:
CCallableAdminAdd( string nServer, string nUser ) : CBaseCallable( ), m_Server( nServer ), m_User( nUser ), m_Result( false ) { }
virtual ~CCallableAdminAdd( );
virtual string GetServer( ) { return m_Server; }
virtual string GetUser( ) { return m_User; }
virtual bool GetResult( ) { return m_Result; }
virtual void SetResult( bool nResult ) { m_Result = nResult; }
};
class CCallableAdminRemove : virtual public CBaseCallable
{
protected:
string m_Server;
string m_User;
bool m_Result;
public:
CCallableAdminRemove( string nServer, string nUser ) : CBaseCallable( ), m_Server( nServer ), m_User( nUser ), m_Result( false ) { }
virtual ~CCallableAdminRemove( );
virtual string GetServer( ) { return m_Server; }
virtual string GetUser( ) { return m_User; }
virtual bool GetResult( ) { return m_Result; }
virtual void SetResult( bool nResult ) { m_Result = nResult; }
};
class CCallableAdminList : virtual public CBaseCallable
{
protected:
string m_Server;
vector<string> m_Result;
public:
CCallableAdminList( string nServer ) : CBaseCallable( ), m_Server( nServer ) { }
virtual ~CCallableAdminList( );
virtual vector<string> GetResult( ) { return m_Result; }
virtual void SetResult( vector<string> nResult ) { m_Result = nResult; }
};
class CCallableBanCount : virtual public CBaseCallable
{
protected:
string m_Server;
uint32_t m_Result;
public:
CCallableBanCount( string nServer ) : CBaseCallable( ), m_Server( nServer ), m_Result( 0 ) { }
virtual ~CCallableBanCount( );
virtual string GetServer( ) { return m_Server; }
virtual uint32_t GetResult( ) { return m_Result; }
virtual void SetResult( uint32_t nResult ) { m_Result = nResult; }
};
class CCallableBanCheck : virtual public CBaseCallable
{
protected:
string m_Server;
string m_User;
string m_IP;
string m_HostName;
string m_OwnerName;
CDBBan *m_Result;
public:
CCallableBanCheck( string nServer, string nUser, string nIP, string nHostName, string nOwnerName ) : CBaseCallable( ), m_Server( nServer ), m_User( nUser ), m_IP( nIP ), m_HostName( nHostName ), m_OwnerName( nOwnerName ), m_Result( NULL ) { }
virtual ~CCallableBanCheck( );
virtual string GetServer( ) { return m_Server; }
virtual string GetUser( ) { return m_User; }
virtual string GetIP( ) { return m_IP; }
virtual string GetHostName( ) { return m_HostName; }
virtual string GetOwnerName( ) { return m_OwnerName; }
virtual CDBBan *GetResult( ) { return m_Result; }
virtual void SetResult( CDBBan *nResult ) { m_Result = nResult; }
};
class CCallableBanAdd : virtual public CBaseCallable
{
protected:
string m_Server;
string m_User;
string m_IP;
string m_GameName;
string m_Admin;
string m_Reason;
uint32_t m_ExpireTime;
string m_Context;
uint32_t m_Result;
public:
CCallableBanAdd( string nServer, string nUser, string nIP, string nGameName, string nAdmin, string nReason, uint32_t nExpireTime, string nContext ) : CBaseCallable( ), m_Server( nServer ), m_User( nUser ), m_IP( nIP ), m_GameName( nGameName ), m_Admin( nAdmin ), m_Reason( nReason ), m_ExpireTime( nExpireTime ), m_Context( nContext ), m_Result( false ) { }
virtual ~CCallableBanAdd( );
virtual string GetServer( ) { return m_Server; }
virtual string GetUser( ) { return m_User; }
virtual string GetIP( ) { return m_IP; }
virtual string GetGameName( ) { return m_GameName; }
virtual string GetAdmin( ) { return m_Admin; }
virtual string GetReason( ) { return m_Reason; }
virtual uint32_t GetExpireTime( ) { return m_ExpireTime; }
virtual string GetContext( ) { return m_Context; }
virtual uint32_t GetResult( ) { return m_Result; }
virtual void SetResult( uint32_t nResult ) { m_Result = nResult; }
};
class CCallableBanRemove : virtual public CBaseCallable
{
protected:
string m_Server;
string m_User;
string m_Context;
bool m_Result;
public:
CCallableBanRemove( string nServer, string nUser, string nContext ) : CBaseCallable( ), m_Server( nServer ), m_User( nUser ), m_Context( nContext ), m_Result( false ) { }
virtual ~CCallableBanRemove( );
virtual string GetServer( ) { return m_Server; }
virtual string GetUser( ) { return m_User; }
virtual string GetContext( ) { return m_Context; }
virtual bool GetResult( ) { return m_Result; }
virtual void SetResult( bool nResult ) { m_Result = nResult; }
};
class CCallableSpoofList : virtual public CBaseCallable
{
protected:
map<string, string> m_Result;
public:
CCallableSpoofList( ) : CBaseCallable( ) { }
virtual ~CCallableSpoofList( );
virtual map<string, string> GetResult( ) { return m_Result; }
virtual void SetResult( map<string, string> nResult ) { m_Result = nResult; }
};
class CCallableCommandList : virtual public CBaseCallable
{
protected:
vector<string> m_Result;
public:
CCallableCommandList( ) : CBaseCallable( ) { }
virtual ~CCallableCommandList( );
virtual vector<string> GetResult( ) { return m_Result; }
virtual void SetResult( vector<string> nResult ) { m_Result = nResult; }
};
class CCallableReconUpdate : virtual public CBaseCallable
{
protected:
uint32_t m_HostCounter;
uint32_t m_Seconds;
public:
CCallableReconUpdate( uint32_t nHostCounter, uint32_t nSeconds ) : CBaseCallable( ), m_HostCounter( nHostCounter ), m_Seconds( nSeconds ) { }
virtual ~CCallableReconUpdate( );
};
class CCallableGameAdd : virtual public CBaseCallable
{
protected:
string m_Server;
string m_Map;
string m_GameName;
string m_OwnerName;
uint32_t m_Duration;
uint32_t m_GameState;
string m_CreatorName;
string m_CreatorServer;
string m_SaveType;
uint32_t m_Result;
public:
CCallableGameAdd( string nServer, string nMap, string nGameName, string nOwnerName, uint32_t nDuration, uint32_t nGameState, string nCreatorName, string nCreatorServer, string nSaveType ) : CBaseCallable( ), m_Server( nServer ), m_Map( nMap ), m_GameName( nGameName ), m_OwnerName( nOwnerName ), m_Duration( nDuration ), m_GameState( nGameState ), m_CreatorName( nCreatorName ), m_CreatorServer( nCreatorServer ), m_SaveType( nSaveType ), m_Result( 0 ) { }
virtual ~CCallableGameAdd( );
virtual uint32_t GetResult( ) { return m_Result; }
virtual void SetResult( uint32_t nResult ) { m_Result = nResult; }
};
class CCallableGameUpdate : virtual public CBaseCallable
{
protected:
uint32_t m_ID;
string m_Map;
string m_GameName;
string m_OwnerName;
string m_CreatorName;
bool m_Add;
uint32_t m_Players;
string m_Usernames;
uint32_t m_SlotsTotal;
uint32_t m_TotalGames;
uint32_t m_TotalPlayers;
uint32_t m_Result;
public:
CCallableGameUpdate( uint32_t id, string map, string gamename, string ownername, string creatorname, uint32_t players, string usernames, uint32_t slotsTotal, uint32_t totalGames, uint32_t totalPlayers, bool add ) : CBaseCallable( ), m_ID( id ), m_Map(map), m_GameName(gamename), m_OwnerName(ownername), m_CreatorName(creatorname), m_Add(add), m_Players(players), m_Usernames(usernames), m_SlotsTotal(slotsTotal), m_TotalGames(totalGames), m_TotalPlayers(totalPlayers) { }
virtual ~CCallableGameUpdate( );
virtual uint32_t GetResult( ) { return m_Result; }
virtual void SetResult( uint32_t nResult ) { m_Result = nResult; }
};
class CCallableGamePlayerAdd : virtual public CBaseCallable
{
protected:
uint32_t m_GameID;
string m_Name;
string m_IP;
uint32_t m_Spoofed;
string m_SpoofedRealm;
uint32_t m_Reserved;
uint32_t m_LoadingTime;
uint32_t m_Left;
string m_LeftReason;
uint32_t m_Team;
uint32_t m_Colour;
string m_SaveType;
uint32_t m_Result;
public:
CCallableGamePlayerAdd( uint32_t nGameID, string nName, string nIP, uint32_t nSpoofed, string nSpoofedRealm, uint32_t nReserved, uint32_t nLoadingTime, uint32_t nLeft, string nLeftReason, uint32_t nTeam, uint32_t nColour, string nSaveType ) : CBaseCallable( ), m_GameID( nGameID ), m_Name( nName ), m_IP( nIP ), m_Spoofed( nSpoofed ), m_SpoofedRealm( nSpoofedRealm ), m_Reserved( nReserved ), m_LoadingTime( nLoadingTime ), m_Left( nLeft ), m_LeftReason( nLeftReason ), m_Team( nTeam ), m_Colour( nColour ), m_SaveType( nSaveType ), m_Result( 0 ) { }
virtual ~CCallableGamePlayerAdd( );
virtual uint32_t GetResult( ) { return m_Result; }
virtual void SetResult( uint32_t nResult ) { m_Result = nResult; }
};
class CCallableGamePlayerSummaryCheck : virtual public CBaseCallable
{
protected:
string m_Name;
string m_Realm;
CDBGamePlayerSummary *m_Result;
public:
CCallableGamePlayerSummaryCheck( string nName, string nRealm ) : CBaseCallable( ), m_Name( nName ), m_Realm( nRealm ), m_Result( NULL ) { }
virtual ~CCallableGamePlayerSummaryCheck( );
virtual string GetName( ) { return m_Name; }
virtual string GetRealm( ) { return m_Realm; }
virtual CDBGamePlayerSummary *GetResult( ) { return m_Result; }
virtual void SetResult( CDBGamePlayerSummary *nResult ) { m_Result = nResult; }
};
class CCallableVampPlayerSummaryCheck : virtual public CBaseCallable
{
protected:
string m_Name;
CDBVampPlayerSummary *m_Result;
public:
CCallableVampPlayerSummaryCheck( string nName ) : CBaseCallable( ), m_Name( nName ), m_Result( NULL ) { }
virtual ~CCallableVampPlayerSummaryCheck( );
virtual string GetName( ) { return m_Name; }
virtual CDBVampPlayerSummary *GetResult( ) { return m_Result; }
virtual void SetResult( CDBVampPlayerSummary *nResult ) { m_Result = nResult; }
};
class CCallableDotAGameAdd : virtual public CBaseCallable
{
protected:
uint32_t m_GameID;
uint32_t m_Winner;
uint32_t m_Min;
uint32_t m_Sec;
uint32_t m_Result;
string m_SaveType;
public:
CCallableDotAGameAdd( uint32_t nGameID, uint32_t nWinner, uint32_t nMin, uint32_t nSec, string nSaveType ) : CBaseCallable( ), m_GameID( nGameID ), m_Winner( nWinner ), m_Min( nMin ), m_Sec( nSec ), m_SaveType( nSaveType ), m_Result( 0 ) { }
virtual ~CCallableDotAGameAdd( );
virtual string GetSaveType( ) { return m_SaveType; }
virtual uint32_t GetResult( ) { return m_Result; }
virtual void SetResult( uint32_t nResult ) { m_Result = nResult; }
};
class CCallableDotAPlayerAdd : virtual public CBaseCallable
{
protected:
uint32_t m_GameID;
uint32_t m_Colour;
uint32_t m_Kills;
uint32_t m_Deaths;
uint32_t m_CreepKills;
uint32_t m_CreepDenies;
uint32_t m_Assists;
uint32_t m_Gold;
uint32_t m_NeutralKills;
string m_Item1;
string m_Item2;
string m_Item3;
string m_Item4;
string m_Item5;
string m_Item6;
string m_Hero;
uint32_t m_NewColour;
uint32_t m_TowerKills;
uint32_t m_RaxKills;
uint32_t m_CourierKills;
uint32_t m_Result;
string m_SaveType;
public:
CCallableDotAPlayerAdd( uint32_t nGameID, uint32_t nColour, uint32_t nKills, uint32_t nDeaths, uint32_t nCreepKills, uint32_t nCreepDenies, uint32_t nAssists, uint32_t nGold, uint32_t nNeutralKills, string nItem1, string nItem2, string nItem3, string nItem4, string nItem5, string nItem6, string nHero, uint32_t nNewColour, uint32_t nTowerKills, uint32_t nRaxKills, uint32_t nCourierKills, string nSaveType ) : CBaseCallable( ), m_GameID( nGameID ), m_Colour( nColour ), m_Kills( nKills ), m_Deaths( nDeaths ), m_CreepKills( nCreepKills ), m_CreepDenies( nCreepDenies ), m_Assists( nAssists ), m_Gold( nGold ), m_NeutralKills( nNeutralKills ), m_Item1( nItem1 ), m_Item2( nItem2 ), m_Item3( nItem3 ), m_Item4( nItem4 ), m_Item5( nItem5 ), m_Item6( nItem6 ), m_Hero( nHero ), m_NewColour( nNewColour ), m_TowerKills( nTowerKills ), m_RaxKills( nRaxKills ), m_CourierKills( nCourierKills ), m_SaveType( nSaveType ), m_Result( 0 ) { }
virtual ~CCallableDotAPlayerAdd( );
virtual string GetSaveType( ) { return m_SaveType; }
virtual uint32_t GetResult( ) { return m_Result; }
virtual void SetResult( uint32_t nResult ) { m_Result = nResult; }
};
class CCallableDotAPlayerSummaryCheck : virtual public CBaseCallable
{
protected:
string m_Name;
string m_Realm;
CDBDotAPlayerSummary *m_Result;
string m_SaveType;
public:
CCallableDotAPlayerSummaryCheck( string nName, string nRealm, string nSaveType ) : CBaseCallable( ), m_Name( nName ), m_Realm( nRealm ), m_SaveType( nSaveType ), m_Result( NULL ) { }
virtual ~CCallableDotAPlayerSummaryCheck( );
virtual string GetName( ) { return m_Name; }
virtual string GetRealm( ) { return m_Realm; }
virtual string GetSaveType( ) { return m_SaveType; }
virtual CDBDotAPlayerSummary *GetResult( ) { return m_Result; }
virtual void SetResult( CDBDotAPlayerSummary *nResult ) { m_Result = nResult; }
};
class CCallableTreePlayerSummaryCheck : virtual public CBaseCallable
{
protected:
string m_Name;
string m_Realm;
CDBTreePlayerSummary *m_Result;
public:
CCallableTreePlayerSummaryCheck( string nName, string nRealm ) : CBaseCallable( ), m_Name( nName ), m_Realm( nRealm ), m_Result( NULL ) { }
virtual ~CCallableTreePlayerSummaryCheck( );
virtual string GetName( ) { return m_Name; }
virtual string GetRealm( ) { return m_Realm; }
virtual CDBTreePlayerSummary *GetResult( ) { return m_Result; }
virtual void SetResult( CDBTreePlayerSummary *nResult ) { m_Result = nResult; }
};
class CCallableShipsPlayerSummaryCheck : virtual public CBaseCallable
{
protected:
string m_Name;
string m_Realm;
CDBShipsPlayerSummary *m_Result;
public:
CCallableShipsPlayerSummaryCheck( string nName, string nRealm ) : CBaseCallable( ), m_Name( nName ), m_Realm( nRealm ), m_Result( NULL ) { }
virtual ~CCallableShipsPlayerSummaryCheck( );
virtual string GetName( ) { return m_Name; }
virtual string GetRealm( ) { return m_Realm; }
virtual CDBShipsPlayerSummary *GetResult( ) { return m_Result; }
virtual void SetResult( CDBShipsPlayerSummary *nResult ) { m_Result = nResult; }
};
class CCallableSnipePlayerSummaryCheck : virtual public CBaseCallable
{
protected:
string m_Name;
string m_Realm;
CDBSnipePlayerSummary *m_Result;
public:
CCallableSnipePlayerSummaryCheck( string nName, string nRealm ) : CBaseCallable( ), m_Name( nName ), m_Realm( nRealm ), m_Result( NULL ) { }
virtual ~CCallableSnipePlayerSummaryCheck( );
virtual string GetName( ) { return m_Name; }
virtual string GetRealm( ) { return m_Realm; }
virtual CDBSnipePlayerSummary *GetResult( ) { return m_Result; }
virtual void SetResult( CDBSnipePlayerSummary *nResult ) { m_Result = nResult; }
};
class CCallableW3MMDPlayerSummaryCheck : virtual public CBaseCallable
{
protected:
string m_Name;
string m_Realm;
string m_Category;
CDBW3MMDPlayerSummary *m_Result;
public:
CCallableW3MMDPlayerSummaryCheck( string nName, string nRealm, string nCategory ) : CBaseCallable( ), m_Name( nName ), m_Realm( nRealm ), m_Category( nCategory ), m_Result( NULL ) { }
virtual ~CCallableW3MMDPlayerSummaryCheck( );
virtual string GetName( ) { return m_Name; }
virtual string GetRealm( ) { return m_Realm; }
virtual string GetCategory( ) { return m_Category; }
virtual CDBW3MMDPlayerSummary *GetResult( ) { return m_Result; }
virtual void SetResult( CDBW3MMDPlayerSummary *nResult ) { m_Result = nResult; }
};
class CCallableDownloadAdd : virtual public CBaseCallable
{
protected:
string m_Map;
uint32_t m_MapSize;
string m_Name;
string m_IP;
uint32_t m_Spoofed;
string m_SpoofedRealm;
uint32_t m_DownloadTime;
bool m_Result;
public:
CCallableDownloadAdd( string nMap, uint32_t nMapSize, string nName, string nIP, uint32_t nSpoofed, string nSpoofedRealm, uint32_t nDownloadTime ) : CBaseCallable( ), m_Map( nMap ), m_MapSize( nMapSize ), m_Name( nName ), m_IP( nIP ), m_Spoofed( nSpoofed ), m_SpoofedRealm( nSpoofedRealm ), m_DownloadTime( nDownloadTime ), m_Result( false ) { }
virtual ~CCallableDownloadAdd( );
virtual bool GetResult( ) { return m_Result; }
virtual void SetResult( bool nResult ) { m_Result = nResult; }
};
class CCallableScoreCheck : virtual public CBaseCallable
{
protected:
string m_Category;
string m_Name;
string m_Server;
double *m_Result;
public:
CCallableScoreCheck( string nCategory, string nName, string nServer ) : CBaseCallable( ), m_Category( nCategory ), m_Name( nName ), m_Server( nServer ), m_Result( NULL ) { }
virtual ~CCallableScoreCheck( );
virtual string GetName( ) { return m_Name; }
virtual double *GetResult( ) { return m_Result; }
virtual void SetResult( double *nResult ) { m_Result = nResult; }
};
class CCallableLeagueCheck : virtual public CBaseCallable
{
protected:
string m_Category;
string m_Name;
string m_Server;
string m_GameName;
uint32_t m_Result;
public:
CCallableLeagueCheck( string nCategory, string nName, string nServer, string nGameName ) : CBaseCallable( ), m_Category( nCategory ), m_Name( nName ), m_Server( nServer ), m_GameName( nGameName ), m_Result( 255 ) { }
virtual ~CCallableLeagueCheck( );
virtual string GetName( ) { return m_Name; }
virtual uint32_t GetResult( ) { return m_Result; }
virtual void SetResult( uint32_t nResult ) { m_Result = nResult; }
};
class CCallableGetTournament : virtual public CBaseCallable
{
protected:
string m_GameName;
vector<string> m_Result;
public:
CCallableGetTournament( string nGameName ) : CBaseCallable( ), m_GameName( nGameName ) { }
virtual ~CCallableGetTournament( );
virtual vector<string> GetResult( ) { return m_Result; }
virtual void SetResult( vector<string> nResult ) { m_Result = nResult; }
};
class CCallableTournamentChat : virtual public CBaseCallable
{
protected:
uint32_t m_ChatID;
string m_Message;
public:
CCallableTournamentChat( uint32_t nChatID, string nMessage ) : CBaseCallable( ), m_ChatID( nChatID ), m_Message( nMessage ) { }
virtual ~CCallableTournamentChat( );
};
class CCallableTournamentUpdate : virtual public CBaseCallable
{
protected:
uint32_t m_MatchID;
string m_GameName;
uint32_t m_Status;
public:
CCallableTournamentUpdate( uint32_t nMatchID, string nGameName, uint32_t nStatus ) : CBaseCallable( ), m_MatchID( nMatchID ), m_GameName( nGameName), m_Status( nStatus ) { }
virtual ~CCallableTournamentUpdate( );
};
class CCallableConnectCheck : virtual public CBaseCallable
{
protected:
string m_Name;
uint32_t m_SessionKey;
bool m_Result;
public:
CCallableConnectCheck( string nName, uint32_t nSessionKey ) : CBaseCallable( ), m_Name( nName ), m_SessionKey( nSessionKey ), m_Result( false ) { }
virtual ~CCallableConnectCheck( );
virtual string GetName( ) { return m_Name; }
virtual bool GetResult( ) { return m_Result; }
virtual void SetResult( bool nResult ) { m_Result = nResult; }
};
class CCallableW3MMDPlayerAdd : virtual public CBaseCallable
{
protected:
string m_Category;
uint32_t m_GameID;
uint32_t m_PID;
string m_Name;
string m_Flag;
uint32_t m_Leaver;
uint32_t m_Practicing;
string m_SaveType;
uint32_t m_Result;
public:
CCallableW3MMDPlayerAdd( string nCategory, uint32_t nGameID, uint32_t nPID, string nName, string nFlag, uint32_t nLeaver, uint32_t nPracticing, string nSaveType ) : CBaseCallable( ), m_Category( nCategory ), m_GameID( nGameID ), m_PID( nPID ), m_Name( nName ), m_Flag( nFlag ), m_Leaver( nLeaver ), m_Practicing( nPracticing ), m_SaveType( nSaveType ), m_Result( 0 ) { }
virtual ~CCallableW3MMDPlayerAdd( );
virtual uint32_t GetResult( ) { return m_Result; }
virtual void SetResult( uint32_t nResult ) { m_Result = nResult; }
};
class CCallableW3MMDVarAdd : virtual public CBaseCallable
{
protected:
uint32_t m_GameID;
map<VarP,int32_t> m_VarInts;
map<VarP,double> m_VarReals;
map<VarP,string> m_VarStrings;
string m_SaveType;
enum ValueType {
VALUETYPE_INT = 1,
VALUETYPE_REAL = 2,
VALUETYPE_STRING = 3
};
ValueType m_ValueType;
bool m_Result;
public:
CCallableW3MMDVarAdd( uint32_t nGameID, map<VarP,int32_t> nVarInts, string nSaveType ) : CBaseCallable( ), m_GameID( nGameID ), m_VarInts( nVarInts ), m_ValueType( VALUETYPE_INT ), m_SaveType( nSaveType ), m_Result( false ) { }
CCallableW3MMDVarAdd( uint32_t nGameID, map<VarP,double> nVarReals, string nSaveType ) : CBaseCallable( ), m_GameID( nGameID ), m_VarReals( nVarReals ), m_ValueType( VALUETYPE_REAL ), m_SaveType( nSaveType ), m_Result( false ) { }
CCallableW3MMDVarAdd( uint32_t nGameID, map<VarP,string> nVarStrings, string nSaveType ) : CBaseCallable( ), m_GameID( nGameID ), m_VarStrings( nVarStrings ), m_ValueType( VALUETYPE_STRING ), m_SaveType( nSaveType ), m_Result( false ) { }
virtual ~CCallableW3MMDVarAdd( );
virtual bool GetResult( ) { return m_Result; }
virtual void SetResult( bool nResult ) { m_Result = nResult; }
};
//
// CDBBan
//
class CDBBan
{
private:
uint32_t m_Id;
string m_Server;
string m_Name;
string m_IP;
string m_Date;
string m_GameName;
string m_Admin;
string m_Reason;
string m_ExpireDate;
string m_Context;
bool m_Delete; //whether this represents a ban that should be deleted from the ban list (ban list fast only)
uint32_t m_CacheTime; //0 unless ban list fast
public:
CDBBan( uint32_t nId ); //sets delete = true
CDBBan( uint32_t nId, string nServer, string nName, string nIP, string nDate, string nGameName, string nAdmin, string nReason, string nExpireDate, string nContext, uint32_t nCacheTime ); //sets delete = false
CDBBan( CDBBan *copy );
~CDBBan( );
uint32_t GetId( ) { return m_Id; }
string GetServer( ) { return m_Server; }
string GetName( ) { return m_Name; }
string GetIP( ) { return m_IP; }
string GetDate( ) { return m_Date; }
string GetGameName( ) { return m_GameName; }
string GetAdmin( ) { return m_Admin; }
string GetReason( ) { return m_Reason; }
string GetExpireDate( ) { return m_ExpireDate; }
string GetContext( ) { return m_Context; }
bool GetDelete( ) { return m_Delete; }
uint32_t GetCacheTime( ){ return m_CacheTime; }
};
//
// CDBGame
//
class CDBGame
{
private:
uint32_t m_ID;
string m_Server;
string m_Map;
string m_DateTime;
string m_GameName;
string m_OwnerName;
uint32_t m_Duration;
public:
CDBGame( uint32_t nID, string nServer, string nMap, string nDateTime, string nGameName, string nOwnerName, uint32_t nDuration );
~CDBGame( );
uint32_t GetID( ) { return m_ID; }
string GetServer( ) { return m_Server; }
string GetMap( ) { return m_Map; }
string GetDateTime( ) { return m_DateTime; }
string GetGameName( ) { return m_GameName; }
string GetOwnerName( ) { return m_OwnerName; }
uint32_t GetDuration( ) { return m_Duration; }
void SetDuration( uint32_t nDuration ) { m_Duration = nDuration; }
};
//
// CDBGamePlayer
//
class CDBGamePlayer
{
private:
uint32_t m_ID;
uint32_t m_GameID;
string m_Name;
string m_IP;
uint32_t m_Spoofed;
string m_SpoofedRealm;
uint32_t m_Reserved;
uint32_t m_LoadingTime;
uint32_t m_Left;
string m_LeftReason;
uint32_t m_Team;
uint32_t m_Colour;
public:
CDBGamePlayer( uint32_t nID, uint32_t nGameID, string nName, string nIP, uint32_t nSpoofed, string nSpoofedRealm, uint32_t nReserved, uint32_t nLoadingTime, uint32_t nLeft, string nLeftReason, uint32_t nTeam, uint32_t nColour );
~CDBGamePlayer( );
uint32_t GetID( ) { return m_ID; }
uint32_t GetGameID( ) { return m_GameID; }
string GetName( ) { return m_Name; }
string GetIP( ) { return m_IP; }
uint32_t GetSpoofed( ) { return m_Spoofed; }
string GetSpoofedRealm( ) { return m_SpoofedRealm; }
uint32_t GetReserved( ) { return m_Reserved; }
uint32_t GetLoadingTime( ) { return m_LoadingTime; }
uint32_t GetLeft( ) { return m_Left; }
string GetLeftReason( ) { return m_LeftReason; }
uint32_t GetTeam( ) { return m_Team; }
uint32_t GetColour( ) { return m_Colour; }
void SetLoadingTime( uint32_t nLoadingTime ) { m_LoadingTime = nLoadingTime; }
void SetLeft( uint32_t nLeft ) { m_Left = nLeft; }
void SetLeftReason( string nLeftReason ) { m_LeftReason = nLeftReason; }
};
//
// CDBGamePlayerSummary
//
class CDBGamePlayerSummary
{
private:
string m_Server;
string m_Name;
uint32_t m_TotalGames; // total number of games played
double m_LeftPercent;
uint32_t m_PlayingTime;
public:
CDBGamePlayerSummary( string nServer, string nName, uint32_t nTotalGames, double nLeftPercent, uint32_t nPlayingTime );
~CDBGamePlayerSummary( );
string GetServer( ) { return m_Server; }
string GetName( ) { return m_Name; }
uint32_t GetTotalGames( ) { return m_TotalGames; }
double GetLeftPercent( ) { return m_LeftPercent; }
uint32_t GetPlayingTime( ) { return m_PlayingTime; }
};
//
// CDBVampPlayerSummary
//
class CDBVampPlayerSummary
{
private:
string m_Server;
string m_Name;
uint32_t m_TotalGames;
uint32_t m_TotalHumanGames;
uint32_t m_TotalVampGames;
uint32_t m_TotalHumanWins;
uint32_t m_TotalVampWins;
uint32_t m_TotalHumanLosses;
uint32_t m_TotalVampLosses;
uint32_t m_TotalVampKills;
double m_MinCommandCenter;
double m_AvgCommandCenter;
double m_MinBase;
double m_AvgBase;
public:
CDBVampPlayerSummary( string nServer, string nName, uint32_t nTotalGames, uint32_t nTotalHumanGames, uint32_t nTotalVampGames, uint32_t nTotalHumanWins, uint32_t nTotalVampWins, uint32_t nTotalHumanLosses, uint32_t nTotalVampLosses, uint32_t nTotalVampKills, double nMinCommandCenter, double nAvgCommandCenter, double nMinBase, double nAvgBase );
~CDBVampPlayerSummary( );
string GetServer( ) { return m_Server; }
string GetName( ) { return m_Name; }
uint32_t GetTotalGames( ) { return m_TotalGames; }
uint32_t GetTotalHumanGames( ) { return m_TotalHumanGames; }
uint32_t GetTotalVampGames( ) { return m_TotalVampGames; }
uint32_t GetTotalHumanWins( ) { return m_TotalHumanWins; }
uint32_t GetTotalVampWins( ) { return m_TotalVampWins; }
uint32_t GetTotalHumanLosses( ) { return m_TotalHumanLosses; }
uint32_t GetTotalVampLosses( ) { return m_TotalVampLosses; }
uint32_t GetTotalVampKills( ) { return m_TotalVampKills; }
double GetMinCommandCenter( ) { return m_MinCommandCenter; }