]> git.localhorst.tv Git - l2e.git/blobdiff - src/graphics/ColorFade.h
removed stupid file headers that eclipse put in
[l2e.git] / src / graphics / ColorFade.h
index 947675e23ca1b238485f509e41feb20391316df1..b3e98bd15f7973bff89c89ff0efe822be5f65dc3 100644 (file)
@@ -1,10 +1,3 @@
-/*
- * ColorFade.h
- *
- *  Created on: Oct 7, 2012
- *      Author: holy
- */
-
 #ifndef GRAPHICS_COLORFADE_H_
 #define GRAPHICS_COLORFADE_H_
 
@@ -27,24 +20,24 @@ public:
        void SetLeadOutTime(int ms) { leadOut = ms; }
 
 public:
-       virtual void OnEnterState(app::Application &ctrl, SDL_Surface *screen);
-       virtual void OnExitState(app::Application &ctrl, SDL_Surface *screen);
-       virtual void OnResumeState(app::Application &ctrl, SDL_Surface *screen);
-       virtual void OnPauseState(app::Application &ctrl, SDL_Surface *screen);
-
-       virtual void OnResize(int width, int height);
-
        virtual void HandleEvents(const app::Input &);
        virtual void UpdateWorld(float deltaT);
        virtual void Render(SDL_Surface *);
 
+private:
+       virtual void OnEnterState(SDL_Surface *screen);
+       virtual void OnExitState(SDL_Surface *screen);
+       virtual void OnResumeState(SDL_Surface *screen);
+       virtual void OnPauseState(SDL_Surface *screen);
+
+       virtual void OnResize(int width, int height);
+
 private:
        void UpdateBlinds(int width, int height);
        Uint8 GetAlpha() const;
 
 private:
        app::Timer<Uint32> timer;
-       app::Application *ctrl;
        app::State *slave;
        SDL_Surface *blinds;
        Uint32 color;