All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
FireworksLocationConfiguration.h
1 // Copyright eeGeo Ltd (2012-2014), All Rights Reserved
2 
3 #pragma once
4 
5 #include "Fireworks.h"
6 #include "VectorMath.h"
7 #include "Camera.h"
8 #include "LatLongAltitude.h"
9 #include "Types.h"
10 
11 namespace Eegeo
12 {
13  namespace Fireworks
14  {
22  {
24  : location(0, 0)
25  , chanceOfAppearing(0.0f)
26  , startTimeHour(0)
27  , endTimeHour(0)
28  , loopDisplay(true)
29  {}
30 
32  /* \param location A LatLong object specifying the latitude and longitude of the fireworks display.
33  * \param chance A float defining the chance of a fireworks display appearing when you visit said location. Valid range is 0 < X <= 1.0
34  * \param startTimeHour Specifies the start time in terms of hours on a 24-hour clock the fireworks will play. Valid range is 0 <= X <= 23
35  * \param endTimeHour Specifies the end time in terms of hours on a 24-hour clock the fireworks will end. Valid range is 0 <= X <= 23. If it matches startTimeHour, will play indefinitely.
36  */
38  : location(location)
39  , chanceOfAppearing(chance)
40  , startTimeHour(startTimeHour)
41  , endTimeHour(endTimeHour)
42  , loopDisplay(true)
43  {}
44 
46  bool IsAllDayFireworks() const { return startTimeHour == endTimeHour; }
47 
50 
53 
56 
59 
62  };
63  }
64 }