#pragma once #include #include #include #include "cocos2d.h" #include "ui/CocosGUI.h" #include "PDK_CMD.h" #include "GamePlayer.h" #include "Singleton.h" USING_NS_CC; using namespace ui; /************************************************************************/ /* 注:该文件使用的是服务器位置,而不是视图位置 */ /************************************************************************/ class PDKPrivateEndNode : public cocos2d::Node { public: PDKPrivateEndNode(); ~PDKPrivateEndNode(); CREATE_FUNC(PDKPrivateEndNode); virtual bool init(); // 场景初始化 // 函数 public: //void ShowGameResult(PDK_CMD_S_Private_End_Info* pNetInfo, GamePlayer* players[PDK_GAME_PLAYER]); void ShowGameResult(PDK_CMD_S_Private_End_Info* pNetInfo, GamePlayer* players[PDK_GAME_PLAYER], bool bUnionScore, SCORE lGameGold, SCORE lScoreMultiple); void ShowGameResult(PDK_CMD_S_Private_End_Info* pNetInfo, GamePlayer* players[PDK_GAME_PLAYER], uint8 cbBaseScore); void ShowGameResult(PDK_CMD_S_Private_End_Info* pNetInfo, GamePlayer* players[PDK_GAME_PLAYER], CMD_GF_Private_Room_Info& RoomInfo, CMD_GF_Private_Score_Info& ScoreInfo); void pushScene(); void popScene(); void SetRoomID(std::string strRoomID); private: std::string getcurrTime(); // 控件 public: ImageView* m_ImageViewBg; // 根节点 Layout* m_PanelList; Button* m_btnleave; // 用户离开 Button* m_btnShow; // 分享 Text* m_txtRoomID; // 房间号; Text* m_txtTime; // 当前时间; Layout* m_pPlayNode[PDK_GAME_PLAYER]; // 玩家结束信息 };