📄 actionsystemmessage.cpp
字号:
////////////////////////////////////////////////////////////////////////////////// Filename : ActionSystemMessage.cpp// Written By : // Description :////////////////////////////////////////////////////////////////////////////////#include "ActionSystemMessage.h"#include "Creature.h"#include "GamePlayer.h"#include "Gpackets/GCSystemMessage.h"#include "StringPool.h"////////////////////////////////////////////////////////////////////////////////// read from property buffer////////////////////////////////////////////////////////////////////////////////void ActionSystemMessage::read (PropertyBuffer & propertyBuffer) throw (Error){ __BEGIN_TRY try { m_Content = propertyBuffer.getPropertyInt("Content"); } catch (NoSuchElementException & nsee) { throw Error(nsee.toString()); } __END_CATCH}////////////////////////////////////////////////////////////////////////////////// 咀记阑 角青茄促.////////////////////////////////////////////////////////////////////////////////void ActionSystemMessage::execute (Creature * pCreature1, Creature * pCreature2) throw (Error){ __BEGIN_TRY Assert(pCreature2 != NULL); Assert(pCreature2->isPC()); Player* pPlayer = pCreature2->getPlayer(); Assert(pPlayer != NULL); GCSystemMessage gcSystemMessage; gcSystemMessage.setMessage(g_pStringPool->getString(m_Content)); pPlayer->sendPacket(&gcSystemMessage); __END_CATCH}////////////////////////////////////////////////////////////////////////////////// get debug string////////////////////////////////////////////////////////////////////////////////string ActionSystemMessage::toString () const throw (){ __BEGIN_TRY StringStream msg; msg << "ActionSystemMessage(" << "Content:" << m_Content << ")"; return msg.toString(); __END_CATCH}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -