summaryrefslogtreecommitdiff
path: root/game/client/tf/vgui/tf_match_join_handlers.h
diff options
context:
space:
mode:
Diffstat (limited to 'game/client/tf/vgui/tf_match_join_handlers.h')
-rw-r--r--game/client/tf/vgui/tf_match_join_handlers.h58
1 files changed, 58 insertions, 0 deletions
diff --git a/game/client/tf/vgui/tf_match_join_handlers.h b/game/client/tf/vgui/tf_match_join_handlers.h
new file mode 100644
index 0000000..efe0153
--- /dev/null
+++ b/game/client/tf/vgui/tf_match_join_handlers.h
@@ -0,0 +1,58 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef TF_MATCH_JOIN_HANDLERS_H
+#define TF_MATCH_JOIN_HANDLERS_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include <vgui_controls/EditablePanel.h>
+#include "tf_controls.h"
+
+class IMatchJoiningHandler
+{
+public:
+ IMatchJoiningHandler();
+ virtual ~IMatchJoiningHandler();
+
+ virtual void MatchFound() = 0;
+
+protected:
+
+ void JoinMatch();
+};
+
+class CTFImmediateAutoJoinHandler : public IMatchJoiningHandler
+{
+public:
+ CTFImmediateAutoJoinHandler();
+ virtual void MatchFound() OVERRIDE;
+
+private:
+
+ float m_flNextAutoJoinTime;
+};
+
+class CTFRejoinConfirmDialog;
+class CTFMatchMakingPopupPrompJoinHandler : public IMatchJoiningHandler
+{
+public:
+ CTFMatchMakingPopupPrompJoinHandler();
+
+ virtual void MatchFound() OVERRIDE;
+
+ static void OnJoinLobbyInProgressCallback( bool bConfirmed, void *pContext );
+private:
+
+ void UpdatePromptState();
+
+ static CTFRejoinConfirmDialog* m_pRejoinPrompt;
+ float m_flNextRejoinThinkTime;
+};
+
+#endif // TF_MATCH_JOIN_HANDLERS_H