Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
gamestate.h
1 #pragma once
2 
3 #include <memory>
4 #include <string>
5 
6 #include "utils/statemachine/state.h"
7 
8 class CameraHead;
9 class Scene;
10 
20 class GameState: public State {
21 public:
22  GameState(const std::string& name, GameState* parent);
23 
24  GameState* parentGameState();
25 
26  virtual const Scene& scene() const;
27  virtual const CameraHead& cameraHead() const;
28 
29  virtual void update(float deltaSec) override;
30 
31  virtual void onEntered() override;
32  virtual void onLeft() override;
33 
34 
35 protected:
36  GameState* m_parentGameState;
37 };
38 
Definition: camerahead.h:12
Definition: state.h:14
Definition: gamestate.h:20
virtual void update(float deltaSec) override
Definition: gamestate.cpp:25
virtual void onEntered() override
Definition: gamestate.cpp:29
Definition: scene.h:14
virtual void onLeft() override
Definition: gamestate.cpp:33