v5.1 代码策略
This commit is contained in:
+9
-2
@@ -228,13 +228,15 @@ public:
|
||||
class TTableFrame;
|
||||
|
||||
//代码策略(特殊打法/打注一体/特殊注码)求值结果:生产方TMainForm解析JSON,TGame直接按字段使用
|
||||
struct TJSCodeRet{
|
||||
typedef struct tagJSCodeRet{
|
||||
int iBet; //下注项:0=不打 1=庄 2=闲 3=和 4=局停,未输出=-1
|
||||
int iChip; //基码个数:未输出=-1
|
||||
int iBlast; //爆缆动作:0=无 1=停止 2=新局重开 3=暂停重开
|
||||
int iBlastMinutes;
|
||||
String sCtx; //下一轮透传的 context 对象串(JS原样序列化,空串=未初始化)
|
||||
};
|
||||
|
||||
tagJSCodeRet(){iBet=iChip=iBlast=iBlastMinutes=0;};
|
||||
} TJSCodeRet;
|
||||
|
||||
class TGame
|
||||
{
|
||||
@@ -274,6 +276,8 @@ public:
|
||||
String sCtxSPB, //calcBet(road,context)
|
||||
sCtxSPC, //calcChip(result,chipMult,context)
|
||||
sCtxBWC; //calcBetWithChip(road,chipMult,context)
|
||||
bool bPreSPC, //CalcResult已为下一手预存 nChip(SPC)
|
||||
bPreBWC; //CalcResult已为下一手预存 iBet/nChip(BWC)
|
||||
|
||||
vector<TManBet> aManBets; //手工下注
|
||||
|
||||
@@ -321,6 +325,9 @@ public:
|
||||
void __fastcall ClearRankChip();
|
||||
TRankChip* __fastcall GetRankChip(int type);
|
||||
void __fastcall ResetIP();
|
||||
|
||||
//代码策略执行辅助(内部统一入口,失败已停台+三写日志;ctx由kind映射读写)
|
||||
bool __fastcall EvalCodeJS(int kind, const String& sCode, TJSCodeRet& bs, int iCodeIn=0);
|
||||
};
|
||||
|
||||
class TGameArray : public vector<TGame*>
|
||||
|
||||
Reference in New Issue
Block a user