📄 monstercorpse.cpp
字号:
//////////////////////////////////////////////////////////////////////////////// Filename : MonsterCorpse.cpp// Written by : Reiot// Description : //////////////////////////////////////////////////////////////////////////////#include "MonsterCorpse.h"#include "Monster.h"#include "DB.h"//////////////////////////////////////////////////////////////////////////////// 颇扼固磐肺 阁胶磐 按眉甫 罐栏搁, 阁胶磐狼 鸥涝, 谅钎, 规氢阑 历厘茄// 饶 阁胶磐狼 牢亥配府 救俊 甸绢乐带 酒捞袍阑 弊贰档 啊瘤绊 柯促.//////////////////////////////////////////////////////////////////////////////MonsterCorpse::MonsterCorpse (Monster* pMonster) throw (Error){ __BEGIN_TRY Assert(pMonster != NULL); m_MonsterType = pMonster->getMonsterType(); m_Name = pMonster->getName(); m_Dir = pMonster->getDir(); m_bhasHead = true; m_bShrine = false; setObjectID(pMonster->getObjectID()); m_HostPartyID = 0; __END_CATCH}MonsterCorpse::MonsterCorpse (MonsterType_t MType, const string& name, Dir_t dir) throw (Error){ __BEGIN_TRY m_MonsterType = MType; m_Name = name; m_Dir = dir; m_bhasHead = true; m_bShrine = false; m_HostPartyID = 0; __END_CATCH}//////////////////////////////////////////////////////////////////////////////// destructor//////////////////////////////////////////////////////////////////////////////MonsterCorpse::~MonsterCorpse() throw(){ __BEGIN_TRY __END_CATCH}//////////////////////////////////////////////////////////////////////////////// create//////////////////////////////////////////////////////////////////////////////void MonsterCorpse::create (const string & ownerID , Storage stroage , DWORD storageID , BYTE x , BYTE y, ItemID_t itemID) throw (Error){ __BEGIN_TRY __END_CATCH}//////////////////////////////////////////////////////////////////////////////// destroy//////////////////////////////////////////////////////////////////////////////bool MonsterCorpse::destroy () throw (Error){ __BEGIN_TRY return true; __END_CATCH}//////////////////////////////////////////////////////////////////////////////// save//////////////////////////////////////////////////////////////////////////////void MonsterCorpse::save (const string & ownerID , Storage stroage , DWORD storageID , BYTE x , BYTE y) throw (Error){ __BEGIN_TRY __END_CATCH}//////////////////////////////////////////////////////////////////////////////// get debug string//////////////////////////////////////////////////////////////////////////////string MonsterCorpse::toString() const throw(){ __BEGIN_TRY StringStream msg; msg << "MonsterCorpse(" << "ObjectID:" << (int)m_ObjectID << ",MonsterName:" << m_Name << ",MonsterType:" << (int)m_MonsterType << ",m_Dir:" << Dir2String[m_Dir] << ")"; return msg.toString(); __END_CATCH}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -