init
This commit is contained in:
56
Classes/Games/NiuNiu/NN_PrivateEndNode.h
Normal file
56
Classes/Games/NiuNiu/NN_PrivateEndNode.h
Normal 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]; // 玩家结束信息
|
||||
};
|
||||
Reference in New Issue
Block a user