Skip to content
Snippets Groups Projects
Select Git revision
  • 5eaa5d3655a1d7fe5d876a4a845df1892250e014
  • 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

level.hpp

Blame
  • level.hpp 628 B
    #pragma once
    
    #include "building.hpp"
    #include "scene.hpp"
    #include "tile.hpp"
    #include "unit.hpp"
    #include <SDL.h>
    #include <string>
    #include <vector>
    
    namespace advanced_wars {
    
    /**
     * @brief The main window of the game
     */
    class Level : public Scene {
    public:
      Level(std::string name, int width, int height, std::vector<Tile> tiles,
            std::vector<Building> buildings, std::vector<Unit> units);
    
      void render(SDL_Renderer *renderer, std::vector<SDL_Event> &events);
    
    private:
      std::string name;
      int width;
      int height;
      std::vector<Building> buildings;
      std::vector<Unit> units;
    };
    
    } // namespace advanced_wars