#pragma once #include #include #include #include "cocos2d.h" #include "ui/CocosGUI.h" #include "DDZ_CMD.h" #include "GamePlayer.h" #include "Singleton.h" USING_NS_CC; using namespace ui; /************************************************************************/ /* 注:该文件使用的是服务器位置,而不是视图位置 */ /************************************************************************/ class DDZPrivateEndNode : public cocos2d::Node { public: DDZPrivateEndNode(); ~DDZPrivateEndNode(); CREATE_FUNC(DDZPrivateEndNode); virtual bool init(); // 场景初始化 // 函数 public: //void ShowGameResult(DDZ_CMD_S_Private_End_Info* pNetInfo, GamePlayer* players[DDZ_GAME_PLAYER]); void ShowGameResult(DDZ_CMD_S_Private_End_Info* pNetInfo, GamePlayer* players[DDZ_GAME_PLAYER], bool bUnionScore, SCORE lGameGold, SCORE lScoreMultiple); void ShowGameResult(DDZ_CMD_S_Private_End_Info* pNetInfo, GamePlayer* players[DDZ_GAME_PLAYER], uint8 cbBaseScore); void ShowGameResult(DDZ_CMD_S_Private_End_Info* pNetInfo, GamePlayer* players[DDZ_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; // 根节点 Button* m_btnleave; // 用户离开 Button* m_btnShow; // 分享 Text* m_txtRoomID; // 房间号; Text* m_txtTime; // 当前时间; Layout* m_pPlayNode[DDZ_GAME_PLAYER]; // 玩家结束信息 };