#ifndef _C_ROBOT_LOGIC_FRAME_H_INCLUDE_
#define _C_ROBOT_LOGIC_FRAME_H_INCLUDE_

#include "cdefines.h"
#include "GameLogic.h"

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;

	//
protected:
	CGameLogic						m_GameLogic;						//Ϸ߼

	//˿˱
protected:
	uint16 							m_cbTurnCardCount;					//Ŀ
	uint8							m_cbTurnCardData[20];				//б
	uint16							m_wOutCardUser;						//
	uint16							m_wBankerUser;						//

	//˿
protected:
	uint8							m_cbBackCard[3];					//
	uint16 							m_cbHandCardCount;					//˿Ŀ
	uint8							m_cbHandCardData[20];				//˿
	uint16 							m_cbCurrentLandScore;				//ѽз

	//зֽ׶α
public:
	int							m_cbCallScorePhase;					//ƽ׶
};

#endif
