cgsetslayerhotkeyhandler.cpp
来自「天之炼狱1服务器端源文件游戏服务端不完整」· C++ 代码 · 共 48 行
CPP
48 行
//////////////////////////////////////////////////////////////////////////////// Filename : CGSetSlayerHotKeyHandler.cpp// Written By : reiot@ewestsoft.com , elca@ewestsoft.com// Description ://////////////////////////////////////////////////////////////////////////////#include "CGSetSlayerHotKey.h"#ifdef __GAME_SERVER__ #include "GamePlayer.h"// #include "Vampire.h"// #include "Slayer.h"// #include "Zone.h"#endif////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////void CGSetSlayerHotKeyHandler::execute (CGSetSlayerHotKey* pPacket , Player* pPlayer) throw (ProtocolException , Error){ __BEGIN_TRY __BEGIN_DEBUG_EX#ifdef __GAME_SERVER__/* Assert(pPacket != NULL); Assert(pPlayer != NULL); GamePlayer* pGamePlayer = dynamic_cast<GamePlayer*>(pPlayer);// if (pGamePlayer->getPlayerStatus() == GPS_NORMAL) { // 捞 惑怕俊辑绰 农府贸啊 壳霸 肺爹登菌绢具 窍骨肺, NULL 捞 酒聪绢具 茄促. // PLAYER_INGAME 磊眉啊 农府贸 肺爹捞 己傍登菌澜阑 狼固茄促. Creature* pCreature = pGamePlayer->getCreature(); Assert(pCreature != NULL); if (pCreature->isSlayer()) { Slayer* pSlayer = dynamic_cast<Slayer*>(pCreature); for(int i = 0; i < 4; i++) { pSlayer->setHotKey(i, pPacket->getHotKey(i)); } }// }*/#endif __END_DEBUG_EX __END_CATCH}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?