virtual void ObjRender() = 0; //可视工程图形渲染函数(虚函数 实现多态)
void SetXCoord(float X); //设置对象X坐标
void SetYCoord(float Y); //设置对象Y坐标
const float GetXCoord(); //获取对象X坐标
const float GetYCoord(); //获取对象Y坐标
hgeSprite* GetSprite(); //获取hgeSprite类指针
private:
hgeSprite *m_pSpr; //hgeSprite类指针
float m_fXCoord; //该对象在屏幕中的X坐标
float m_fyCoord; //该对象在屏幕中的Y坐标
};#endif#ifndef SOURCEMANAGER_H
#define SOURCEMANAGER_H
#include "hge.h"
#include "hgefont.h"
#include "Mydata.h"
//资源管理类
class CSourceManager
{
public:
CSourceManager(HGE* hge); //构造函数
~CSourceManager(); //析构函数
bool LoadAllResouce(); //载入所有资源
bool FreeAllResource(); //释放所有资源
//获取各类资源句柄
inline HTEXTURE GetEasyBugTextureHandle() {return m_hEasyBugImg;} //EasyBug图像
inline HTEXTURE GetHardBugTextureHandle() {return m_hHardBugImg;} //HardBug图像
inline HTEXTURE GetAIBugTextureHandle() {return m_hAIBugImg;} //AIBug纹理索引
inline hgeFont* GetFont1pp() {return m_pFont1;} //字体1指针
inline hgeFont* GetFont2pp() {return m_pFont2;} //字体2指针
inline hgeFont* GetFont3pp() {return m_pFont3;} //字体3指针
inline HEFFECT GetGUIEffectHandle() {return m_hGUIEffect;} //GUI点击音效效果
inline HEFFECT GetGUIBgSoundHandle() {return m_hGUIBgSound;} //背景音乐句柄
inline HTEXTURE GetInformationBackImg() {return m_hInformationBackImg;} //箭头图标
inline HTEXTURE GetGUIBgImg() {return m_hGUIBgImg;} //GUI背景
inline HTEXTURE GetInformationBgImg() {return m_hInformationBgImg;} //信息背景
inline HTEXTURE GetLevel1BgImg() {return m_hLevel1BgImg;} //Levle1背景
inline HTEXTURE GetLevel2BgImg() {return m_hLevel2BgImg;} //Levle2背景
inline HTEXTURE GetLevel3BgImg() {return m_hLevel3BgImg;} //Levle3背景
inline HTEXTURE GetLevel4BgImg() {return m_hLevel4BgImg;} //Levle4背景
inline HTEXTURE GetLevel5BgImg() {return m_hLevel5BgImg;} //Levle5背景
inline HTEXTURE GetLevelFatalBgImg() {return m_hLevelFatalBgImg;}//LevleFatal背景
inline HTEXTURE GetTimeBarImg() {return m_hTimeBarImg;} //时间条
inline HEFFECT GetLoseEffect() {return m_hLoseEffect;} //失败时音效
inline HTEXTURE GetRobotImg() {return m_hRobotImg;} //Robot纹理
inline HTEXTURE GetKillBugHandle() {return m_hKillBugEffect;} //杀死虫子音效
inline HTEXTURE GetPassEffectHandle() {return m_hPassEffect;} //过关音效
inline HTEXTURE GetLoseImg() {return m_hLoseImg;} //失败图片
inline HTEXTURE GetBossImg() {return m_hBossImg;} //Boss图片
private:
HGE* m_pHge; //hge指针
hgeFont* m_pFont1; //字体1指针
hgeFont* m_pFont2; //字体2指针
hgeFont* m_pFont3; //字体3指针
HEFFECT m_hGUIEffect; //点击GUI效果
HEFFECT m_hGUIBgSound; //背景音乐
HEFFECT m_hLoseEffect; //失败音效
HEFFECT m_hKillBugEffect; //杀虫音效
HEFFECT m_hPassEffect; //过关音效
毕业论文http://www.youerw.com/
HTEXTURE m_hEasyBugImg; //EasyBug纹理
HTEXTURE m_hHardBugImg; //HardBug纹理
HTEXTURE m_hAIBugImg; //AIbug纹理
HTEXTURE m_hBossImg; //Boss纹理
HTEXTURE m_hGUIBgImg; //GUI背景
HTEXTURE m_hInformationBgImg; //信息背景
HTEXTURE m_hInformationBackImg; //箭头
HTEXTURE m_hLevel1BgImg; //Level1背景
HTEXTURE m_hLevel2BgImg; //Level1背景
HTEXTURE m_hLevel3BgImg; //Level1背景
HTEXTURE m_hLevel4BgImg; //Level1背景
HTEXTURE m_hLevel5BgImg; //Level1背景
HTEXTURE m_hLevelFatalBgImg; //Level1背景
HTEXTURE m_hTimeBarImg; //时间条图像
HTEXTURE m_hRobotImg; //机器人图像
HTEXTURE m_hLoseImg; //失败图像