-/*
- * ColorFade.cpp
- *
- * Created on: Oct 7, 2012
- * Author: holy
- */
-
#include "ColorFade.h"
#include "../app/Application.h"
}
-void ColorFade::OnEnterState(Application &c, SDL_Surface *screen) {
+void ColorFade::OnEnterState(SDL_Surface *screen) {
if (leadIn > 0) {
timer = GraphicsTimers().StartCountdown(leadIn);
} else {
}
}
-void ColorFade::OnExitState(Application &, SDL_Surface *screen) {
+void ColorFade::OnExitState(SDL_Surface *screen) {
if (blinds) {
SDL_FreeSurface(blinds);
blinds = 0;
}
}
-void ColorFade::OnResumeState(Application &ctrl, SDL_Surface *screen) {
+void ColorFade::OnResumeState(SDL_Surface *screen) {
UpdateBlinds(screen->w, screen->h);
}
-void ColorFade::OnPauseState(Application &ctrl, SDL_Surface *screen) {
+void ColorFade::OnPauseState(SDL_Surface *screen) {
}
}
-void ColorFade::UpdateWorld(float deltaT) {
+void ColorFade::UpdateWorld(Uint32 deltaT) {
if (interactive) {
slave->UpdateWorld(deltaT);
}