This commit is contained in:
cyw
2026-02-13 14:34:15 +08:00
parent 6ed1953e24
commit f36e3f9df2
5206 changed files with 573757 additions and 16 deletions

View File

@@ -0,0 +1,56 @@
#pragma once
#include <stdio.h>
#include <vector>
#include <string>
#include "cocos2d.h"
#include "ui/CocosGUI.h"
#include "NN_CMD.h"
#include "GamePlayer.h"
#include "Singleton.h"
USING_NS_CC;
using namespace ui;
/************************************************************************/
/* 注:该文件使用的是服务器位置,而不是视图位置 */
/************************************************************************/
class NNPrivateEndNode : public cocos2d::Node
{
public:
NNPrivateEndNode();
~NNPrivateEndNode();
CREATE_FUNC(NNPrivateEndNode);
virtual bool init(); // 场景初始化
// 函数
public:
void ShowGameResult(NN_CMD_S_Private_End_Info* pNetInfo, GamePlayer* players[NN_GAME_PLAYER],
bool bUnionScore, SCORE lGameGold, SCORE lScoreMultiple);
void ShowGameResult(NN_CMD_S_Private_End_Info* pNetInfo, GamePlayer* players[NN_GAME_PLAYER],
uint8 cbBaseScore);
void ShowGameResult(NN_CMD_S_Private_End_Info* pNetInfo, GamePlayer* players[NN_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_PanelList; // 玩家列表控件;
//Layout* m_ListItem; // 列表节点;
Node* m_pPlayNode[NN_GAME_PLAYER]; // 玩家结束信息
};