MirMiniMap.h
资源名称:盛大传奇外挂原代码.rar [点击查看]
上传用户:marco7834
上传日期:2010-02-24
资源大小:82k
文件大小:1k
源码类别:
游戏引擎
开发平台:
Visual C++
- // MirMiniMap.h: interface for the CMirMiniMap class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_MIRMINIMAP_H__35FE2480_A3DD_4C8D_917D_FB7F3E61FC7F__INCLUDED_)
- #define AFX_MIRMINIMAP_H__35FE2480_A3DD_4C8D_917D_FB7F3E61FC7F__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- typedef struct
- {
- BITMAPINFOHEADER header;
- char pals[1024];
- }st_mybi;
- class CMirMiniMap
- {
- public:
- void SetCurPos( int x, int y );
- void Draw( HDC dc, int x, int y, int w, int h );
- BOOL SetMMap( DWORD index );
- BOOL InitMiniMap( char * wixfile, char * wilfile );
- CMirMiniMap();
- virtual ~CMirMiniMap();
- private:
- DWORD LoadOfs( char * szWixFile, DWORD ** ofsbuf );
- char * LoadBuf( DWORD idx, DWORD & width, DWORD & height );
- BOOL LoadPal( char * ppal);
- int MakeBitmapHeader( BITMAPFILEHEADER * pBfHeader, BITMAPINFOHEADER * pBiHeader, int width, int height, int bits );
- private:
- DWORD * m_pResOfs;
- DWORD m_dwCntMMap;
- char m_szWixFile[1024];
- char m_szWilFile[1024];
- char * m_ImageData;
- DWORD m_dwImageWidth;
- DWORD m_dwImageHeight;
- FILE * m_fpWilFile;
- DWORD m_dwMapIndex;
- st_mybi m_BitmapHeader;
- DWORD m_xpos;
- DWORD m_ypos;
- };
- #endif // !defined(AFX_MIRMINIMAP_H__35FE2480_A3DD_4C8D_917D_FB7F3E61FC7F__INCLUDED_)