📄 45mapmaker.h
字号:
// 45MapMaker.h : main header file for the 45MAPMAKER application
//
#if !defined(AFX_45MAPMAKER_H__A2683F2B_03DF_4136_A2AD_5BA4FB21D02C__INCLUDED_)
#define AFX_45MAPMAKER_H__A2683F2B_03DF_4136_A2AD_5BA4FB21D02C__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#ifndef __AFXWIN_H__
#error include 'stdafx.h' before including this file for PCH
#endif
#include "resource.h" // main symbols
#include ".\\src\\dxutil.h"
#include ".\\src\\ddutil.h"
#include "MyWall.h"
#include <set>
//using namespace std;
struct Imagemanger
{
Imagemanger()
{}
Imagemanger(int i)
{
filename = i;
}
int filename;
CSurface* image;
BOOL operator == (const Imagemanger& p)const
{
return filename==p.filename;
}
BOOL operator <(const Imagemanger& p)const
{
return filename<p.filename;
}
BOOL operator >(const Imagemanger& p)const
{
return filename<p.filename;
}
};
/////////////////////////////////////////////////////////////////////////////
// CMy45MapMakerApp:
// See 45MapMaker.cpp for the implementation of this class
//
class CMy45MapMakerApp : public CWinApp
{
public:
CMy45MapMakerApp();
CSurface* GetCSurface(CString dir,int i);
CSurface* CurrentEdit; //当前编辑的指针~~~
int CurrentEditId;
CMyWall m_myWall; //
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMy45MapMakerApp)
public:
virtual BOOL InitInstance();
//}}AFX_VIRTUAL
std::set<Imagemanger> Tile; //
std::set<Imagemanger> Wall;
std::set<Imagemanger> Box;
CDisplay* display;
// Implementation
//{{AFX_MSG(CMy45MapMakerApp)
afx_msg void OnAppAbout();
// NOTE - the ClassWizard will add and remove member functions here.
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
virtual int ExitInstance();
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_45MAPMAKER_H__A2683F2B_03DF_4136_A2AD_5BA4FB21D02C__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -