Game class final
#include <Game.hpp>
Public static functions
Constructors, destructors, conversion operators
Public functions
- auto operator=(Game const&) -> Game& deleted
- void init(const int width, const int height, const std::string& title)
- void handleEvents()
- void update()
- void render() const
- void handleFPS() const
- void clean()
- void quit()
- void debugMode(bool is_debug)
- auto isRunning() const -> bool
- auto getWindow() const -> Window*
- auto getCursor() -> Cursor*
- auto getLevel() const -> Level*
- auto getLevelIndex() const -> int
- auto getLevelPath(const int level_index) -> std::string
- auto getDiamond() const -> int
- auto getScore() const -> int
- auto getTopScore() const -> int
- void nextLevel()
- void setLevel(Level*const level)
- void setLevelIndex(int const level_index)
- void addDiamond(int n)
- void useDiamond(int n)
- void resetScore()
- void addScore(int score)
- auto isDebug() const -> bool