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

📄 couplemanager.h

📁 天之炼狱1服务器端源文件游戏服务端不完整
💻 H
字号:
#ifndef __COUPLE_MANAGER_H__#define __COUPLE_MANAGER_H__#include "Types.h"#include "Exception.h"#include "Assert.h"class PlayerCreature;// const 救窍搁 快抗 登绰芭瘤?const string Sex2FieldName[] ={	"FemalePartnerName",	"MalePartnerName",};class CoupleManager{public:	CoupleManager() { }public:	bool 	isCouple( PlayerCreature* pPC1, PlayerCreature* pPC2 ) throw(Error);	bool	hasCouple( PlayerCreature* pPC ) throw(Error);	bool	getPartnerName( PlayerCreature* pPC, string& partnerName ) throw(Error);	bool 	isCouple( PlayerCreature* pPC1, string name2 ) throw(Error);public:	static string	getFieldName( Sex sex ) { return Sex2FieldName[(int)sex]; }	static string	getCounterFieldName( Sex sex ) { return Sex2FieldName[ 1 - (int)sex ]; }public:	void	makeCouple( PlayerCreature* pPC1, PlayerCreature* pPC2 ) throw(Error);	void	removeCouple( PlayerCreature* pPC1, PlayerCreature* pPC2 ) throw(Error);	void	removeCoupleForce( PlayerCreature* pPC1, string strPC2 ) throw(Error);	void	removeCoupleForce( PlayerCreature* pPC1 ) throw(Error);};extern CoupleManager* g_pCoupleManager;#endif // __COUPLE_MANAGER_H__

⌨️ 快捷键说明

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