R-Type
Platformer.hpp
Go to the documentation of this file.
1 /*
2 ** EPITECH PROJECT, 2023
3 ** B-CPP-500-PAR-5-1-rtype-timothe.zheng
4 ** File description:
5 ** Platformer
6 */
7 
8 #ifndef PLATFORMER_HPP_
9 #define PLATFORMER_HPP_
10 #include "GameEngine.hpp"
11 
13 
15 {
16  public:
17  Platformer();
18  ~Platformer() = default;
20  void setGameEngineCallback();
21  void setGameEngineSystem();
22  void setGameEngineScene();
23  void setGameEngine();
24  void handleScreenChange();
25  void handlePlayerMove();
26  void handlePlayerjump();
27  void setGameEngineFont();
28  void setGameEnginePrefab();
29  void gameLoop();
30 
31  private:
32  GameState _state;
33  GameEngine::GameEngine _gameEngine;
34  bool isOpen;
35  bool isJumping;
36  std::size_t _id;
37  std::size_t _score;
38  std::size_t _hp;
39 };
40 
41 #endif /* !PLATFORMER_HPP_ */
GameState
Definition: Platformer.hpp:12
Game engine class, will manage all the necessary classes for the game.
Definition: GameEngine.hpp:40
Definition: Platformer.hpp:15
void setGameEnginePrefab()
Definition: SetGameEngine.cpp:109
void setGameEngineComponent()
Definition: SetGameEngine.cpp:32
void handlePlayerjump()
Definition: Platformer.cpp:23
~Platformer()=default
void handlePlayerMove()
Definition: Platformer.cpp:40
Platformer()
Definition: Platformer.cpp:10
void setGameEngineFont()
Definition: SetGameEngine.cpp:107
void gameLoop()
Definition: Platformer.cpp:42
void setGameEngineScene()
Definition: SetGameEngine.cpp:98
void handleScreenChange()
Definition: ChangeScene.cpp:10
void setGameEngineSystem()
Definition: SetGameEngine.cpp:49
void setGameEngineCallback()
Definition: SetGameEngine.cpp:47
void setGameEngine()
Definition: SetGameEngine.cpp:128