Skip to content
Snippets Groups Projects
Select Git revision
  • d81c90cea7e1162001ab9d32d8ef24000fefe263
  • 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
  • user avatar
    David Hermann authored
    Moving files into new sub directories to improve the project structure. \n\n- Changing  paths for that.\n- Adding the PhysicsEngine.cpp and PhysicsEngine.hpp without content.
    d81c90ce
    History
    Scene.hpp 524 B
    #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