⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ns_menumanager.h

📁 需要clanlib 库 这个改进版的 在linux 很好玩 但是一定要有clanlib
💻 H
字号:
// NS_MenuManager.h: interface for the NS_MenuManager class.////////////////////////////////////////////////////////////////////////#if !defined(AFX_NS_MENUMANAGER_H__5EBB7102_97E9_433A_898C_45923769508C__INCLUDED_)#define AFX_NS_MENUMANAGER_H__5EBB7102_97E9_433A_898C_45923769508C__INCLUDED_#if _MSC_VER > 1000#pragma once#endif // _MSC_VER > 1000#include <string>#include <map>class CL_ResourceManager;class CL_GUIManager;class NS_MenuGeneric;class CL_StyleManager;// Menu manager is a main object of the game. It manage all menus// and answer to switching requests from one menu to anotherclass NS_MenuManager{public:    // In constructor MenuManager creates all menus from resourses    // and set curent menu to "menu_main"    NS_MenuManager(CL_ResourceManager & resource,        CL_StyleManager & style_manager);    ~NS_MenuManager();public:    // Main loop of the game    void run();    // Switch request, sended from one of the managed menu    // param: menu_name - name of menu to switch on    void switch_to(std::string const & menu_name);    // Quit from main loop    void quit();    CL_ResourceManager & get_resource_manager();private:    CL_ResourceManager & resource;    CL_StyleManager & style_manager;    typedef std::map<std::string, NS_MenuGeneric * > MCont_t;    // This contaner holds all menus connected to Manager    MCont_t menus;    // Current menu    NS_MenuGeneric * current_menu;    // Indicator of running main loop    bool running;};#endif // !defined(AFX_NS_MENUMANAGER_H__5EBB7102_97E9_433A_898C_45923769508C__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -