16,473
社区成员
发帖
与我相关
我的任务
分享
//////////////////////////////////////////////////////////////////////////
//TurnAround.h
//////////////////////////////////////////////////////////////////////////
#include "stdafx.h"
//////////////////////////////////////////////////////////////////////////
//宏定义
#define FISH_NUM 50
//////////////////////////////////////////////////////////////////////////
//类CMyPoint
class CMyPoint
{
public:
CMyPoint();
CMyPoint(float x, float y);
float x;
float y;
};
//////////////////////////////////////////////////////////////////////////
//类Fish_part1
class Fish_part1
{
public:
Fish_part1();
static HTEXTURE hTex[5];
hgeSprite *hSpr ;
hgeSprite *hSpr1, *hSpr2; //备用精灵
hgeAnimation *hAnimation; //动画
float time0 ; //间隔
float time1 ; //间隔
float time_disppear;
static int pic_num ; //所有图片数目
bool alive ; //显示标志
int moveType;
int power ;
float rot ; //方向
float rotBegin;
float speed ;
float x_pos, y_pos;
CMyPoint point[10];
CMyPoint begin_point[5];
int point_b;
int point_i;
CMyPoint point_target;
static int n_Count ; //对象统计
void Init(HGE *pHge); //初始化
void Init1(HGE *pHge, int num);
void Move(HGE *pHge);
void disappear(HGE *pHge);
void GetDistanceAndAngle(CMyPoint pt, float *distance, float *angle);
static void LoadTex(HGE *pHge, char *path); //加载
void Render(); //显示压分
static void CleanUp(HGE *pHge);
protected:
private:
};
//////////////////////////////////////////////////////////////////////////
//类CFishGroup
class CFishGroup
{
public:
CFishGroup();
Fish_part1 fish;
float time;
int nFishs;
void InitFishGroup(HGE *pHge, int nfish);
void Render();
protected:
private:
};
//////////////////////////////////////////////////////////////////////////
//TurnAround.h
//////////////////////////////////////////////////////////////////////////
#include "stdafx.h"
//////////////////////////////////////////////////////////////////////////
//宏定义
#define FISH_NUM 50
//////////////////////////////////////////////////////////////////////////
//类CMyPoint
class CMyPoint
{
public:
CMyPoint();
CMyPoint(float x, float y);
float x;
float y;
};
//////////////////////////////////////////////////////////////////////////
//类Fish_part1
class Fish_part1
{
public:
Fish_part1();
static HTEXTURE hTex[5];
hgeSprite *hSpr ;
hgeSprite *hSpr1, *hSpr2; //备用精灵
hgeAnimation *hAnimation; //动画
float time0 ; //间隔
float time1 ; //间隔
float time_disppear;
static int pic_num ; //所有图片数目
bool alive ; //显示标志
int moveType;
int power ;
float rot ; //方向
float rotBegin;
float speed ;
float x_pos, y_pos;
CMyPoint point[10];
CMyPoint begin_point[5];
int point_b;
int point_i;
CMyPoint point_target;
static int n_Count ; //对象统计
void Init(HGE *pHge); //初始化
void Init1(HGE *pHge, int num);
void Move(HGE *pHge);
void disappear(HGE *pHge);
void GetDistanceAndAngle(CMyPoint pt, float *distance, float *angle);
static void LoadTex(HGE *pHge, char *path); //加载
void Render(); //显示压分
static void CleanUp(HGE *pHge);
protected:
private:
};
//////////////////////////////////////////////////////////////////////////
//类CFishGroup
class CFishGroup
{
public:
CFishGroup();
Fish_part1 fish;
float time;
int nFishs;
void InitFishGroup(HGE *pHge, int nfish);
void Render();
protected:
private:
};
class A
{
static int i;
static void Load();
B b[5];
};