#ifndef GAME_DLG_CUSTOM_RULE_HEAD_FILE #define GAME_DLG_CUSTOM_RULE_HEAD_FILE #pragma once #include "Stdafx.h" ////////////////////////////////////////////////////////////////////////////////// //配置结构 struct tagCustomRule { //其他定义 WORD wMaxScoreTimes; //最大倍数 WORD wFleeScoreTimes; //逃跑倍数 BYTE cbFleeScorePatch; //逃跑补偿 //时间定义 BYTE cbTimeOutCard; //出牌时间 BYTE cbTimeCallScore; //叫分时间 BYTE cbTimeStartGame; //开始时间 BYTE cbTimeHeadOutCard; //首出时间 BYTE cbOverTimeTrustee; //超时托管; BYTE cbAllNotCallResend; //所有玩家都不叫重新发牌; }; ////////////////////////////////////////////////////////////////////////////////// //配置窗口 class CDlgCustomRule : public CDialog { //配置变量 protected: tagCustomRule m_CustomRule; //配置结构 //函数定义 public: //构造函数 CDlgCustomRule(); //析构函数 virtual ~CDlgCustomRule(); //重载函数 protected: //配置函数 virtual BOOL OnInitDialog(); //确定函数 virtual VOID OnOK(); //取消消息 virtual VOID OnCancel(); //功能函数 public: //更新控件 bool FillDataToControl(); //更新数据 bool FillControlToData(); //配置函数 public: //读取配置 bool GetCustomRule(tagCustomRule & CustomRule); //设置配置 bool SetCustomRule(tagCustomRule & CustomRule); DECLARE_MESSAGE_MAP() }; ////////////////////////////////////////////////////////////////////////////////// #endif