itf_brewgame.h
来自「象棋框架」· C头文件 代码 · 共 25 行
H
25 行
#include "BrewDefine.h"
#include "Itf_MessageReader.h"
#include "global.h"
struct IBrewGame{
virtual void setGameFrame(IBrewGameFrame *f) = 0;
virtual UINT16 getCurrentGameId() = 0;
virtual void onSitDown(UINT8 tableId, UINT8 seatId, UINT8 action, UINT8 retCode) = 0;
virtual void onUserInfo(UINT8 ret, UINT16 num, struct UserItemStruct *uItem) = 0;
virtual void onInviteUser(UINT16 num, struct InviteItemStruct *inviteItem) = 0;
virtual void onChat(UINT16 num, struct ChatItemStruct *chatItem) = 0;
virtual void onDisconnectGameServer(UINT8 retCode) = 0;
virtual void onYouBack(UINT8 roomId, UINT8 tableId, UINT8 seatId) = 0;
virtual void onStart() = 0;
virtual void onStop() = 0;
virtual void onSuspend() = 0;
virtual void onResume() = 0;
virtual void onPlay() = 0;
virtual void onPackage(IMessageReader *mReader) = 0;
virtual void onEvent(AEEEvent eCode, UINT16 wParam, UINT32 dwParam) = 0;
virtual void Release() = 0;
};
IBrewGame *CreateBrewGame();
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?