#ifndef _C_ROBOT_LOGIC_FRAME_H_INCLUDE_
#define _C_ROBOT_LOGIC_FRAME_H_INCLUDE_

#include "cdefines.h"

#define IDD_TIMER_GAME_XIAZHU1     IDD_TIMER_GAME_START+1                   // ע

class CRobotLogicFrame : public RobotLogicFrame
{
public:
	/// 캯
	CRobotLogicFrame();
	/// 
	~CRobotLogicFrame();

	/// õǰ
	virtual void SetGamePlayer(Player* pPlayer,Room* pRoom) { m_g_myself = pPlayer; m_g_myselfRoom = pRoom;}

	/// ڴû׼Ϣ
	virtual void OnProcessPlayerReadyMes(int playerId);
	/// ڴûʼϷʼϢ
	virtual void OnProcessPlayerGameStartMes();
	/// ڴûϷϢ
	virtual void OnProcessPlayerGameOverMes(void);
	/// ڴûϷϢ
	virtual void OnProcessPlayerRoomMes(Json::Value &mes);
	/// û뷿Ϣ
	virtual void OnProcessEnterRoomMsg(int playerId);
	/// û뿪Ϣ
	virtual void OnProcessLeaveRoomMsg(int playerId);
	/// ûϢ
	virtual void OnProcessReEnterRoomMes(int playerId);
	/// ûϢ
	virtual void OnProcessOfflineRoomMes(int playerId);
	/// ûʱϢ
	virtual void OnProcessTimerMsg(int timerId,int curTimer);

private:
	Player *m_g_myself;
    Room *m_g_myselfRoom;
};

#endif
