75 lines
2.2 KiB
C++
75 lines
2.2 KiB
C++
|
|
#ifndef _SUIArenaWaitingWnd_h_
|
|
#define _SUIArenaWaitingWnd_h_
|
|
|
|
//#include "SUIWnd.h"
|
|
//#include "SUIUtil.h"
|
|
#include "ArenaCountDirecting.h"
|
|
|
|
/*
|
|
선택 입장, 연습 입장 대기,
|
|
빠른 입장 대기는 nui가 틀려서 따로 만듬
|
|
(선택/연습으로 다시 나눌지는 쫌더 고민을 해봐야 겠다)
|
|
*/
|
|
class SUIArenaWaitingWnd : public SUIWnd
|
|
{
|
|
public:
|
|
SUIArenaWaitingWnd(SGameManager* pGameManager);
|
|
virtual ~SUIArenaWaitingWnd();
|
|
virtual bool InitData( bool reload = false );
|
|
virtual void Process(DWORD dwTime);
|
|
virtual void ProcMsgAtStatic( SGameMessage* msg );
|
|
virtual void OnNotifyUIWindowOpen(bool bOpen, bool bLimitWnd);
|
|
virtual void PumpUpMessage( LPCTSTR controlID, DWORD msg, DWORD lparam, DWORD wparam );
|
|
virtual DWORD OnMouseMessage(DWORD dwMessage, int x, int y);
|
|
|
|
void setMode(int mode);
|
|
/// 최대 인원을 팀/더블 등의 스트링으로 바꿔서 설정하는 함수, 이름이 쫌 이상한데,,,
|
|
void setMemberString(int maxMember);
|
|
void setMemberCount(int curMember);
|
|
void setTotalCount(float count);
|
|
|
|
private:
|
|
void initFp();
|
|
void initTooltip();
|
|
void syncPos();
|
|
void getWndInfo();
|
|
void procCount(DWORD dwTime);
|
|
void updateCount();
|
|
void setEnableStartButton(bool enable);
|
|
void startCounting();
|
|
void endCounting();
|
|
void setRank();
|
|
void setData();
|
|
void postUpdateMainMenuButton();
|
|
void isValidArenaJoinSituationAtStartCount();
|
|
void isValidArenaJoinSituationAtEndCount();
|
|
void setMyTeam(int team);
|
|
void checkWaiting();
|
|
void updateMemberCount();
|
|
void setDefaultMyTeam();
|
|
/// 카운트 시간에 따라서 도움말 텍스트를 설정해 준다
|
|
void setHelpText(bool reconnect);
|
|
/// control fp
|
|
void start();
|
|
|
|
void procMsgBattleInfo(SGameMessage* msg);
|
|
void procMsgUpdateWaitUserCount(SGameMessage* msg);
|
|
void procMsgJoinQueue(SGameMessage* msg);
|
|
void procMsgJoinBattle(SGameMessage* msg);
|
|
void procMsgLeave(SGameMessage* msg);
|
|
|
|
private:
|
|
KUIControl* m_startButton;
|
|
KUIWnd* m_countStatic;
|
|
KUIWnd* m_helpStatic;
|
|
sArenaWaitingCountDirecting m_countDirecting;
|
|
cClassFuncP<SUIArenaWaitingWnd> m_controlFp;
|
|
sEmptyControlRegionChecker m_emptyControlRegionChecker;
|
|
cClassParamFuncP<SUIArenaWaitingWnd, SGameMessage*, int> m_msgFp;
|
|
|
|
static int RECONNECT_WAITING_TIME; /// 재 진입 대기 시간
|
|
};
|
|
|
|
#endif
|