#pragma once #include "cocos2d.h" #include "ui/CocosGUI.h" #include "WN_SparrowCard.h" #include "WN_GameLogic.h" USING_NS_CC; using namespace ui; using namespace std; namespace WNMJ_SPACE{ // 听牌控件 class GetCardCtrl : public cocos2d::Node { public: GetCardCtrl(); ~GetCardCtrl(); CREATE_FUNC(GetCardCtrl); virtual bool init(); //功能函数 public: void ShowCardData(const MasterLeftCard* pLeftCard); //排堆数据; bool onSendCardEvent(cocos2d::Ref *pSender, Vec2 pos); //点击出牌 void ResetAll(); //重置 void HideGetCtrl(); //隐藏自己 Point GetCardPoint(uint8 cbIndex); public: Node* m_pRootNode; //界面 Layout* m_pLeftCardList; Layout* m_pCheakCard; }; }