Raylib Bubbles
C++11 Raylib bubble shooter game.
game.hpp
1 #ifndef GAME_HPP_
2 #define GAME_HPP_
3 
4 #include "window.hpp"
5 #include "hud.hpp"
6 #include "board.hpp"
7 #include "pboard.hpp"
8 #include "action.hpp"
9 
24 class Game {
25 public:
26 
27  Game();
28 
31 
36  void loop();
37 
39 
40 private:
41  const float MARGIN_SIDES;
42  const float MARGIN_TOP;
43  const float SHOOTING_SPEED;
44  const float ROTATION_SPEED;
45 
46  GameWindow window;
47  GameBoard board;
48  PlacedBoard boardData;
49  GameActionMgr actions;
50  GameHUD hud;
51 
52  size_t score;
53  float time;
54 
55  float getFitToWidthR(const float margin) const;
56 };
57 
58 #endif
Manages game actions and allows them to interact with the game board if necessary.
Definition: action.hpp:22
Represents the game board and provides public methods to interact with it.
Definition: board.hpp:47
Provides an object to manage the game HUD state.
Definition: hud.hpp:29
Handles the game window and provides rendering functionality.
Definition: window.hpp:27
Main game singleton class, combining all game components with the main game loop.
Definition: game.hpp:24
void loop()
Run the main game loop.
Definition: game.cpp:26
Describes a game board placed in a window.
Definition: pboard.hpp:16