Skip to content
Snippets Groups Projects
Select Git revision
  • 95aefe24d87cb0c410c5c6cc0fb0014f53cf1b47
  • main default protected
  • leveleditor
  • david-author
  • clang-tidy-cleanup
  • architecture-refactoring
  • cleanUpMenus
  • doxygen-cleanup
  • project-structure-refactoring
  • interpolation
  • buildingFeatures
  • win_end_screen
  • helpMenu
  • leveleditor-placement
  • text-rendering
  • updated_unit_contextmenu
  • level-from-commandline
  • unit_contextmenu
  • player
  • engine-scaling
  • clang-tidy
21 results

LevelScene.hpp

Blame
  • LevelScene.hpp 560 B
    #ifndef LEVELSCENE_HPP
    #define LEVELSCENE_HPP
    
    #include <QGraphicsScene>
    #include <QMouseEvent>
    #include <QWidget>
    #include <QGraphicsSceneMouseEvent>
    #include <tuple>
    
    class LevelScene : public QGraphicsScene {
    public:
        LevelScene(int width, int height, uint8_t* tiles, QWidget *parent = nullptr);
        ~LevelScene();
        static LevelScene* empty(int width, int height, QWidget *parent = nullptr);
    
    protected:
        void mousePressEvent(QGraphicsSceneMouseEvent *event) override;
        int width;
        int height;
        uint8_t* tiles;
    };
    
    #endif // LEVELSCENE_HPP