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

Scene.hpp

Blame
  • Scene.hpp 597 B
    /**
     * Scene.hpp
     *
     * @author David Maul
     * @author Frederik Keens
     */
    
    #pragma once
    
    #include "Engine.hpp"
    
    #include <SDL.h>
    
    namespace advanced_wars
    {
    
    // Forward declaration
    class Engine;
    
    class Scene
    {
        public:
            virtual void render(Engine& engine) = 0;
    
            /**
             * Every Scene has an event handler that can get called in the pump function of engine.
             *
             * It should implement handling of every event that is relevant to this scene only.
             */
            virtual void handleEvent(Engine& engine, SDL_Event& event) = 0;
    };
    
    } // namespace advanced_wars