Fission FSN
Loading...
Searching...
No Matches
fsCGuiMessageDispatcher.h
Go to the documentation of this file.
1/********************************************************************
2*
3* Created: 18/3/2014 16:13
4*
5* File: fsCGuiMessageDispatcher.h
6*
7* Author: Mick Waites
8*
9* Purpose: Event message dispatch system for the GUI system.
10*
11*********************************************************************/
12
13#ifndef fsCGuiMessageDispatcherhdr
14#define fsCGuiMessageDispatcherhdr
15
17
19
20class fsINode;
21
22
23class fsCGuiMessageDispatcher : public fsIMessageDispatcher, public fsTSingleton<fsCGuiMessageDispatcher>
24{
26
27public:
28
36
37protected:
38
39 fsBool messageDispatchDo(const fsCUniqueId& pMessageType, const sMessageParameters& pParam) override;
40
43
44private:
45
46 fsBool entityHasGuiComponentGet(const fsINode* pNode) const;
47
48 static void closeGuiMessageHandle(const sMessageParameters& pParam);
49 void loadGuiMessageHandle(const sMessageParameters& pParam) const;
50 void loadLevelMessageHandle(const sMessageParameters& pParam) const;
51 void loadChapterMessageHandle(const sMessageParameters& pParam) const;
52};
53
54#endif
static const fsCUniqueId mEventLoadGuiTutorialMsg
Definition fsCGuiMessageDispatcher.h:31
static const fsCUniqueId mEventLoadChapterMsg
Definition fsCGuiMessageDispatcher.h:35
static const fsCUniqueId mEventLoadGuiMsg
Definition fsCGuiMessageDispatcher.h:32
static const fsCUniqueId mEventCloseGuiMsg
Definition fsCGuiMessageDispatcher.h:30
fsCGuiMessageDispatcher()
Definition fsCGuiMessageDispatcher.cpp:142
static const fsCUniqueId mEventLoadLevelMsg
Definition fsCGuiMessageDispatcher.h:34
virtual ~fsCGuiMessageDispatcher()
Definition fsCGuiMessageDispatcher.cpp:146
fsBool messageDispatchDo(const fsCUniqueId &pMessageType, const sMessageParameters &pParam) override
Definition fsCGuiMessageDispatcher.cpp:22
static const fsCUniqueId mTutorialButtonPressedMsg
Definition fsCGuiMessageDispatcher.h:29
static const fsCUniqueId mEventLaunchBrowserMsg
Definition fsCGuiMessageDispatcher.h:33
Definition fsCUniqueId.h:21
fsIMessageDispatcher()
Definition fsIMessageDispatcher.cpp:162
Definition fsINode.h:30
bool fsBool
Definition fsBaseTypes.h:26
Definition fsIMessageDispatcher.h:32