📄 couplemanager.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 + -