vampexpinfo.h

来自「天之炼狱1服务器端源文件游戏服务端不完整」· C头文件 代码 · 共 72 行

H
72
字号
////////////////////////////////////////////////////////////////////////////////// Filename    : VampEXPInfo.h// Written By  : beowulf// Description :////////////////////////////////////////////////////////////////////////////////#ifndef __VAMP_EXP_INFO_H__#define __VAMP_EXP_INFO_H__#include "Exception.h"#include "Types.h"////////////////////////////////////////////////////////////////////////////////// Class VampEXPInfo////////////////////////////////////////////////////////////////////////////////class VampEXPInfo {public:	VampEXPInfo() throw();	~VampEXPInfo() throw();public:	void setLevel(uint lev) throw() { m_Level = lev; }	uint getLevel() const throw() { return m_Level; }	void setGoalExp(Exp_t sum) throw() { m_GoalExp = sum; }	uint getGoalExp() const throw() { return m_GoalExp; }	void setAccumExp(Exp_t accum) throw() { m_AccumExp = accum ; }	uint getAccumExp() const throw() { return m_AccumExp; }	string toString() const throw();private:	Level_t m_Level;		// 饭骇	Exp_t m_GoalExp;   	// 格钎 版氰摹	Exp_t m_AccumExp;		// 穿利 版氰摹};////////////////////////////////////////////////////////////////////////////////// Class VampEXPInfoManager////////////////////////////////////////////////////////////////////////////////class VampEXPInfoManager {public:	VampEXPInfoManager() throw();	~VampEXPInfoManager() throw();public:	void init() throw(Error);	void load() throw(Error);	VampEXPInfo* getVampEXPInfo(uint VampEXPType) const throw(NoSuchElementException, OutOfBoundException, Error);	void addVampEXPInfo(VampEXPInfo* pVampEXPInfo) throw(DuplicatedException, Error);	string toString() const throw();private:	uint          m_VampEXPCount;	VampEXPInfo** m_VampEXPInfoList;		};// Global Variable Definitionextern VampEXPInfoManager* g_pVampEXPInfoManager;#endif	

⌨️ 快捷键说明

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