X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmap%2FTransitionState.h;fp=src%2Fmap%2FTransitionState.h;h=ee832a81a482391a1fffb3c693bb0a17c17adc2c;hb=e02068d51f5e7f82d4d3195e9a9ce5c9d76f727d;hp=0000000000000000000000000000000000000000;hpb=11f21c99f562231785660da3afc4d0590ad83e90;p=l2e.git diff --git a/src/map/TransitionState.h b/src/map/TransitionState.h new file mode 100644 index 0000000..ee832a8 --- /dev/null +++ b/src/map/TransitionState.h @@ -0,0 +1,46 @@ +/* + * TransitionState.h + * + * Created on: Oct 7, 2012 + * Author: holy + */ + +#ifndef MAP_TRANSITIONSTATE_H_ +#define MAP_TRANSITIONSTATE_H_ + +#include "fwd.h" +#include "../app/State.h" +#include "../geometry/Vector.h" + +namespace map { + +class TransitionState +: public app::State { + +public: + TransitionState(MapState *, Map *, const geometry::Vector &); + virtual ~TransitionState() { } + +public: + virtual void EnterState(app::Application &ctrl, SDL_Surface *screen); + virtual void ExitState(app::Application &ctrl, SDL_Surface *screen); + virtual void ResumeState(app::Application &ctrl, SDL_Surface *screen); + virtual void PauseState(app::Application &ctrl, SDL_Surface *screen); + + virtual void Resize(int width, int height); + + virtual void HandleEvents(const app::Input &); + virtual void UpdateWorld(float deltaT); + virtual void Render(SDL_Surface *); + +private: + app::Application *ctrl; + MapState *ms; + Map *map; + const geometry::Vector &coordinates; + +}; + +} + +#endif /* MAP_TRANSITIONSTATE_H_ */