]> Dogcows Code - chaz/yoink/blobdiff - src/Moof/Engine.hh
more featureful sound class
[chaz/yoink] / src / Moof / Engine.hh
index aa751356f6a81b6ec1712cf1ee7bdf322384d749..0617b1a5c3094025331233fe4c8ced0a5742010e 100644 (file)
@@ -33,8 +33,8 @@
 
 #include <boost/shared_ptr.hpp>
 
-#include <Moof/Dispatcher.hh>
 #include <Moof/Event.hh>
+#include <Moof/Exception.hh>
 #include <Moof/Math.hh>
 
 
@@ -71,10 +71,15 @@ public:
        virtual void draw(Scalar alpha);
        virtual void handleEvent(const Event& event);
 
-       struct Exception : std::runtime_error
+       struct Exception : public Mf::Exception
        {
-               explicit Exception(const std::string& what_arg) :
-                       std::runtime_error(what_arg) {}
+               explicit Exception(unsigned error) :
+                       Mf::Exception(error) {}
+
+               void raise()
+               {
+                       throw *this;
+               }
        };
 
 private:
This page took 0.016999 seconds and 4 git commands to generate.