Emergency 20 Dokumentation  4.2.0
MainEvent-inl.h
Go to the documentation of this file.
1 // Copyright (C) 2012-2018 Promotion Software GmbH
2 
3 
4 //[-------------------------------------------------------]
5 //[ Namespace ]
6 //[-------------------------------------------------------]
7 namespace em5
8 {
9 
10 
11  //[-------------------------------------------------------]
12  //[ Protected virtual em5::MainEvent methods ]
13  //[-------------------------------------------------------]
14  inline void MainEvent::onIntroStart(const qsf::MessageParameters& parameters)
15  {
16  // Base implementation is empty
17  }
18 
19  inline void MainEvent::onIntroFinished(const qsf::MessageParameters& parameters)
20  {
21  // Base implementation is empty
22  }
23 
25  {
26  // Base implementation is empty
27  }
28 
29 
30  //[-------------------------------------------------------]
31  //[ Protected methods ]
32  //[-------------------------------------------------------]
33  inline const std::string& MainEvent::getEventLayerName() const
34  {
35  return mEventLayerName;
36  }
37 
38  inline const std::string& MainEvent::getEraseLayerName() const
39  {
40  return mEraseLayerName;
41  }
42 
43  inline const std::string& MainEvent::getCutsceneLayerName() const
44  {
45  return mIntroCutsceneLayerName;
46  }
47 
49  {
50  QSF_CHECK(nullptr != mScene, "Could not get main event scene entity", QSF_REACT_THROW);
51  return *mScene;
52  }
53 
54 
55 //[-------------------------------------------------------]
56 //[ Namespace ]
57 //[-------------------------------------------------------]
58 } // em5
Definition: ActionPriority.h:13
virtual void onIntroStart(const qsf::MessageParameters &parameters)
React to the activation of the black screen, which is the start of the intro cutscene.
Definition: MainEvent-inl.h:14
virtual void onPrologueFinished(const qsf::MessageParameters &parameters)
React to the end of the prologue.
Definition: MainEvent-inl.h:24
Entity class.
Definition: Entity.h:46
Message parameters class.
Definition: MessageParameters.h:34
#define QSF_REACT_THROW
Definition: ErrorHandling.h:203
qsf::Entity & getScene() const
Get the scene tag entity.
Definition: MainEvent-inl.h:48
virtual void onIntroFinished(const qsf::MessageParameters &parameters)
React to the end of the intro; note that the prologue cutscene is played next.
Definition: MainEvent-inl.h:19
const std::string & getEraseLayerName() const
Get the erase layer name.
Definition: MainEvent-inl.h:38
#define QSF_CHECK(condition, explanation, reaction)
Definition: ErrorHandling.h:126
const std::string & getCutsceneLayerName() const
Get the cut scene layer name.
Definition: MainEvent-inl.h:43
const std::string & getEventLayerName() const
Get the event layer name.
Definition: MainEvent-inl.h:33