summaryrefslogtreecommitdiff
path: root/utils/tfstats/playerreport.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /utils/tfstats/playerreport.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'utils/tfstats/playerreport.h')
-rw-r--r--utils/tfstats/playerreport.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/utils/tfstats/playerreport.h b/utils/tfstats/playerreport.h
new file mode 100644
index 0000000..e2f991f
--- /dev/null
+++ b/utils/tfstats/playerreport.h
@@ -0,0 +1,45 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose: Interface of CPlayerReport
+//
+// $Workfile: $
+// $Date: $
+//
+//------------------------------------------------------------------------------------------------------
+// $Log: $
+//
+// $NoKeywords: $
+//=============================================================================//
+#ifndef PLAYERREPORT_H
+#define PLAYERREPORT_H
+#ifdef WIN32
+#pragma once
+#endif
+#include "Player.h"
+#include "Report.h"
+#include "PlrPersist.h"
+
+//------------------------------------------------------------------------------------------------------
+// Purpose: Reports a specific player's stats.
+//------------------------------------------------------------------------------------------------------
+class CPlayerReport: public CReport
+{
+private:
+ CPlayer* pPlayer;
+ CPlrPersist* pPersist;
+ int iWhichTeam;
+
+ static map<unsigned long,bool> alreadyPersisted;
+ static map<unsigned long,bool> alreadyWroteCombStats;
+ bool reportingPersistedPlayer;
+
+ void writePersistHTML(CHTMLFile& html);
+public:
+ CPlayerReport(CPlayer* pP,int t):pPlayer(pP),iWhichTeam(t){reportingPersistedPlayer=false;}
+ CPlayerReport(CPlrPersist* pPP):pPersist(pPP) {iWhichTeam=-1;reportingPersistedPlayer=true;}
+
+ virtual void writeHTML(CHTMLFile& html);
+};
+
+
+#endif // PLAYERREPORT_H