www.pudn.com > Racing.rar > Common.h
#ifndef _COMMON_H_
#define _COMMON_H_
#include "windows.h"
enum COLOR {RED, GREEN, BLUE};
typedef struct _horse
{
HWND hWnd; // 窗口句柄
int speed; // 马速度
int x; // 马位置的x坐标
int y; // 马位置的y坐标
int size; // 马的大小, 用一个球来表示, size是半径
COLOR color; // 颜色
CRect rect; // 表示跑道的矩形;
}HORSE, *LPHORSE;
#endif //_COMMON_H_