Pioneer
DeathView.h
Go to the documentation of this file.
1 // Copyright © 2008-2023 Pioneer Developers. See AUTHORS.txt for details
2 // Licensed under the terms of the GPL v3. See licenses/GPL-3.txt
3 
4 #ifndef DEATH_VIEW_H
5 #define DEATH_VIEW_H
6 
7 #include "RefCounted.h"
8 #include "View.h"
9 
10 class Camera;
11 class CameraContext;
12 class Game;
13 
14 class DeathView : public View {
15 public:
16  DeathView(Game *game);
17  virtual ~DeathView();
18 
19  void Init();
20 
21  virtual void Update();
22  virtual void Draw3D();
23 
24 protected:
25  virtual void OnSwitchTo();
26 
27 private:
28  RefCountedPtr<CameraContext> m_cameraContext;
29  std::unique_ptr<Camera> m_camera;
30  float m_cameraDist;
31  Game *m_game;
32 };
33 
34 #endif
Definition: Camera.h:22
Definition: Camera.h:80
Definition: DeathView.h:14
virtual void Update()
Definition: DeathView.cpp:41
virtual void Draw3D()
Definition: DeathView.cpp:51
virtual void OnSwitchTo()
Definition: DeathView.cpp:37
virtual ~DeathView()
Definition: DeathView.cpp:27
void Init()
Definition: DeathView.cpp:29
DeathView(Game *game)
Definition: DeathView.cpp:14
Definition: Game.h:38
Definition: View.h:21