All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
DownloadBootstrapResourcesState.h
1 // Copyright eeGeo Ltd (2012-2014), All Rights Reserved
2 
3 #pragma once
4 
5 #include "BaseState.h"
6 #include "Modules.h"
7 #include "IChangeStateCallback.h"
8 #include "ApiTokenValidator.h"
9 
10 namespace Eegeo
11 {
12  class EegeoWorld;
13 
14  namespace WorldStates
15  {
17  {
18  bool m_coverageTreesComplete;
19  const bool m_startMapModeAutomatically;
20  bool m_appValidated;
21 
22  Modules::Map::MapModule& m_mapModule;
23 
24  IChangeStateCallback* m_pChangeStateCallback;
25 
26  std::string m_stateName;
27 
29  void ValidatorCallback(const bool& valid);
30 
31  Web::ApiTokenValidator& m_apiTokenValidator;
32 
33  public:
34  DownloadBootstrapResourcesState(std::string stateName, Modules::Map::MapModule& mapModule, bool startMapModeAutomatically, Web::ApiTokenValidator& apiTokenValidator);
36 
37  void Enter();
38 
39  void Update(float dt,
40  const Camera::RenderCamera& renderCamera,
41  const dv3& ecefInterestPoint,
42  Streaming::IStreamingVolume& streamingVolume);
43 
44  void Exit();
45 
46  void SetChangeStateCallback(IChangeStateCallback* changeStateCallback);
47  };
48  }
49 }