volumeinfo.h
来自「天之炼狱1服务器端源文件游戏服务端不完整」· C头文件 代码 · 共 67 行
H
67 行
////////////////////////////////////////////////////////////////////////////////// Filename : VolumeInfo.h// Written By : Elca// Description :////////////////////////////////////////////////////////////////////////////////#ifndef __VOLUMEINFO_H__#define __VOLUMEINFO_H__#include "Types.h"#define MAX_VOLUME_TYPE 7////////////////////////////////////////////////////////////////////////////////// Class VolumeInfo////////////////////////////////////////////////////////////////////////////////class VolumeInfo {public: VolumeInfo(VolumeType_t volumeType, VolumeWidth_t volumeWidth, VolumeHeight_t volumeHeight) throw(); ~VolumeInfo() throw();public: // get/set volume width VolumeWidth_t getVolumeWidth() const throw() { return m_VolumeWidth; } void setVolumeWidth(VolumeWidth_t volumeWidth) throw() { m_VolumeWidth = volumeWidth; } // get/set volume height VolumeHeight_t getVolumeHeight() const throw() { return m_VolumeHeight; } void setVolumeHeight(VolumeHeight_t volumeHeight) throw() { m_VolumeHeight = volumeHeight; } // get debug string string toString() throw();private: VolumeType_t m_VolumeType; VolumeWidth_t m_VolumeWidth; VolumeHeight_t m_VolumeHeight;};////////////////////////////////////////////////////////////////////////////////// Class VolumeInfoManager////////////////////////////////////////////////////////////////////////////////class VolumeInfoManager {public: VolumeInfoManager() throw(); ~VolumeInfoManager() throw(); public: void init() throw(); VolumeInfo* getVolumeInfo(VolumeType_t VolumeType) const throw() { return m_VolumeInfo[VolumeType]; } string toString() throw();private: VolumeInfo* m_VolumeInfo[MAX_VOLUME_TYPE];};extern VolumeInfoManager* g_pVolumeInfoManager;#endif // __VOLUME_INFO_MANAGER_H__
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?