couplemanager.h
来自「dk1游戏的原代码文件,完整.编译系统redhat7.3,mysql 3.23 」· C头文件 代码 · 共 44 行
H
44 行
#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 + =
减小字号Ctrl + -
显示快捷键?