summaryrefslogtreecommitdiff
path: root/utils/tfstats/tfstatsreport.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/tfstatsreport.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'utils/tfstats/tfstatsreport.h')
-rw-r--r--utils/tfstats/tfstatsreport.h93
1 files changed, 93 insertions, 0 deletions
diff --git a/utils/tfstats/tfstatsreport.h b/utils/tfstats/tfstatsreport.h
new file mode 100644
index 0000000..b2d8c77
--- /dev/null
+++ b/utils/tfstats/tfstatsreport.h
@@ -0,0 +1,93 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose: Interface of CTFStatsReport
+//
+// $Workfile: $
+// $Date: $
+//
+//------------------------------------------------------------------------------------------------------
+// $Log: $
+//
+// $NoKeywords: $
+//=============================================================================//
+#ifndef TFSTATSREPORT_H
+#define TFSTATSREPORT_H
+#ifdef WIN32
+#pragma once
+#endif
+#ifndef __TFSTATSREPORT_H
+#define __TFSTATSREPORT_H
+#pragma warning(disable:4786)
+#include <time.h>
+#include "BinaryResource.h"
+#include "MatchInfo.h"
+#include "HTML.h"
+#include "util.h"
+
+//------------------------------------------------------------------------------------------------------
+// Purpose: This class is reponsible for generating the top and nav frames of the
+// report. also for generating all the resources such as jpgs, gifs, javascripts and
+// style sheets
+//------------------------------------------------------------------------------------------------------
+class CTFStatsReport
+{
+private:
+ time_t matchstart;
+ time_t matchend;
+ int matchhours;
+ int matchminutes;
+ int matchseconds;
+
+ bool valid;
+ void init();
+
+/*
+ const char* makeDurationString();
+ char DurationString[300];
+*/
+
+
+ void generate();
+
+ static char* javaScriptSource;
+ static char* styleSheetSource;
+ //CMatchInfo* pMatchInfo;
+
+
+ static CBinaryResource gifAwards;
+ static CBinaryResource jpgBgLeft;
+ static CBinaryResource jpgBgTop;
+ static CBinaryResource gifBoxScore;
+ static CBinaryResource gifGameDialogOff;
+ static CBinaryResource gifGameDialogOn;
+ static CBinaryResource gifMatchStatsOff;
+ static CBinaryResource gifMatchStatsOn;
+ static CBinaryResource gifScores;
+ static CBinaryResource gifServerSettingsOff;
+ static CBinaryResource gifServerSettingsOn;
+ static CBinaryResource gifDetailedScores;
+ static CBinaryResource gifPlayerStatsMatchOff;
+ static CBinaryResource gifPlayerStatsMatchOn;
+ static CBinaryResource gifPlayerStatsServerOff;
+ static CBinaryResource gifPlayerStatsServerOn;
+
+
+
+public:
+
+ explicit CTFStatsReport();
+
+ void genImages();
+ void genJavaScript();
+ void genStyleSheet();
+ void genAllPlayersStyleSheet();
+ void genIndex();
+ void genTopFrame();
+ void genNavFrame();
+
+ virtual ~CTFStatsReport();
+
+};
+
+#endif
+#endif // TFSTATSREPORT_H