Emergency 20 Dokumentation  4.2.0
FreeplayEventTriggerInfo.h
Go to the documentation of this file.
1 // Copyright (C) 2012-2018 Promotion Software GmbH
2 
3 
4 //[-------------------------------------------------------]
5 //[ Header guard ]
6 //[-------------------------------------------------------]
7 #pragma once
8 
9 
10 //[-------------------------------------------------------]
11 //[ Includes ]
12 //[-------------------------------------------------------]
13 #include "em5/Export.h"
14 
15 #include <vector>
16 
17 
18 //[-------------------------------------------------------]
19 //[ Namespace ]
20 //[-------------------------------------------------------]
21 namespace em5
22 {
23 
24 
25  //[-------------------------------------------------------]
26  //[ Classes ]
27  //[-------------------------------------------------------]
29  {
30  public:
31  typedef std::string LogLine;
32 
33  // TODO(fw): Only mTriggeredByDebug is currently supported and used, the rest has to be added
34 
36  std::string mEnforcedLocation;
37  std::vector<LogLine> mTriggerFailLog;
38 
39  public:
40  inline explicit FreeplayEventTriggerInfo(bool debug = false) : mTriggeredByDebug(debug) {}
41  };
42 
43 
44 //[-------------------------------------------------------]
45 //[ Namespace ]
46 //[-------------------------------------------------------]
47 } // em5
Definition: ActionPriority.h:13
Definition: FreeplayEventTriggerInfo.h:28
#define EM5_API_EXPORT
Definition: Export.h:28
std::string mEnforcedLocation
When triggered by debug menu, this can be an additional string naming a certain event location where ...
Definition: FreeplayEventTriggerInfo.h:36
FreeplayEventTriggerInfo(bool debug=false)
Definition: FreeplayEventTriggerInfo.h:40
std::string LogLine
Definition: FreeplayEventTriggerInfo.h:31
std::vector< LogLine > mTriggerFailLog
Write information why triggering failed inside here.
Definition: FreeplayEventTriggerInfo.h:37
bool mTriggeredByDebug
"true" if triggered from debug menu; can be used to exclude several checks like weather, time of day, etc.
Definition: FreeplayEventTriggerInfo.h:35