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
36 lines
672 B
// CObject.h: interface for the CObject class.
|
|
//
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef __COBJECT_H
|
|
#define __COBJECT_H
|
|
|
|
#include <windows.h>
|
|
#include <math.h>
|
|
#include <objbase.h>
|
|
#include <gdiplus.h>
|
|
using namespace Gdiplus;
|
|
#include "VMath.h"
|
|
#include "resource.h"
|
|
#include "scrnsave.h"
|
|
|
|
extern Bitmap *LoadTGAResource(char *szResource);
|
|
|
|
class CObject
|
|
{
|
|
public:
|
|
CObject();
|
|
virtual ~CObject();
|
|
|
|
virtual void Destroy()=0;
|
|
virtual BOOL Init(HWND hWnd)=0;
|
|
virtual BOOL Move(Graphics *g)=0;
|
|
|
|
PointF m_vPos;
|
|
PointF m_vVel;
|
|
PointF m_vAcc;
|
|
float m_flVelMax;
|
|
RECT m_rDesktop;
|
|
};
|
|
|
|
#endif
|