Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
672 B

  1. // CObject.h: interface for the CObject class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #ifndef __COBJECT_H
  5. #define __COBJECT_H
  6. #include <windows.h>
  7. #include <math.h>
  8. #include <objbase.h>
  9. #include <gdiplus.h>
  10. using namespace Gdiplus;
  11. #include "VMath.h"
  12. #include "resource.h"
  13. #include "scrnsave.h"
  14. extern Bitmap *LoadTGAResource(char *szResource);
  15. class CObject
  16. {
  17. public:
  18. CObject();
  19. virtual ~CObject();
  20. virtual void Destroy()=0;
  21. virtual BOOL Init(HWND hWnd)=0;
  22. virtual BOOL Move(Graphics *g)=0;
  23. PointF m_vPos;
  24. PointF m_vVel;
  25. PointF m_vAcc;
  26. float m_flVelMax;
  27. RECT m_rDesktop;
  28. };
  29. #endif