X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fengine.hh;h=98141cb384e079a4180a98d173f6dd4753e6d58b;hb=7d15b919681bb9ec0088b4b27c6abf62d6dfb9b1;hp=bc3bdaf11aef6d08fc1275659dc440f273a10862;hpb=79b5f738f2e38acb60cda7e09f54802933a17105;p=chaz%2Fyoink diff --git a/src/engine.hh b/src/engine.hh index bc3bdaf..98141cb 100644 --- a/src/engine.hh +++ b/src/engine.hh @@ -30,16 +30,15 @@ #define _ENGINE_HH_ #include -#include #include "singleton.hh" +#include "event.hh" #include "dispatcher.hh" namespace dc { -class engine_impl; class video; class engine : public singleton @@ -63,9 +62,10 @@ public: // Override these if you want. virtual void update(scalar t, scalar dt); virtual void draw(scalar alpha); - virtual void dispatchEvent(const SDL_Event& event); + virtual void handleEvent(const event& e); private: + class engine_impl; boost::shared_ptr impl; }; @@ -74,3 +74,5 @@ private: #endif // _ENGINE_HH_ +/** vim: set ts=4 sw=4 tw=80: *************************************************/ +