Files
wnmj-normal/Classes/Games/WNMJ/WN_CNotifyDlg.h
2026-03-03 13:56:44 +08:00

63 lines
1.5 KiB
C++

#pragma once
#include "cocos2d.h"
#include "ui/CocosGUI.h"
#include "WN_CMD_Sparrow.h"
#include "WN_GameLogic.h"
#include "WN_WeaveCard.h"
#include "WN_SparrowCard.h"
USING_NS_CC;
using namespace ui;
using namespace std;
namespace WNMJ_SPACE{
class WN_NotifyDlg : public cocos2d::Node
{
///<函数定义
public:
WN_NotifyDlg();
~WN_NotifyDlg();
CREATE_FUNC(WN_NotifyDlg);
virtual bool init(); // 初始化
virtual void onEnter();
virtual void onEnterTransitionDidFinish();
virtual void onExit();
void ResetAll(); // 重置
// 高级操作界面
public:
void InitNotifyDlg(); // 初始化提示操作界面
void HideNotifyDlg(bool isTimeOver = false); // 隐藏提示界面
void SetNoticeData(CMD_S_OperateNotify * pOperateNotify); // 设置高级操作界面
// 操作事件
public:
void onEventHu(cocos2d::Ref *pSender); // 选择操作
void onEventPeng(cocos2d::Ref *pSender); // 选择操作
void onEventGang(cocos2d::Ref *pSender); // 选择操作
void onEventGuo(cocos2d::Ref *pSender); // 选择操作
public:
Layout* m_pNoticelayer;
Button* m_btnGuo; // 过
Button* m_btnHu; // 胡
Button* m_btnPeng; // 碰
Button* m_btnGang; // 杠
WN_SparrowCard* m_pGangCardItem[MAX_WEAVE]; // 显示多个杠牌;
CMD_S_OperateNotify m_OperateNotify; // 操作信息
WORD m_wCurrentUser; // 当前玩家
};
}