include/Player.h

00001 
00026 #ifndef _PLAYER_
00027 #define _PLAYER_
00028 
00029 #include <Vector2D.h>
00030 #include <disableWarnings.h>
00031 
00032 namespace sonus
00033 {
00034 
00048         class Player
00049         {
00050 
00051                 public:
00052 
00056                         Player();
00057 
00058                         Vector2D*       position;
00059                         float           radius;
00060                         Vector2D*       linearVelocity;
00061                         double          angularVelocity;
00062                         bool            collision;
00063                         Vector2D        collisionDirection;
00064 
00071                         void setOrientation( double x, double y );
00072 
00078                         void setOrientation( double angle );
00079 
00085                         void getOrientationVector( Vector2D* vector );
00086 
00092                         double getOrientationAngle();
00093 
00094                 private:
00095 
00096                         double          orientationAngle;
00097                         Vector2D        orientationVector;
00098 
00099         };
00100 
00101 }
00102 
00103 #endif

Generated on Tue Aug 26 12:26:54 2008 for sonus by  doxygen 1.5.4