Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
gameplayrunning.h
1 #pragma once
2 
3 #include <memory>
4 
5 #include "gamestate/gamestate.h"
6 
7 #include "utils/statemachine/keytrigger.h"
8 
9 
10 class GamePlay;
12 
13 class GamePlayRunning: public GameState {
14 public:
15  GamePlayRunning(GamePlay* gamePlay);
16 
17  GamePlayRunningInput& input();
18 
19  Trigger& pauseTrigger();
20 
21  virtual void update(float deltaSec) override;
22 
23  virtual void onEntered() override;
24  virtual void onLeft() override;
25 
26 
27 protected:
28  GamePlay* m_gamePlay;
29  KeyTrigger m_pauseTrigger;
30 
31  std::unique_ptr<GamePlayRunningInput> m_input;
32 };
33 
Definition: gamestate.h:20
virtual void update(float deltaSec) override
Definition: gameplayrunning.cpp:30
virtual void onLeft() override
Definition: gameplayrunning.cpp:46
Definition: keytrigger.h:13
Definition: gameplayrunning.h:13
Definition: gameplayrunninginput.h:21
Definition: gameplay.h:20
Definition: trigger.h:11
virtual void onEntered() override
Definition: gameplayrunning.cpp:41