src/Animator.h

Go to the documentation of this file.
00001 #ifndef ANIMATOR_H
00002 #define ANIMATOR_H
00003 
00004 
00005 #include <cassert>
00006 
00007 
00008 class Object;
00009 
00010 
00015 class Animator
00016 {
00017 public:
00023     Animator(Object * obj, unsigned int frame)
00024         : mObject(obj),
00025             mFrame(frame)
00026     {
00027         assert(obj);
00028     }
00029 
00032     virtual ~Animator()
00033     {
00034     }
00035 
00041     virtual bool animate(unsigned int frame) = 0;
00042 
00043 protected:
00045     Object *        mObject;
00046 
00048     unsigned int    mFrame;
00049 };
00050 
00051 #endif
00052 

Generated on Fri Feb 1 00:01:42 2008 for Grayfall by  doxygen 1.5.1