📄 msginteract.h
字号:
// MsgInteract.h: interface for the CMsgInteract class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_MSGSTEAL_H__05C99CA2_5829_11D5_A212_0000E8E7F527__INCLUDED_)
#define AFX_MSGSTEAL_H__05C99CA2_5829_11D5_A212_0000E8E7F527__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "NetMsg.h"
enum { INTERACT_NONE =0,
INTERACT_STEAL,
INTERACT_ATTACK,
INTERACT_HEAL,
INTERACT_POISON,
INTERACT_ASSASSINATE,
INTERACT_FREEZE,
INTERACT_UNFREEZE,
INTERACT_COURT,
INTERACT_MARRY,
INTERACT_DIVORCE,
INTERACT_PRESENTMONEY,
INTERACT_PRESENTITEM,
INTERACT_SENDFLOWERS,
INTERACT_KILL,
INTERACT_JOINSYN,
INTERACT_ACCEPTSYNMEMBER,
INTERACT_KICKOUTSYNMEMBER,
INTERACT_POWER,
INTERACT_QUERYINFO,
INTERACT_RUSHATK,
INTERACT_MAGICATTACK,
INTERACT_ABORTMAGIC,
INTERACT_REFLECTWEAPON, // to client
INTERACT_BUMP,
INTERACT_SHOOT,
INTERACT_REFLECTMAGIC,
};
class CMsgInteract : public CNetMsg
{
public:
CMsgInteract();
virtual ~CMsgInteract();
BOOL Create(USHORT unType, OBJID idSender, OBJID idTarget, USHORT unPosX, USHORT unPosY, DWORD dwData = 0);
public:
BOOL Create (char* pMsgBuf, DWORD dwSize);
void Process (void* pInfo);
private:
typedef struct{
MSGHEAD_DEFINE
DWORD dwTimeStamp;
OBJID idSender;
OBJID idTarget;
union
{
struct
{
USHORT unPosX;
USHORT unPosY;
};
DWORD dwBulletType;
OBJID idBullet;
};
USHORT unType;
union {
OBJID idItem;
DWORD dwData;
INT nData;
};
}MSG_Info;
MSG_Info* m_pInfo;
};
#endif // !defined(AFX_MSGSTEAL_H__05C99CA2_5829_11D5_A212_0000E8E7F527__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -