-/*
- * ColorFade.h
- *
- * Created on: Oct 7, 2012
- * Author: holy
- */
-
#ifndef GRAPHICS_COLORFADE_H_
#define GRAPHICS_COLORFADE_H_
: public app::State {
public:
- ColorFade(app::State *slave, Uint32 color, int duration, bool in = false, bool interactive = false);
+ ColorFade(
+ app::State *slave,
+ Uint32 color,
+ int duration,
+ bool in = false,
+ bool interactive = false);
virtual ~ColorFade() { }
public:
- void SetLeadInTime(int ms) { leadIn = ms; if (ms > 0) leadInDone = false; }
+ void SetLeadInTime(int ms) {
+ leadIn = ms;
+ if (ms > 0) leadInDone = false;
+ }
void SetLeadOutTime(int ms) { leadOut = ms; }
+ void SetDoublePop(bool b = true) { doublePop = b; }
public:
virtual void HandleEvents(const app::Input &);
- virtual void UpdateWorld(float deltaT);
+ virtual void UpdateWorld(Uint32 deltaT);
virtual void Render(SDL_Surface *);
private:
bool fadeDone;
bool in;
bool interactive;
+ bool doublePop;
};
}
-#endif /* GRAPHICS_COLORFADE_H_ */
+#endif