Emergency 20 Dokumentation  4.2.0
SeasonalEventStartConditions.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 //[ Namespace ]
12 //[-------------------------------------------------------]
13 namespace em5
14 {
15 
16 
17  //[-------------------------------------------------------]
18  //[ Classes ]
19  //[-------------------------------------------------------]
28  {
29 
30 
31  //[-------------------------------------------------------]
32  //[ Public methods ]
33  //[-------------------------------------------------------]
34  public:
35  struct EventDetail
36  {
37  std::string eventName;
38  glm::ivec2 startDate; // "day, month" pair what indicates the begin real date for the event
39  glm::ivec2 endDate; // "day, month" pair what indicates the end real date for the event
40  };
41 
42 
43  //[-------------------------------------------------------]
44  //[ Public methods ]
45  //[-------------------------------------------------------]
46  public:
52 
58 
59  std::vector<EventDetail>& getEventDetails();
60 
61  std::vector<std::string> getAllNowPossibleSeasonEvents();
62 
63 
64  //[-------------------------------------------------------]
65  //[ Private data ]
66  //[-------------------------------------------------------]
67  private:
68  std::vector<EventDetail> mEventDetails;
69 
70 
71  };
72 
73 
74 //[-------------------------------------------------------]
75 //[ Namespace ]
76 //[-------------------------------------------------------]
77 } // em5
Definition: ActionPriority.h:13
std::vector< EventDetail > & getEventDetails()
SeasonalEventStartConditions()
Default constructor.
EMERGENCY 5 Seasonal event start conditions class.
Definition: SeasonalEventStartConditions.h:27
~SeasonalEventStartConditions()
Destructor.
std::vector< std::string > getAllNowPossibleSeasonEvents()
glm::ivec2 endDate
Definition: SeasonalEventStartConditions.h:39
glm::ivec2 startDate
Definition: SeasonalEventStartConditions.h:38
Definition: SeasonalEventStartConditions.h:35
std::string eventName
Definition: SeasonalEventStartConditions.h:37