diff --git a/.gitignore b/.gitignore
index 74b79ad..f1840b8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1,10 @@
#排除所有的编译目录
**/Win32/
+#排除scratch和docs
+.scratch/
+docs/
+
#排除历�和��目录
__history/
__recovery/
@@ -9,4 +13,5 @@ __recovery/
*.~dsk
*.cbpr
*.local
-*.rc
\ No newline at end of file
+*.rc
+*.dsv
\ No newline at end of file
diff --git a/AGENTS.md b/AGENTS.md
new file mode 100644
index 0000000..e284198
--- /dev/null
+++ b/AGENTS.md
@@ -0,0 +1,237 @@
+# AGENTS.md
+
+Windows-only codebase. Embarcadero **RAD Studio 13.2 (ProjectVersion 20.5), VCL, C++ personality**. No test framework, no linter, no CI. This `AGENTS.md` lives inside the `RBmaster/` subdirectory — all paths below are relative to it, and shared directories (`Global/`, `Upgrade/`, `CEF4Delphi/`, `res/`, `Deploy/`) are one level up (`..\Global\` etc.).
+
+## Encoding — UTF-8, keep it that way
+
+**All C++ sources, headers, `.dfm`s and `.rc`s in `RBmaster/`, `..\Global/`, `..\Upgrade/` and `..\res/` are UTF-8.** This was converted from GBK/CP936 (`..\ToUTF8.py`, pre-conversion backups in `..\backup_before_utf8\`). Verified: 0 of 94 source files fail a strict UTF-8 decode.
+
+- **Write UTF-8. Never write GBK/CP936.** Re-encoding a file back to CP936 silently corrupts every Chinese comment and literal (`L"红�大师"` is RBmaster's `APPNAME`, at `..\Global\GlobalUnit.h:193`).
+- **BOM is mixed and that is fine.** 51 of 94 files start with a UTF-8 BOM (most `.cpp`); 43 do not (mostly ASCII-only `.h` / `.dfm` / `.rc`). Don't "normalize" this — just match whatever the file you are editing already does, and never let a single file end up half-and-half.
+- Comments and user-facing strings are **Simplified Chinese**. Keep it that way.
+- `..\Upgrade\` already committed its conversion (`bd3861f convert utf8`). The RBmaster-side conversion plus `AGENTS.md` and `opencode.json` were **staged but not committed** at the time of writing — so `git diff` will show whole-file rewrites until that commit lands. Expect it; don't try to "fix" it by reverting.
+- `AGENTS.md` itself and `opencode.json` are UTF-8 **without** BOM.
+
+There is **no working C++ LSP** for this repo (no `compile_commands.json`, no C++ toolchain aware of the VCL include paths). Editor diagnostics report hundreds of bogus errors — `vcl.h file not found`, `Unknown type name 'String'`, `Unknown type name 'TObject'`. **Ignore them.** Trust the C++Builder IDE or a real `msbuild` run instead.
+
+## Agent tooling constraints
+
+`opencode.json` (project root) sets:
+
+```json
+"permission": {
+ "external_directory": { "*": "ask" },
+ "bash": { "*": "allow" }
+}
+```
+
+- **`bash: allow`** — shell commands run without a prompt. This is the project default and it is **committed**, so it applies to everyone on the team, not just you.
+- **`external_directory: ask`** — anything outside `RBmaster/` still needs a prompt: `..\Global\`, `..\Upgrade\`, `..\res\`, `..\CEF4Delphi\`, `..\Baccarats.groupproj`. This covers both the file tools (`read`, `grep`, `edit`, `write`) and shell paths — a `bash` command that touches `..\` will be gated by this rule, **not** by the bash rule. Opening bash does not buy you access outside the repo.
+- Consequence: before planning an edit that crosses the boundary, expect one prompt per such command. Batch them. If a shared contract genuinely cannot be edited, say so rather than silently changing only the RBmaster half.
+
+## This is ONE codebase, MANY products
+
+`..\Global\GlobalUnit.h:54-348` is a `#if defined(_PRODUCT_)` chain. The active product sets `APPNAME`, `APPABBR`, `SOFTWARE_ID`, `SORTWARE_VER`, `SINGLE_INSTANCE`, `GLOBAL_VAR_FILE`. ~20 products share this source (`_RBM_` = 红�大师, id 23, `GlobalUnit.h:193-195`; `_RBMabc_` id 24, `_ABG_` id 18, `_SPTHDG_` id 13, …). Most branches are commented out.
+
+- Active product is selected by a **preprocessor define**, currently `_RBM_` — set in `RBmaster.cbproj:80` (`_RBM_;$(Defines)`), not in source.
+- To change product: edit the `.cbproj` ``, **not** `GlobalUnit.h`.
+- `GLOBAL_VAR_FILE` (`glbvrf.cnf` for `_RBM_`, `GlobalUnit.h:347`) is the server-list file — it is the **4th arg to AppUpgrade**, not an app-local config.
+
+Do not "clean up" the commented-out product blocks; they are the product matrix.
+
+## Layout & ownership
+
+| Path (relative to cwd=`RBmaster/`) | What |
+|---|---|
+| `.` (this dir) | **Main program.** Own repo. `RBmaster.exe` |
+| `..\Upgrade\` | **Auto-updater**, separate repo. `AppUpgrade.exe` |
+| `..\Global\` | Shared code, compiled into RBmaster only. `TBaseThread`/`TBaseWebThread`, `CSema`, `HttpThread` (WinINet), `CommonV8Handler` (CEF V8 bridge), `SHA2`, `paramcodec`. **Not a separate build target** |
+| `..\CEF4Delphi\` | Vendored Chromium Embedded Framework. Live for RBmaster, dead for Upgrade |
+| `..\res\` | Icons/bitmaps/wav (`AppIcon.ico`, `rnb.psd`, `snd1-6.wav`, …); `..\res\RBmaster.Artwork\` is RAD Studio deployment artwork |
+
+`Global/` has no project file — its 7 `.cpp` files (`BaseThread`, `CommonV8Handler`, `GlobalUnit`, `HttpThread`, `ResourceHandler`, `SHA2`, `SimpleMutex`) are listed as `..\Global\*.cpp` entries inside `RBmaster.cbproj`, and all 7 are present there. **Adding a new file to `Global/` requires a manual `` edit to the cbproj.** Search paths are `..\Global\;` and `..\CEF4Delphi\$(Platform)\hpps`.
+
+## Git — two repos, not three
+
+`RBmaster/` is a git repo; `..\Upgrade\` is its own. Tree root (`..\Baccarats.groupproj`, `..\Deploy\`) is **not** under version control and has no shared history between the two repos.
+
+- `RBmaster/` → `ssh://git@gitea/rnb/winapp.git`, branch `main` (81 tracked files)
+- `..\Upgrade\` → `ssh://git@gitea/BCB_common/AppUpgrade.git`, branch `main`
+
+Commit only from inside the respective subdirectory.
+
+Commit messages are mixed Chinese/English, often just a version string (e.g. `4.0.7版`). Match that style.
+
+### `.gitignore` — the rules that will surprise you
+
+Verbatim, `RBmaster/.gitignore`:
+
+```
+**/Win32/
+.scratch/
+docs/
+__history/
+__recovery/
+*.~dsk
+*.cbpr
+*.local
+*.dsv
+*.rc
+```
+
+- **`docs/` is gitignored.** `docs/agents/*.md` exists on disk but is **not committed**. Skills that reference it will read a file that no other checkout has.
+- **`.scratch/` is gitignored** — the local-markdown issue tracker is per-developer by design.
+- **`*.rc` is gitignored**, so `RBmaster_resources.rc` is **untracked**. It compiles but will never be committed unless the rule is changed.
+- `*.local` and `*.dsv` cover `RBmaster.cbproj.local` and `RBmaster.dsv` — IDE state, correctly ignored.
+- `AGENTS.md` and `opencode.json` **are** tracked.
+- A stray `master` branch exists locally alongside `main` and points at the initial commit. Don't commit to it.
+
+## Build
+
+Both projects output to `..\Deploy\$(Platform)\$(Config)\` (i.e. `..\Deploy\Win32\Debug\`). That dir is gitignored/absent.
+
+```powershell
+# Per project (rsvars.bat / $(BDS) must be on PATH first)
+msbuild RBmaster.cbproj /t:Build /p:Config=Debug /p:Platform=Win32
+msbuild ..\Upgrade\AppUpgrade.cbproj /t:Build /p:Config=Debug /p:Platform=Win32
+
+# Both at once — `Baccarats.groupproj` (tree-root; not reachable when cwd=RBmaster/ — run the two projects individually instead)
+msbuild ..\Baccarats.groupproj /t:Build /p:Config=Debug /p:Platform=Win32
+```
+
+Platforms: `Win32`, `Win64`, `Win64x` (all defined in the cbproj; `Win32` is the enabled one). Configs: `Debug`, `Release`. Default is `Debug`.
+
+`..\Baccarats.groupproj` references only `RBmaster\RBmaster.cbproj` and `Upgrade\AppUpgrade.cbproj`, and its `Import` of `$(BDS)\Bin\CodeGear.Group.Targets` is guarded by `Condition="Exists(...)"` — build the two projects individually if the group build silently does nothing.
+
+Both projects set `AppExecutionLevel = requireAdministrator` in **every** config. The app will UAC-elevate during IDE-run and debugging.
+
+RBmaster links `CEF4DelphiVCLRTL.lib` and `TPNGButton.lib` on top of the standard VCL set (`rtl`, `vcl`, `fmx`, `vclimg`, `xmlrtl`, `vclactnband`, `vclx`). `Upgrade` links only `rtl.lib;vcl.lib`.
+
+## Runtime CLI switches (RBmaster)
+
+Parsed at `RBmaster.cpp:229-235`, lowercased before comparison:
+
+- `-d` → `g_bBacData = true`, creates the `data\` log directory
+- `-testing` → `g_bTesting = true`, enables CEF logging (`RBmaster.cpp:92`), and skips the single-instance window-property registration (`RBmaster.cpp:294`, `:302`). It also simulates bet/account feedback across `BacABThread.cpp`, `BacDPThread.cpp:382`, `SettingFormUnit.cpp:263` (`m_cbSimAcc`) — a `-testing` run exercises a different code path than production.
+
+Without `-testing` the app registers a window property (`APPABBR` = `rbmaster`, `RBmaster.cpp:295`) used by `IsRestart()` to detect an already-running instance and forward `UM_RESTORE`.
+
+## Startup flow (`RBmaster.cpp`)
+
+`_tWinMain` → `Startup()` (line 224):
+
+1. `IsRestart()` (129-159) — finds an existing instance; if this process is that instance's child, it only runs `InitCef()` and exits (line 149). CEF child processes bootstrap here.
+2. `InitCef()` (84) — configures `TCefApplication` before any form exists. `NoSandbox=true`, `IgnoreCertificateErrors=true`, `DisableWebSecurity=true`, `SingleProcess=false`, `SitePerProcess=true`.
+3. `InitUserPath()` (205-219) — `ForceDirectories` for `user\`, and for `data\` only when `-d` was passed.
+4. `Application->CreateForm(TMainForm)` (251).
+5. **`TMainForm::Tag` is the control-flow channel** (244-291). It is set by the main form during construction to steer startup:
+ - `0` normal run · `-1` åŠ è½½åº”ç”¨æ¨¡å�—失败 · `-3` 连接æœ�务器失败 · `-4` 软件已å�œæ¢è¿�行 · `-5` CEF åˆ�始化失败
+ - `2` update required → message box, `mode = 2` → `StartUpgrade(2)` (`show`)
+ - `4` new version available → yes/no prompt → `mode = 2` (`show`) or `mode = 0`
+ - any other positive value is taken as the upgrade `mode` verbatim and passed to `StartUpgrade(mode)` (289-290)
+ - `bRun = mode<=1` (287) — `mode` 0/1 keep running, `mode` 2/3 hand off to the updater and exit.
+
+`RBmasterMain.cpp` is the main form, not the entrypoint. The entrypoint unit is `RBmaster.cpp` (`USEFORM("RBmasterMain.cpp", MainForm)` at line 222).
+
+## The RBmaster ↔ Upgrade contract
+
+`RBmaster.cpp:164-201` `StartUpgrade(mode)` duplicates the process token and `CreateProcessAsUser`s the updater. **RBmaster does not wait for it** — the updater must kill RBmaster itself.
+
+Command line actually built at `RBmaster.cpp:186-196`:
+
+```
+\AppUpgrade.exe {move|show|hide}
+```
+
+The keyword is chosen by RBmaster's `mode` (187-192): `mode==3` → `move`, `mode==2` → `show`, everything else → `hide`. **RBmaster never sends `MD5`.**
+
+Verified mapping in `AppUpgrade.cpp:44-75` — **the first arg is a keyword, and its internal `mode` is inverted vs. the keyword's name**:
+
+| Arg 1 | Internal `mode` | Form shown? |
+|---|---|---|
+| `MD5` | 1 | yes — compute + write `filemd5.lst` only |
+| `show` | 0 | **yes** — download with visible UI |
+| `hide` | 2 | **no** — headless thread |
+| `move` | 3 | no — `Sleep(1000)` then replace files |
+| anything else | 0 | yes |
+
+Gotcha: `AppUpgrade.exe` with **no args returns immediately and does nothing** (`if( ParamStr(1).IsEmpty() ){ return 0; }`, ~line 44). `MD5` is the only mode that ignores `ParamStr(2..4)`.
+
+RBmaster's own `mode` is a *different* numbering from AppUpgrade's internal `mode` — the translation happens in the keyword, not the number. Don't line them up.
+
+Upstream API: `http:///Api/getUpgradeUrl?sid=`, server list from `srv=` lines in the `GVF` binary file (`GLOBAL_VAR_VERSION 0x03`, header `GVF` + version WORD, `tGVFHeader`). User-Agent is hardcoded `RookIE/1.0`.
+
+Downloads land in `\upgrade\`; `filemd5.lst` (`MD5_FILE_NAME`, `UpgradeThread.cpp:18`) is written by `TUpgradeThread::MakeMD5File()` (`UpgradeThread.cpp:318`) as tab-separated `filenamemd5`. No code signing, no rollback — MD5 from the same server is the only integrity check.
+
+## Threading contract
+
+Workers post `UM_*` custom messages to the main form; the form handlers live in `RBmasterMain.cpp` (e.g. `UM_ONJSMessage` dispatch at `RBmasterMain.cpp:1752`).
+
+**There are three thread base classes — "everything derives from `TBaseThread`" is wrong:**
+
+| Base | Declared | Users |
+|---|---|---|
+| `TBaseThread : public TThread` | `..\Global\BaseThread.h:10` | `TAutoBetThread`, `TDataParseThread`, `TJSHandleThread` |
+| `TBaseWebThread : public TThread` | `..\Global\HttpThread.h:107` | `TAsynHttpThread` (:122), `TAsynUrlThread` (:142), `TVeloThread` (:158) |
+| `TThread` | — | `TUpgradeThread` (`..\Upgrade\UpgradeThread.h:22`), the updater's own worker |
+
+Known workers:
+
+| Unit | Class | Role |
+|---|---|---|
+| `BacABThread.h:13` | `TAutoBetThread : TBaseThread` | places bets by executing injected CEF JavaScript |
+| `BacDPThread.h:12` | `TDataParseThread : TBaseThread` | parses pipe-delimited game feed, writes `%Y%m%d.txt` logs, posts `UM_ADDTABLE`/`UM_STATUS`/`UM_WEBDEAD` |
+| `BacJSThread.h:19` | `TJSHandleThread : TBaseThread` | CEF↔C++ bridge round-trips (`UM_JSHANDLED`) |
+| `..\Global\HttpThread.h:122` | `TAsynHttpThread : TBaseWebThread` | WinINet login/report/logout, posts `UM_HTTPRETURN` |
+| `..\Global\HttpThread.h:142` | `TAsynUrlThread : TBaseWebThread` | WinINet URL fetch |
+| `..\Global\HttpThread.h:158` | `TVeloThread : TBaseWebThread` | server-list failover — **defined in `..\Global\HttpThread.h`, not in `RBmasterMain.cpp`**; instantiated from `RBmasterMain.cpp:566`, `:3300` |
+
+**The `UM_*` ids are a shared, sparse enum defined once in `..\Global\GlobalUnit.h:9-51`** (`WM_USER+0x1000` = `UM_VCCOMPLETE` upward). Adding a message means editing `GlobalUnit.h`, not a local header.
+
+The updater uses a *different* set in `..\Upgrade\UpgradeThread.h`, and the ranges **do collide**:
+
+| Updater | Value | RBmaster collision |
+|---|---|---|
+| `UM_SHOWTEXT` | `WM_USER+0x1000` | = `UM_VCCOMPLETE` |
+| `UM_PROGRESS` | `WM_USER+0x1001` | = `UM_WEBLOADED` |
+| `UM_COMPLETE` | `WM_USER+0x1003` | = `UM_IMAGELODED` |
+
+They are harmless only because each message is handled inside its own process. Never unify the two headers by accident, and never assume a `WM_USER+0x100N` value is unambiguous across the two repos.
+
+`HookJS.cpp` (`MyGameLink`, line 35) hooks `onSocketData` inside the page and pushes events back as `cefApp.OnJSMessage('|')`. `` is a **numeric message type, not a literal `N`** — observed codes are `0`, `3`, `4`, `5`, `7`, `9` (e.g. `'0|-2'`, `'3|'+vid+'|||12|'`, `'9|'+tableId+'|'+roundId+'|'+card[0]+'|'+card[1]`). C++ parses the leading integer in `RBmasterMain.cpp:1752`. Code `0` carries status/result codes (`0`, `-2`, `-3`) rather than data.
+
+## Persistence
+
+Files land **next to the exe**, not in AppData — so the install directory must be writable (it requires admin).
+
+- `rbmvrf` — user vars / policies, `USER_VAR_FILE "\t\trbmvrf"` (`RBmasterMain.cpp:28`)
+- `rbmgmf` — game + bet settings, `USER_GAME_FILE "\t\trbmgmf"` (`RBmasterMain.cpp:33`)
+- `glbvrf.cnf` — `GLOBAL_VAR_FILE` server list
+- `user\` — `ForceDirectories` at `RBmaster.cpp:210`
+- `data\` — `ForceDirectories` at `RBmaster.cpp:216`, only with `-d`
+- `cache\` — handed to CEF as the cache path in `InitCef()`; CEF creates it, the app never does
+- `upgrade\`, `filemd5.lst` — updater
+
+Saved in `FormClose` / `FileUserVars` / `FileGame`. `rbmvrf`/`rbmgmf` are custom binary (`TUVFHEADER` / `TUGFHEADER` + newline-delimited records), not INI — editing by hand will corrupt them.
+
+## Gotchas
+
+- CEF's `WindowlessRenderingEnabled` + `SingleProcess=false` means a **second process** is expected; don't debug by assuming one process tree.
+- `..\Global\GlobalUnit.h:359-360` `DPIX`/`DPIY` scale everything through `g_xDpi`/`g_yDpi` — new UI code must not hardcode pixel positions.
+- The default server `23.236.66.46:88` is a **commented-out** `#define DEFAULT_SERVER` in `..\Upgrade\UpgradeThread.cpp`; it is not live. Other hardcoded hosts/ports/URLs live in that file and in `TableIPFormUnit.cpp`.
+- `RBmasterMain.dfm` uses inherited VCL style-form children; the IDE strips redundant `StyleElements` lines on save, producing large no-op-looking diffs. That's tooling noise, not a behavioral change.
+- `opencode.json` blocks the file tools from `..\` — see **Agent tooling constraints** above before planning any cross-boundary change.
+
+## Agent skills
+
+### Issue tracker
+
+Issues are local markdown under `.scratch/` — no CLI, no auth, no network. **`.scratch/` is gitignored**, so the tracker is per-developer and never shared. See `docs/agents/issue-tracker.md`.
+
+### Triage labels
+
+The five canonical roles written to each ticket's `Status:` line. See `docs/agents/triage-labels.md`.
+
+### Domain docs
+
+Single-context: `CONTEXT.md` + `docs/adr/` at this root. See `docs/agents/domain.md`. **Neither exists yet** — `CONTEXT.md` is absent and `docs/adr/` is empty; `docs/agents/domain.md:11` says to proceed silently in that case. Note `docs/agents/domain.md:35` claims these are committed with RBmaster, and `:37` claims the sources are GBK — **both are stale**, ignore those two lines.
diff --git a/ActCodeFormUnit.cpp b/ActCodeFormUnit.cpp
index 0a09ed5..de14d2e 100644
--- a/ActCodeFormUnit.cpp
+++ b/ActCodeFormUnit.cpp
@@ -1,4 +1,4 @@
-//---------------------------------------------------------------------------
+//---------------------------------------------------------------------------
#include
#pragma hdrstop
@@ -24,29 +24,29 @@ void __fastcall TActCodeForm::FormCreate(TObject *Sender)
if(m_sCode.Length()){
if(!m_tExpire)
- m_lbTips->Caption = "ÊÚȨÑé֤ʧ°Ü£¬ÇëÖØÐÂÑéÖ¤";
+ m_lbTips->Caption = "授�验�失败,请�新验�";
else if(m_tExpire < time(NULL))
- m_lbTips->Caption = "ÊÚȨÂëÒѹýÆÚ£¬ÇëÑÓÆÚ»ò¸ü»»";
+ m_lbTips->Caption = "授æ�ƒç �已过期,请延期或更æ�¢";
else{
tm* dt = localtime((long*)&m_tExpire);
- m_lbTips->Caption = Format(String("ÓÐЧÆÚÖÁ£º%.4d-%.2d-%.2d %.2d:%.2d"),
+ m_lbTips->Caption = Format(String("有效期至:%.4d-%.2d-%.2d %.2d:%.2d"),
ARRAYOFCONST((dt->tm_year+1900, dt->tm_mon+1, dt->tm_mday, dt->tm_hour, dt->tm_min)));
}
m_btnReset->Enabled = true;
}
else
- m_lbTips->Caption = "ÇëÊäÈëÊÚȨÂë²¢ÑéÖ¤";
+ m_lbTips->Caption = "请输入授æ�ƒç �并验è¯�";
}
//---------------------------------------------------------------------------
void __fastcall TActCodeForm::OnCodeChange(TObject *Sender)
{
- m_btnOk->Caption = m_leActCode->Text.Length()>0 ? "ÑéÖ¤" : "¹Ø±Õ";
+ m_btnOk->Caption = m_leActCode->Text.Length()>0 ? "验è¯�" : "å…³é—";
m_btnReset->Enabled = m_leActCode->Text.Length()>0;
if(m_tExpire>0){
m_tExpire = 0;
- m_lbTips->Caption = "ÇëÊäÈëÊÚȨÂë²¢ÑéÖ¤";
+ m_lbTips->Caption = "请输入授æ�ƒç �并验è¯�";
}
}
//---------------------------------------------------------------------------
@@ -65,21 +65,21 @@ void __fastcall TActCodeForm::OnCodeKeyPress(TObject *Sender, System::WideChar &
//---------------------------------------------------------------------------
void __fastcall TActCodeForm::OnOkClick(TObject *Sender)
{
- if(m_btnOk->Caption=="¹Ø±Õ"){
+ if(m_btnOk->Caption=="å…³é—"){
ModalResult = mrCancel;
return;
}
String code = m_leActCode->Text;
if(code.Length()<9 || code.Length()>10){
- MessageBox(Handle, L"ÎÞЧµÄÊÚȨÂë", L"ÑéÖ¤", MB_ICONERROR | MB_OK);
+ MessageBox(Handle, L"æ— æ•ˆçš„æŽˆæ�ƒç �", L"验è¯�", MB_ICONERROR | MB_OK);
return;
}
for(int i=1; i<=code.Length(); i++){
char Key = code[i];
if((Key>'9' || Key<'0') && (Key<'A' || Key>'F')){
- MessageBox(Handle, L"ÎÞЧµÄÊÚȨÂë", L"ÑéÖ¤", MB_ICONERROR | MB_OK);
+ MessageBox(Handle, L"æ— æ•ˆçš„æŽˆæ�ƒç �", L"验è¯�", MB_ICONERROR | MB_OK);
return;
}
}
@@ -97,21 +97,21 @@ void __fastcall TActCodeForm::UMUserConfirm(TMessage &msg)
Enabled = true;
if(msg.WParam==102)
- m_lbTips->Caption = "ÎÞЧµÄÊÚȨÂ룬ÇëÖØÐÂÊäÈë";
+ m_lbTips->Caption = "æ— æ•ˆçš„æŽˆæ�ƒç �,请é‡�新输入";
else if(msg.WParam==106)
- m_lbTips->Caption = "¸ÃÊÚȨÂëÕýÔÚÆäËüÉ豸ÉÏʹÓÃ";
+ m_lbTips->Caption = "该授æ�ƒç �æ£åœ¨å…¶å®ƒè®¾å¤‡ä¸Šä½¿ç”¨";
else if(msg.WParam>0)
- m_lbTips->Caption = "ÊÚȨÑéÖ¤Òì³££¬ÇëÉÔºóÖØÊÔ";
+ m_lbTips->Caption = "授�验�异常,请���试";
else{
m_tExpire = (int)msg.LParam;
if(m_tExpire < time(NULL))
- m_lbTips->Caption = "ÊÚȨÂëÒѹýÆÚ£¬ÇëÑÓÆÚ»ò¸ü»»";
+ m_lbTips->Caption = "授æ�ƒç �已过期,请延期或更æ�¢";
else{
tm* dt = localtime((long*)&m_tExpire);
- m_lbTips->Caption = Format(String("ÓÐЧÆÚÖÁ£º%.4d-%.2d-%.2d %.2d:%.2d"),
+ m_lbTips->Caption = Format(String("有效期至:%.4d-%.2d-%.2d %.2d:%.2d"),
ARRAYOFCONST((dt->tm_year+1900, dt->tm_mon+1, dt->tm_mday, dt->tm_hour, dt->tm_min)));
- m_btnOk->Caption = "¹Ø±Õ";
+ m_btnOk->Caption = "å…³é—";
}
}
}
@@ -119,9 +119,9 @@ void __fastcall TActCodeForm::UMUserConfirm(TMessage &msg)
void __fastcall TActCodeForm::OnResetClick(TObject *Sender)
{
m_leActCode->Text = "";
- m_lbTips->Caption = "ÇëÊäÈëÊÚȨÂë²¢ÑéÖ¤";
+ m_lbTips->Caption = "请输入授æ�ƒç �并验è¯�";
PostMessage(Application->MainFormHandle, UM_USERCONFIRM, UR_RESET, 0 );
- m_btnOk->Caption = "¹Ø±Õ";
+ m_btnOk->Caption = "å…³é—";
}
//---------------------------------------------------------------------------
diff --git a/BacABThread.cpp b/BacABThread.cpp
index f0bc138..3ab8c93 100644
--- a/BacABThread.cpp
+++ b/BacABThread.cpp
@@ -1,4 +1,4 @@
-//---------------------------------------------------------------------------
+//---------------------------------------------------------------------------
#include
#include
#include
@@ -25,14 +25,14 @@ void __fastcall TAutoBetThread::Execute()
{
TGame *pGame = g_aGames.GetGame(m_iGame);
if(pGame){
- for(int i=0; iaManBets.size(); i++){ //ÓÅÏÈ´¦ÀíÊÖ¹¤ÏÂ×¢
+ for(int i=0; iaManBets.size(); i++){ //优先处�手工下注
TManBet& rMB = pGame->aManBets[i];
if(rMB.state==ST_INIT){
rMB.state = ST_BETTING;
int ret = RealBet(pGame, rMB.chips);
if(!Terminated && ret!=0)
pGame->BetResp(ret, rMB.chips);
- goto EXIT; //Ò»¸öÏß³ÌÖ»´¦ÀíÒ»¸öÏÂ×¢
+ goto EXIT; //一个线程�处�一个下注
}
}
@@ -58,7 +58,7 @@ void __fastcall TAutoBetThread::Execute()
}
- if( pGame->nChip>=0 && pGame->iState==ST_BETTING && pGame->CanBet() ){//ÔÙ´ÎÈ·ÈÏÏÂע״̬
+ if( pGame->nChip>=0 && pGame->iState==ST_BETTING && pGame->CanBet() ){//�次确认下注状�
if(g_bSimulate){
pGame->bReal = false;
@@ -113,7 +113,7 @@ int __fastcall TAutoBetThread::RealBet(TGame* pG, int chips[])
strJS += "tab.addChipByPlayType(" + IntToStr(pG->iBet) + "," + IntToStr(pG->nChip) + ");";
}
- if(g_bTesting){ //²âÊÔʱģÄâÏÂ×¢·´À¡
+ if(g_bTesting){ //测试时模拟下注�馈
int chip[3] = {0};
if(chips)
memcpy(chip, chips, sizeof(chip));
@@ -203,7 +203,7 @@ int __fastcall TAutoBetThread::RealBet(TGame* pG, int chips[])
"const td = gh ? gh.getTableDO(tid) : null;"
"const gst = td ? td.getCurGameStatusText(td.getGameRoundId()) : 'INVALID';"
"if(gst=='BETTING'){";
- if(g_bTesting){ //²âÊÔʱģÄâÏÂ×¢·´À¡
+ if(g_bTesting){ //测试时模拟下注�馈
int chip[3] = {0};
if(chips)
memcpy(chip, chips, sizeof(chip));
@@ -247,7 +247,7 @@ int __fastcall TAutoBetThread::RealBet(TGame* pG, int chips[])
"let res = 0;";
- if(!g_bTesting){// || g_fBalance>0){ //µ¥¶À²âÊÔpushChip
+ if(!g_bTesting){// || g_fBalance>0){ //�独测试pushChip
if(chips){
for(int i=0; i<3; i++){
if(chips[i]>0){
@@ -277,7 +277,7 @@ int __fastcall TAutoBetThread::RealBet(TGame* pG, int chips[])
}
}
- if(g_bTesting){ //²âÊÔʱģÄâÏÂ×¢·´À¡
+ if(g_bTesting){ //测试时模拟下注�馈
int chip[3] = {0};
if(chips)
memcpy(chip, chips, sizeof(chip));
@@ -301,7 +301,7 @@ int __fastcall TAutoBetThread::RealBet(TGame* pG, int chips[])
"return;"
"}"
"}"
- "cefApp.ReturnJQValue('');" //·ÇÕý³£×´Ì¬·µ»Ø
+ "cefApp.ReturnJQValue('');" //é�žæ£å¸¸çжæ€�返回
"})()";
}
@@ -323,10 +323,10 @@ int __fastcall TAutoBetThread::RealBet(TGame* pG, int chips[])
else
DebugPrint("GetJQValue return: %s", strlst ? "''" : "null");
- if( ret>=0 || !Halt(1000) ) //µÃµ½½á¹û »ò Óû§cancelÖÐ;Í˳ö
+ if( ret>=0 || !Halt(1000) ) //得到结果 或 用户cancelä¸é€”退出
break;
- if(chips==NULL && g_bSimulate){ //¸Ä±äÁËģʽ
+ if(chips==NULL && g_bSimulate){ //改�了模�
if(g_settings.bSimAccOn && g_settings.bNoBetLow && g_settings.fSimAcc < pG->nChip){
pG->BetResp(26, NULL);
}
@@ -343,7 +343,7 @@ int __fastcall TAutoBetThread::RealBet(TGame* pG, int chips[])
#ifdef _DEBUG
if( !Terminated && ret<0 )
- DebugPrint("%s ÏÂ×¢³¬Ê±", ((AnsiString)pG->vid).c_str());
+ DebugPrint("%s 下注超时", ((AnsiString)pG->vid).c_str());
#endif
return ret<0 ? 25 : ret;
diff --git a/BacDPThread.cpp b/BacDPThread.cpp
index 3581448..b6d8d70 100644
--- a/BacDPThread.cpp
+++ b/BacDPThread.cpp
@@ -1,4 +1,4 @@
-//---------------------------------------------------------------------------
+//---------------------------------------------------------------------------
#include
#include
#include
@@ -13,7 +13,7 @@
//---------------------------------------------------------------------------
#pragma package(smart_init)
-//Èí¼þ¹ýÆÚʱ¼ä
+//软件过期时间
#define TM_ABORT 125000
void __fastcall WriteData( char* msg )
{
@@ -27,7 +27,7 @@ void __fastcall WriteData( char* msg )
// if(!FileExists(szDataFile)){
// fp = fopen(szDataFile, "w");
// if(fp)
-// fprintf( fp, "ʱ¼ä,̨×À,ÊÖÊý,½á¹û\n" );
+// fprintf( fp, "时间,�桌,手数,结果\n" );
// }
// else{
// fp = fopen(szDataFile, "a");
@@ -36,7 +36,7 @@ void __fastcall WriteData( char* msg )
if(!fp){
fp = fopen(szDataFile, "w");
if(fp)
- fprintf( fp, "ʱ¼ä,̨×À,ÊÖÊý,½á¹û\n" );
+ fprintf( fp, "时间,�桌,手数,结果\n" );
}
else
fseek(fp, 0, SEEK_END);
@@ -47,7 +47,7 @@ void __fastcall WriteData( char* msg )
}
else{
g_bBacData = false;
- ShowMessage("µ¼³öÊý¾Ýʧ°Ü! errno=" + IntToStr((int)GetLastError()));
+ ShowMessage("导出数�失败! errno=" + IntToStr((int)GetLastError()));
}
}
//---------------------------------------------------------------------------
@@ -59,7 +59,7 @@ __fastcall TDataParseThread::TDataParseThread()
m_hDataEvent = CreateEvent(NULL, FALSE, TRUE, NULL);
// m_tmGST = 0;
-// m_tmExpire = GetCompileTime() + 30 * 86400; //±àÒëʱ¼äºó30Ìì¹ýÆÚ
+// m_tmExpire = GetCompileTime() + 30 * 86400; //编译时间�30天过期
}
//---------------------------------------------------------------------------
@@ -89,7 +89,7 @@ void __fastcall TDataParseThread::ParseData(String sData)
void __fastcall TDataParseThread::Execute()
{
- SetThreadExecutionState(ES_CONTINUOUS | ES_SYSTEM_REQUIRED); //¹Ø±ÕϵͳÐÝÃß
+ SetThreadExecutionState(ES_CONTINUOUS | ES_SYSTEM_REQUIRED); //å…³é—系统休çœ
while( !Terminated ){
while(m_aData.size()>0){
@@ -111,17 +111,17 @@ void __fastcall TDataParseThread::Execute()
}
int iType = arr[0].ToInt();
- if( iType==0 ){ //Á¬½ÓÒì³£¶Ï¿ª
- DebugPrint("Á¬½ÓÒì³£¶Ï¿ª");
+ if( iType==0 ){ //连接异常æ–å¼€
+ DebugPrint("连接异常æ–å¼€");
int reason = arr[1].ToInt();
PostMessage( Application->MainFormHandle, UM_WEBDEAD, reason, 0 );
}
- else if( iType==1 ){ //³õʼ»¯ËùÓÐ̨×À
+ else if( iType==1 ){ //�始化所有�桌
DebugPrint("!!! init all tables");
g_aGames.Init(arr[1]);
PostMessage( Application->MainFormHandle, UM_ADDTABLE, 0, 0 );
}
- else if( iType==2 ){ //̨×ÀRoadmap
+ else if( iType==2 ){ //�桌Roadmap
if(!g_aGames.empty() && arr[1].Length()){
int iG = Vid2Gid(arr[1]);
TGame* pGame = NULL;
@@ -177,16 +177,16 @@ void __fastcall TDataParseThread::Execute()
}
bool bUpdateRoad = true;
- if(pGame->gmstatus==12){ //ά»¤Ì¨×À
- if(oldSize && !newSize) //оÖ
- pGame->AutoBetOn(); //̨×Àά»¤ÖÐÎÞ·¨Õý³£´¦Àíshuffle״̬£¬µ÷ÓøýӿÚÏÔʾºÍ´¦ÀíоÖ
+ if(pGame->gmstatus==12){ //维护�桌
+ if(oldSize && !newSize) //æ–°å±€
+ pGame->AutoBetOn(); //å�°æ¡Œç»´æŠ¤ä¸æ— 法æ£å¸¸å¤„ç�†shuffle状æ€�,调用该接å�£æ˜¾ç¤ºå’Œå¤„ç�†æ–°å±€
}
- else{ //Õý³£Ì¨×À
- pGame->gmstatus = 0; //ÉèÖýáËã״̬£¬±ÜÃâÖØ¸´¼ÆËã
+ else{ //æ£å¸¸å�°æ¡Œ
+ pGame->gmstatus = 0; //设置结算状�,����计算
// pGame->gmcode = "";
if(oldSizeHandleResult(oldSize+1==newSize ? 0 : 1); //0=Õý³£´¦Àí 1=Òì³£´¦Àí
+ pGame->HandleResult(oldSize+1==newSize ? 0 : 1); //0=æ£å¸¸å¤„ç�† 1=异常处ç�†
bUpdateRoad = false;
}
}
@@ -197,7 +197,7 @@ void __fastcall TDataParseThread::Execute()
}
}
}
- else if( iType==3 ){ //̨×À״̬
+ else if( iType==3 ){ //�桌状�
// 3 | vid | gmcode | wintype(timeout)
if(!g_aGames.empty() && arr.Length>=4){
int iG = Vid2Gid(arr[1]);
@@ -239,7 +239,7 @@ void __fastcall TDataParseThread::Execute()
pGame->AutoBetOff();
}
- if(status==0 && !bNewCode){ //½áËã
+ if(status==0 && !bNewCode){ //结算
#ifdef _DEBUG
if(pGame->gmstatus!=2 && (g_iPlatform!=PF_AB || pGame->gmstatus!=11))
DebugPrint("!!! %s status %d -> %d",
@@ -249,7 +249,7 @@ void __fastcall TDataParseThread::Execute()
#endif
pGame->gmstatus = status;
- if(arr.Length>=8){ //DBÌØÊâ´¦Àí
+ if(arr.Length>=8){ //DB特殊处�
if(arr[6].Length()){
pGame->bcard = UnifyCard(arr[6]);
pGame->pcard = UnifyCard(arr[7]);
@@ -274,12 +274,12 @@ void __fastcall TDataParseThread::Execute()
char data[128];
sprintf(data, "%s,%d,%s",
((AnsiString)arr[g_iPlatform==PF_PA ? 1 : 2]).c_str(),
- pGame->aRes.size(), wt==1 ? "ׯ" : wt==2 ? "ÏÐ" : "ºÍ");
+ pGame->aRes.size(), wt==1 ? "庄" : wt==2 ? "闲" : "和");
WriteData( data );
}
}
}
- else if(status==1 && bNewStatus){// && pGame->gmstatus!=2){ //¿ªÊ¼ÏÂ×¢
+ else if(status==1 && bNewStatus){// && pGame->gmstatus!=2){ //开始下注
#ifdef _DEBUG
if(pGame->gmstatus!=0 && pGame->gmstatus<11)
DebugPrint("!!! %s status %d -> %d",
@@ -302,7 +302,7 @@ void __fastcall TDataParseThread::Execute()
: arr[5].ToInt();
pGame->AutoBetOn();
}
- else if(status==2 && !bNewCode){// && pGame->gmstatus==1 ){ //¿ªÅÆÖÐ
+ else if(status==2 && !bNewCode){// && pGame->gmstatus==1 ){ //开牌ä¸
#ifdef _DEBUG
if(pGame->gmstatus!=1)
DebugPrint("!!! %s status %d -> %d",
@@ -313,12 +313,12 @@ void __fastcall TDataParseThread::Execute()
pGame->gmstatus = status;
if(pGame->iState==ST_BETTED)
- pGame->timeout = -1; //¿ªÊ¼¼ÆË㳬ʱ
+ pGame->timeout = -1; //开始计算超时
pGame->bcard = pGame->pcard = "";
}
- else if((status==11 || status==12) && bNewStatus){ //Ï´ÅÆ/ά»¤
- if(pGame->iState==ST_BETTED || pGame->iState==ST_EXPIRED){ //³¬Ê±
+ else if((status==11 || status==12) && bNewStatus){ //洗牌/维护
+ if(pGame->iState==ST_BETTED || pGame->iState==ST_EXPIRED){ //è¶…æ—¶
DebugPrint("!!! %s status %d -> %d with betted",
((AnsiString)pGame->vid).c_str(),
// ((AnsiString)arr[1]).c_str(),
@@ -336,14 +336,14 @@ void __fastcall TDataParseThread::Execute()
char data[128];
sprintf(data, "%s,,%s",
((AnsiString)arr[g_iPlatform==PF_PA ? 1 : 2]).c_str(),
- "Ï´ÅÆ");
+ "洗牌");
WriteData( data );
}
}
else{
pGame->iState = ST_INIT;
#ifdef _DEBUG
- DebugPrint("!!! %s ̨×Àά»¤ÖÐ", ((AnsiString)pGame->vid).c_str());//, ((AnsiString)arr[1]).c_str());
+ DebugPrint("!!! %s å�°æ¡Œç»´æŠ¤ä¸", ((AnsiString)pGame->vid).c_str());//, ((AnsiString)arr[1]).c_str());
SendMessage( Application->MainFormHandle, UM_RESTORE, 0, 0 );
#endif
}
@@ -355,7 +355,7 @@ void __fastcall TDataParseThread::Execute()
}
}
}
- else if(iType==4){ //¶ą̀״̬
+ else if(iType==4){ //多�状�
//4 | e.payload.vid
DebugPrint("Enter HALL: %s", ((AnsiString)arr[1]).c_str());
@@ -375,7 +375,7 @@ void __fastcall TDataParseThread::Execute()
PostMessage(Application->MainFormHandle, UM_ENTER_TABLE, tab, 0);
}
- else if(iType==5){ //ÕË»§Óà¶î
+ else if(iType==5){ //账户余�
//5 | e.val
double amo;
if(TryStrToFloat(arr[1], amo)){
@@ -385,8 +385,8 @@ void __fastcall TDataParseThread::Execute()
}
}
}
- else if(iType==6){ //ÏÂ×¢·´À¡
- //6 | vid | retCode | gmcode | ׯ | ÏÐ | ƽ
+ else if(iType==6){ //下注�馈
+ //6 | vid | retCode | gmcode | 庄 | 闲 | 平
if(!g_aGames.empty() && arr[1].Length()){
int iG = Vid2Gid(arr[1]);
TGame* pGame = NULL;
@@ -401,17 +401,17 @@ void __fastcall TDataParseThread::Execute()
int retCode = arr[2].ToInt();
if(retCode!=0){
- if(g_iPlatform==PF_AB) //Å·²©´íÎóÂëת»»
- retCode = retCode==101 ? 10 //ÏÞºìµÍ
- : retCode==102 ? 11 //ÏÞºì¸ß
- : retCode==103 || retCode==100015 || retCode==6044 ? 25 //³¬Ê±
- : retCode==10101 || retCode==6035 || retCode==6042 ? 26 //Óà¶î²»×ã
+ if(g_iPlatform==PF_AB) //欧å�šé”™è¯¯ç �转æ�¢
+ retCode = retCode==101 ? 10 //�红低
+ : retCode==102 ? 11 //�红高
+ : retCode==103 || retCode==100015 || retCode==6044 ? 25 //è¶…æ—¶
+ : retCode==10101 || retCode==6035 || retCode==6042 ? 26 //余��足
: -1;
- else if(g_iPlatform==PF_DB) //¶à±¦´íÎóÂëת»»
- retCode = retCode==210010 ? 10 //ÏÞºìµÍ
- : retCode==220030 ? 11 //ÏÞºì¸ß
- : retCode==220004 || retCode==220006 || retCode==110041 ? 25 //³¬Ê±
- : retCode==10469 || retCode==20126 ? 26 //Óà¶î²»×ã
+ else if(g_iPlatform==PF_DB) //多å®�错误ç �转æ�¢
+ retCode = retCode==210010 ? 10 //�红低
+ : retCode==220030 ? 11 //�红高
+ : retCode==220004 || retCode==220006 || retCode==110041 ? 25 //è¶…æ—¶
+ : retCode==10469 || retCode==20126 ? 26 //余��足
: retCode;
}
@@ -419,7 +419,7 @@ void __fastcall TDataParseThread::Execute()
}
}
}
- else if(iType==7){ //ÏÞ¶î
+ else if(iType==7){ //��
//7 | min | max
int minBet, maxBet;
if(TryStrToInt(arr[1], minBet) && TryStrToInt(arr[2], maxBet)){
@@ -431,13 +431,13 @@ void __fastcall TDataParseThread::Execute()
}
}
}
- else if(iType==8){ //µ¹¼ÆÊ±
- //8 | countdownList ABGרÓÃ
+ else if(iType==8){ //倒计时
+ //8 | countdownList ABG专用
if(!g_aGames.empty() && arr[1].Length()){
g_aGames.SetCountDown(arr[1]);
}
}
- else if(iType==9){ //·ÅÆ
+ else if(iType==9){ //翻牌
//9 | gid | gmcode | bcard | pcard
if(!g_aGames.empty() && !arr[1].IsEmpty() && (!arr[3].IsEmpty() || !arr[4].IsEmpty())){
int iG = Vid2Gid(arr[1]);
@@ -452,11 +452,11 @@ void __fastcall TDataParseThread::Execute()
PostMessage(pGame->hTable, UM_TAB_UPDATE, UPDATE_STATUS, 0);
if(pGame->iState==ST_BETTED)
- pGame->timeout = -1; //ÖØÐ¼ÆË㳬ʱ
+ pGame->timeout = -1; //�新计算超时
}
}
}
-// else if(iType==10){ //³·Ïú×¢µ¥
+// else if(iType==10){ //撤销注�
// //10 | gid | gmcode
// if(!g_aGames.empty() && arr[1].Length()){
// int iG = Vid2Gid(arr[1]);
@@ -464,7 +464,7 @@ void __fastcall TDataParseThread::Execute()
// int ind = g_aGames.FindGame(iG, pGame);
//
// if(pGame && pGame->gmcode==arr[2]){
-// DebugPrint("!!! %s ³·Ïú×¢µ¥ with status: %d",
+// DebugPrint("!!! %s 撤销注� with status: %d",
// ((AnsiString)pGame->vid).c_str(),
//// ((AnsiString)arr[1]).c_str(),
// pGame->gmstatus);
@@ -484,12 +484,12 @@ void __fastcall TDataParseThread::Execute()
SetEvent(m_hDataEvent);
}
- // µÈ´ýÊý¾Ý
+ // ç‰å¾…æ•°æ�®
if( !Terminated )
Suspended = true;
};
- SetThreadExecutionState( ES_CONTINUOUS );//´ò¿ªÏµÍ³ÐÝÃß
+ SetThreadExecutionState( ES_CONTINUOUS );//打开系统休çœ
}
//---------------------------------------------------------------------------
diff --git a/BacDPThread.h b/BacDPThread.h
index 1afcf91..33ece81 100644
--- a/BacDPThread.h
+++ b/BacDPThread.h
@@ -1,4 +1,4 @@
-//---------------------------------------------------------------------------
+//---------------------------------------------------------------------------
#ifndef BacDPThreadH
#define BacDPThreadH
@@ -12,7 +12,7 @@ using namespace std;
class TDataParseThread : public TBaseThread
{
private:
- HANDLE m_hDataEvent; // Êý¾Ý´¦Àí»¥³â±äÁ¿
+ HANDLE m_hDataEvent; // 数�处�互斥��
vector m_aData;
protected:
diff --git a/BacJSThread.h b/BacJSThread.h
index f1df97e..f522266 100644
--- a/BacJSThread.h
+++ b/BacJSThread.h
@@ -1,11 +1,11 @@
-//---------------------------------------------------------------------------
+//---------------------------------------------------------------------------
#ifndef BacJSThreadH
#define BacJSThreadH
#include "BaseThread.h"
//---------------------------------------------------------------------------
-// Êý¾Ý´¦ÀíÏß³Ì
+// 数�处�线程
#define JS_OP_CHECKCEF 0
#define JS_OP_WSHANDLE0 1
diff --git a/Bet03FrameUnit.cpp b/Bet03FrameUnit.cpp
index 782442c..5f9adba 100644
--- a/Bet03FrameUnit.cpp
+++ b/Bet03FrameUnit.cpp
@@ -1,4 +1,4 @@
-//---------------------------------------------------------------------------
+//---------------------------------------------------------------------------
#include
#pragma hdrstop
@@ -28,7 +28,7 @@ void __fastcall TBet03Frame::DiffEditExit(TObject *Sender)
int num = 0;
if(!TryStrToInt(pE->Text, num) || num<=0 || num>=30 ){
- ShowMessage("ÇëÊäÈë 1 - 30 Ö®¼äµÄ²îÖµ");
+ ShowMessage("请输入 1 - 30 之间的差值");
pE->Text = "5";
pE->SetFocus();
}
@@ -48,7 +48,7 @@ void __fastcall TBet03Frame::BetEditExit(TObject *Sender)
TEdit* pE = (TEdit*)Sender;
String txt = pE->Text;
if(txt.Length()==0 || txt.Length()>15){
- ShowMessage("ÇëÊäÈë 1 - 15 ¸öÏÂ×¢Ïî");
+ ShowMessage("请输入 1 - 15 个下注项");
pE->Text = pE==m_edBlP ? g_BPDiffBet.bets[0] : g_BPDiffBet.bets[1];
pE->SetFocus();
}
@@ -56,7 +56,7 @@ void __fastcall TBet03Frame::BetEditExit(TObject *Sender)
for(int i=1; i<=txt.Length(); i++){
char Key = txt[i];
if(Key!='a' && Key!='s' && Key!='d' && Key!='x' && Key!='z'){
- ShowMessage("Ç밴˵Ã÷ÊäÈëºÏ·¨ÏÂ×¢Ïî");
+ ShowMessage("请按说明输入�法下注项");
pE->SetFocus();
return;
diff --git a/BetLogFormUnit.h b/BetLogFormUnit.h
index 973e7d8..0f0d19f 100644
--- a/BetLogFormUnit.h
+++ b/BetLogFormUnit.h
@@ -1,4 +1,4 @@
-//---------------------------------------------------------------------------
+//---------------------------------------------------------------------------
#ifndef BetLogFormUnitH
#define BetLogFormUnitH
@@ -69,6 +69,6 @@ public: // User declarations
};
//---------------------------------------------------------------------------
extern PACKAGE TBetLogForm *BetLogForm;
-extern vector g_aBetLogs; //¹Ò»úÈÕÖ¾
+extern vector g_aBetLogs; //挂机日志
//---------------------------------------------------------------------------
#endif
diff --git a/Chip02FrameUnit.cpp b/Chip02FrameUnit.cpp
index 51699c7..f56478c 100644
--- a/Chip02FrameUnit.cpp
+++ b/Chip02FrameUnit.cpp
@@ -1,4 +1,4 @@
-//---------------------------------------------------------------------------
+//---------------------------------------------------------------------------
#include
#pragma hdrstop
@@ -24,7 +24,7 @@ void __fastcall TChip02Frame::EditChipExit(TObject *Sender)
int num;
if(!TryStrToInt(pE->Text, num) || numg_MaxOnBet ){
- ShowMessage("×¢Âë½ð¶î²»Äܳ¬¹ýÏÞºì");
+ ShowMessage("注ç �金é¢�ä¸�能超过é™�红");
pE->Text = pE==m_leMinChip ? "20" : "100";
pE->SetFocus();
}
diff --git a/ContentPanel.cpp b/ContentPanel.cpp
index d918c5b..ce56a35 100644
--- a/ContentPanel.cpp
+++ b/ContentPanel.cpp
@@ -1,4 +1,4 @@
-//---------------------------------------------------------------------------
+//---------------------------------------------------------------------------
#include
#include
#pragma hdrstop
@@ -10,10 +10,10 @@
//---------------------------------------------------------------------------
#pragma package(smart_init)
-TColor clrAxis = TColor(RGB(3,5,7)), //XYÖá¼°±ß¿ò
- clrLineTen = TColor(RGB(215,215,215)), //Ê®±¶ºáÏß
- clrLineNor = TColor(0x00EDEDED),// TColor(RGB(250,250,250)), //ÆÕͨÏß
- clrHeadFont = TColor(RGB(83,109,165)), //Í·ÎÄ×Ö
+TColor clrAxis = TColor(RGB(3,5,7)), //XY轴�边框
+ clrLineTen = TColor(RGB(215,215,215)), //��横线
+ clrLineNor = TColor(0x00EDEDED),// TColor(RGB(250,250,250)), //普通线
+ clrHeadFont = TColor(RGB(83,109,165)), //头文å—
clrSelect = TColor(RGB(150, 155, 159));
TColor u_clrLink[] = {clBlue, clWebLimeGreen, clRed, clWebRoyalBlue};
@@ -107,7 +107,7 @@ void __fastcall TContentPanel::Paint()
bool bPeakU = m_iPeakU>=0, bPeakL = m_iPeakL>=0;
vector& aDots = m_aDots.empty() ? g_aDots[m_iType] : m_aDots;
- //»æÖÆÑ¡ÖÐÏß
+ //绘制选ä¸çº¿
if(m_iHint>0){
int x = m_xZero + m_iHint * m_xScaleGap;
Canvas->Pen->Color = clrSelect;
@@ -138,7 +138,7 @@ void __fastcall TContentPanel::Paint()
int y1 = m_nTopBound + c;
if(l <= i && r >= i){
- //»æÖÆÁ¬½ÓÏß
+ //绘制连接线
Canvas->LineTo( x1, y1 );
}
else{
@@ -153,12 +153,12 @@ void __fastcall TContentPanel::WMEraseBkgnd(TWMEraseBkgnd &Message)
TCanvas* tempCanvas = new TCanvas;
tempCanvas->Handle = Message.DC;
- //±³¾°É«
+ //背景色
TRect rect( 0, 0, ClientWidth, ClientHeight );
tempCanvas->Brush->Color = clBtnFace;//clWhite;
tempCanvas->FillRect( rect );
- //Íâ±ß¿ò
+ //外边框
rect.left = m_nLeftBound;
rect.right = m_nRightBound + 1;
rect.top = m_nTopBound;
@@ -166,7 +166,7 @@ void __fastcall TContentPanel::WMEraseBkgnd(TWMEraseBkgnd &Message)
tempCanvas->Brush->Color = clrAxis;
tempCanvas->FrameRect( rect );
- //×ÝÏß
+ //纵线
int x = m_xZero,
t = rect.top+1,
b = rect.bottom-1;
@@ -177,7 +177,7 @@ void __fastcall TContentPanel::WMEraseBkgnd(TWMEraseBkgnd &Message)
tempCanvas->LineTo( x, b );
}
- //¿Ì¶È
+ //刻度
tempCanvas->Font->Color = clrHeadFont;
tempCanvas->Brush->Style = bsClear;
int y = m_nTopGap,//, iY0 = 0,
@@ -192,7 +192,7 @@ void __fastcall TContentPanel::WMEraseBkgnd(TWMEraseBkgnd &Message)
y += m_yScaleGap;
}
- //ºáÏß
+ //横线
tempCanvas->Brush->Style = bsSolid;
y = m_nTopBound;
int l = m_xZero+1,
@@ -306,7 +306,7 @@ void __fastcall TContentPanel::Resample()
m_aDots.push_back(dots[0]);
int total = dots.size(),
- num = total-20; //±£Áô×îÉÙ20¸öµã
+ num = total-20; //�留最少20个点
bool bNoSample = m_iSample==1,
bMask = m_iMask>m_iSample;
@@ -437,7 +437,7 @@ bool __fastcall TContentPanel::CalcXUnit()
//---------------------------------------------------------------------------
bool __fastcall TContentPanel::CalcYUnit(int nMax, int nMin, bool bInit)
{
- if(bInit || nMax > m_nRowMax || nMin < m_nRowMin ){ //³õʼ»¯||·¶Î§±ä¶¯
+ if(bInit || nMax > m_nRowMax || nMin < m_nRowMin ){ //�始化||范围�动
int scale = 100 / m_nAmoUnit;
if(nMax==nMin){
m_nRowMax = (nMax / m_nAmoUnit + 1) * m_nAmoUnit;
@@ -451,7 +451,7 @@ bool __fastcall TContentPanel::CalcYUnit(int nMax, int nMin, bool bInit)
nMax = (nMax / m_nAmoUnit + ((nMax % m_nAmoUnit) ? 1 : 0)) * m_nAmoUnit;
nMin = (nMin / m_nAmoUnit - ((nMin % m_nAmoUnit) ? 1 : 0)) * m_nAmoUnit;
- //ÕÒ¿ÉÕû³ýµÄ0Öá
+ //找�整除的0轴
int m = (nMax - nMin) * scale / 50;
if(0 == (nMin * scale) % m){
m_nRowMax = nMax;
@@ -463,9 +463,9 @@ bool __fastcall TContentPanel::CalcYUnit(int nMax, int nMin, bool bInit)
tmpMin = nMin,
rm = m_iType==3 ? 10000 : 10000000;
- //ѰÕÒ×î¼Ñ·½°¸
+ //寻找最佳方案
bool bUp = g_aDots[m_iType].back().val > 0;
- for(int m1=m; m1 < (bUp ? rm : rm+1); m1+=2){ //×îºóµÄÊý¾ÝΪ¸º£¬ÓÅÏÈÀ©Ï°ëÇø£¬»òÕß¾¡Á¿ÉÏÏÂͬÀ©
+ for(int m1=m; m1 < (bUp ? rm : rm+1); m1+=2){ //最�的数�为负,优先扩下�区,或者尽�上下�扩
if(m1>m && 0 == tmpMin % m1){
rMax = nMax;
rMin = tmpMin;
@@ -474,7 +474,7 @@ bool __fastcall TContentPanel::CalcYUnit(int nMax, int nMin, bool bInit)
}
int tmpMax = nMax;
- for(int m2=m1+2; -tmpMin>=m2 && m2 < (bUp ? rm+1: rm); m2+=2){ //×îºóµÄÊý¾ÝΪÕý£¬ÓÅÏÈÀ©ÉϰëÇø
+ for(int m2=m1+2; -tmpMin>=m2 && m2 < (bUp ? rm+1: rm); m2+=2){ //最å�Žçš„æ•°æ�®ä¸ºæ£ï¼Œä¼˜å…ˆæ‰©ä¸Šå�ŠåŒº
tmpMax += m_nAmoUnit;
if(0==tmpMin % m2){
rMax = tmpMax;
diff --git a/ContentPanel.h b/ContentPanel.h
index 60df19a..9636761 100644
--- a/ContentPanel.h
+++ b/ContentPanel.h
@@ -1,4 +1,4 @@
-//---------------------------------------------------------------------------
+//---------------------------------------------------------------------------
#ifndef ContentPanelH
#define ContentPanelH
@@ -11,7 +11,7 @@ using namespace std;
class TContentPanel : public Extctrls::TPanel
{
private:
- //ÏÔʾÏà¹Ø
+ //显示相关
int m_nTopGap,
m_nLeftBound,
m_nRightBound,
@@ -25,16 +25,16 @@ private:
m_xScaleGap,
m_yScaleGap;
- //¿Ì¶ÈÏà¹Ø
+ //刻度相关
int m_nAmoMax, m_nAmoMin, m_iAmoUnit, m_nRowMax, m_nRowMin, m_nAmoUnit;
double m_yScale;
- //·åÖµ
+ //峰值
int m_iPeakU, m_iPeakL;
- //µãÏÔʾÓëѹËõ
+ //点显示与压缩
vector m_aDots;
int m_nOriDots, m_iType, m_iSample, m_iMask;
- //ÏÔʾʱ¼ä
+ //显示时间
int m_iHint, m_xHalfGap, m_xMaxHint;
TLabel * m_lblHint[2];
diff --git a/GameSettings.cpp b/GameSettings.cpp
index 23f318b..9bfe489 100644
--- a/GameSettings.cpp
+++ b/GameSettings.cpp
@@ -1,4 +1,4 @@
-//---------------------------------------------------------------------------
+//---------------------------------------------------------------------------
#pragma hdrstop
@@ -10,27 +10,27 @@
//---------------------------------------------------------------------------
void TSettings::FromVersionD(TSettingsD& d)
{
- //¿ªÊ¼¹Ò»ú
+ //开始挂机
bWaitNew = d.bWaitNew;
bInitCurProfitByStart = d.bInitCurProfitByStart;
bInitTabProfitByStart = d.bInitTabProfitByStart;
bInitBetChipByStart = d.bInitBetChipByStart;
bInitClearTabLog = d.bInitClearTabLog;
- //оÖ
+ //æ–°å±€
bInitBetByGame = d.bInitBetByGame;
bInitChipByGame = d.bInitChipByGame;
bInitProfitByGame = d.bInitProfitByGame;
bInitLogByGame = d.bInitLogByGame;
- //Ä£Äâ±¾½ð
+ //模拟本金
fSimAcc = d.fSimAcc;
bSimAccOn = d.bSimAccOn;
bNoBetLow = d.bNoBetLow;
bStopLow = d.bStopLow;
bSyncReal = d.bSyncReal;
- //Ö¹Ó®Ö¹Ëð
+ //æ¢èµ¢æ¢æ�Ÿ
bTotalStopLos = d.bTotalStopLos;
bTotalStopWin = d.bTotalStopWin;
bTableStopLos = d.bTableStopLos;
@@ -58,7 +58,7 @@ void TSettings::FromVersionD(TSettingsD& d)
iTableWinOp = d.iTableWinOp;
iTableLosOp = d.iTableLosOp;
- //ģʵת»»
+ //模实转�
bR2SLos = d.bR2SLos;
bR2SWin = d.bR2SWin;
bS2RLos = d.bS2RLos;
@@ -68,10 +68,10 @@ void TSettings::FromVersionD(TSettingsD& d)
nS2RLos = d.nS2RLos;
nS2RWin = d.nS2RWin;
- //ÓĮ̂
+ //游�
iFloatMode = d.iFloatMode;
- //ÅÆ¾ÖÑ¡Ïî
+ //牌局选项
bHoldBet = d.bHoldBet;
bHaltBet = d.bHaltBet;
nHoldBet = d.nHoldBet;
diff --git a/GameSettings.h b/GameSettings.h
index 67a45fc..3b8dd50 100644
--- a/GameSettings.h
+++ b/GameSettings.h
@@ -1,4 +1,4 @@
-//---------------------------------------------------------------------------
+//---------------------------------------------------------------------------
#ifndef GameSettingsH
#define GameSettingsH
@@ -6,78 +6,78 @@
#endif
-//¼æÈÝUSER_GAME_FILE VERSION 0x0D
+//兼容USER_GAME_FILE VERSION 0x0D
class TSettingsD{
public:
- //¿ªÊ¼¹Ò»ú
- bool bWaitNew, //¿ªÊ¼¹Ò»úµÈ´ýоÖ
- bInitCurProfitByStart, //¿ªÊ¼¹Ò»úÖØÖõ±ÆÚÓ®Àû
- bInitTabProfitByStart, //¿ªÊ¼¹Ò»úÖØÖĄ̃×ÀÓ®Àû
- bInitBetChipByStart; //¿ªÊ¼¹Ò»úÖØÖôò·¨×¢Âë
+ //开始挂机
+ bool bWaitNew, //开始挂机ç‰å¾…æ–°å±€
+ bInitCurProfitByStart, //开始挂机�置当期赢利
+ bInitTabProfitByStart, //开始挂机�置�桌赢利
+ bInitBetChipByStart; //开始挂机é‡�置打法注ç �
- //оÖ
- bool bInitBetByGame, //оֳõʼ»¯´ò·¨
- bInitChipByGame, //оֳõʼ»¯×¢Âë
- bInitProfitByGame, //оֳõʼ»¯Ó®Àû
- bInitLogByGame; //оÖÇå¿Ǫ̃×ÀÈÕÖ¾
+ //æ–°å±€
+ bool bInitBetByGame, //新局�始化打法
+ bInitChipByGame, //æ–°å±€åˆ�始化注ç �
+ bInitProfitByGame, //新局�始化赢利
+ bInitLogByGame; //新局清空�桌日志
- //Ä£Äâ±¾½ð
- double fSimAcc; //Ä£ÄâÕË»§Óà¶î
- bool bSimAccOn, //ÆôÓÃÄ£Äâ±¾½ð
- bNoBetLow, //Ä£ÄâÓà¶îÉÙÓÚ×¢Âëʱ²»ÏÂ×¢
- bStopLow, //Ä£ÄâÓà¶îµÍÓÚÏÞºìʱֹͣ¹Ò»ú
- bSyncReal; //ʵ´òʱͬ²½Ôö¼õÄ£ÄâÓà¶î
+ //模拟本金
+ double fSimAcc; //模拟账户余�
+ bool bSimAccOn, //�用模拟本金
+ bNoBetLow, //模拟余é¢�少于注ç �æ—¶ä¸�下注
+ bStopLow, //模拟余é¢�低于é™�红时å�œæ¢æŒ‚机
+ bSyncReal; //实打时å�Œæ¥å¢žå‡�模拟余é¢�
- //Ö¹Ó®Ö¹Ëð
- bool bTotalStopLos, //×ÜÌåÖ¹Ëð
- bTotalStopWin, //×ÜÌåÖ¹Ó®
- bTableStopLos, //µ¥×ÀÖ¹Ëð
- bTableStopWin, //µ¥×ÀÖ¹Ó®
- bAccStopWin, //ÕË»§Ö¹Ó®
- bAccStopLos, //ÕË»§Ö¹Ëð
- bU2DStop, //»ØÂäÖ¹Ëð
- bU2DMinPeak, //»ØÂäÖ¹ËðÓÐ×îС·åÖµ
- bU2DPause; //»ØÂäÖ¹ËðÔÝÍ£ÖØÆô
- int nTotalStopLos, //×ÜÌåÖ¹Ëð½ð¶î
- nTotalStopWin, //×ÜÌåÖ¹Ó®½ð¶î
- nTableStopLos, //µ¥×ÀÖ¹Ëð½ð¶î
- nTableStopWin, //µ¥×ÀÖ¹Ó®½ð¶î
- nAccStopWin, //ÕË»§Ö¹Ó®½ð¶î
- nAccStopLos, //ÕË»§Ö¹Ëð½ð¶î
- nTotalWinPause, //×ÜÌåÖ¹Ó®ÔÝÍ£·ÖÖÓÊý
- nTotalLosPause, //×ÜÌåÖ¹ËðÔÝÍ£·ÖÖÓÊý
- nTableWinPause, //µ¥×ÀÖ¹Ó®ÔÝÍ£·ÖÖÓÊý
- nTableLosPause, //µ¥×ÀÖ¹ËðÔÝÍ£·ÖÖÓÊý
- nU2DStop, //»ØÂäÖ¹Ëð½ð¶î
- nU2DMinPeak, //»ØÂäÖ¹Ëð×îС·åÖµ
- nU2DPause; //»ØÂäÖ¹ËðÔÝÍ£·ÖÖÓÊý
- int iTotalWinOp, //×ÜÌåÖ¹Ó®ºó²Ù×÷
- iTotalLosOp, //×ÜÌåÖ¹Ëðºó²Ù×÷
- iTableWinOp, //µ¥×ÀÖ¹Ó®ºó²Ù×÷
- iTableLosOp; //µ¥×ÀÖ¹Ëðºó²Ù×÷
+ //æ¢èµ¢æ¢æ�Ÿ
+ bool bTotalStopLos, //æ€»ä½“æ¢æ�Ÿ
+ bTotalStopWin, //总体æ¢èµ¢
+ bTableStopLos, //å�•æ¡Œæ¢æ�Ÿ
+ bTableStopWin, //å�•桌æ¢èµ¢
+ bAccStopWin, //账户æ¢èµ¢
+ bAccStopLos, //è´¦æˆ·æ¢æ�Ÿ
+ bU2DStop, //回è�½æ¢æ�Ÿ
+ bU2DMinPeak, //回è�½æ¢æ�Ÿæœ‰æœ€å°�峰值
+ bU2DPause; //回è�½æ¢æ�Ÿæš‚å�œé‡�å�¯
+ int nTotalStopLos, //æ€»ä½“æ¢æ�Ÿé‡‘é¢�
+ nTotalStopWin, //总体æ¢èµ¢é‡‘é¢�
+ nTableStopLos, //å�•æ¡Œæ¢æ�Ÿé‡‘é¢�
+ nTableStopWin, //å�•桌æ¢èµ¢é‡‘é¢�
+ nAccStopWin, //账户æ¢èµ¢é‡‘é¢�
+ nAccStopLos, //è´¦æˆ·æ¢æ�Ÿé‡‘é¢�
+ nTotalWinPause, //总体æ¢èµ¢æš‚å�œåˆ†é’Ÿæ•°
+ nTotalLosPause, //æ€»ä½“æ¢æ�Ÿæš‚å�œåˆ†é’Ÿæ•°
+ nTableWinPause, //å�•桌æ¢èµ¢æš‚å�œåˆ†é’Ÿæ•°
+ nTableLosPause, //å�•æ¡Œæ¢æ�Ÿæš‚å�œåˆ†é’Ÿæ•°
+ nU2DStop, //回è�½æ¢æ�Ÿé‡‘é¢�
+ nU2DMinPeak, //回è�½æ¢æ�Ÿæœ€å°�峰值
+ nU2DPause; //回è�½æ¢æ�Ÿæš‚å�œåˆ†é’Ÿæ•°
+ int iTotalWinOp, //总体æ¢èµ¢å�Žæ“�作
+ iTotalLosOp, //æ€»ä½“æ¢æ�Ÿå�Žæ“�作
+ iTableWinOp, //å�•桌æ¢èµ¢å�Žæ“�作
+ iTableLosOp; //å�•æ¡Œæ¢æ�Ÿå�Žæ“�作
- //ģʵת»»
- bool bR2SLos, //ʵ´ò¿÷ËðתģÄâ
- bR2SWin, //ʵ´òÓ®ÀûתģÄâ
- bS2RLos, //Ä£Äâ¿÷Ëðתʵ´ò
- bS2RWin; //Ä£ÄâÓ®Àûתʵ´ò
- int nR2SLos, //ʵ´òתģÄâ¿÷Ëð½ð¶î
- nR2SWin, //ʵ´òתģÄâÓ®Àû½ð¶î
- nS2RLos, //Ä£Äâתʵ´ò¿÷Ëð½ð¶î
- nS2RWin; //Ä£Äâתʵ´òÓ®Àû½ð¶î
+ //模实转�
+ bool bR2SLos, //实打��转模拟
+ bR2SWin, //实打赢利转模拟
+ bS2RLos, //模拟��转实打
+ bS2RWin; //模拟赢利转实打
+ int nR2SLos, //实打转模拟��金�
+ nR2SWin, //实打转模拟赢利金�
+ nS2RLos, //模拟转实打��金�
+ nS2RWin; //模拟转实打赢利金�
- //ÓĮ̂
- bool bFloat; //ÊÇ·ñ¿ªÆôÓĮ̂
- int iFloatMode; //ÓĮ̂ģʽ£º0=²»¿ªÆôÓĮ̂ 1=ÿÏ̨ 2=Ï´ÅÆ»»Ì¨ 4=Ê任̨ 8=Ó®»»Ì¨ 16=ºÍ»»Ì¨
+ //游�
+ bool bFloat; //是�开�游�
+ int iFloatMode; //游�模�:0=�开�游� 1=�项�� 2=洗牌�� 4=输�� 8=赢�� 16=和��
- //¿ªÊ¼¹Ò»ú
- bool bInitClearTabLog; //Çå¿Ǫ̃×ÀÏÂ×¢¼Ç¼
+ //开始挂机
+ bool bInitClearTabLog; //清空�桌下注记录
- //ÅÆ¾ÖÑ¡Ïî
- bool bHoldBet, //¿ª¾ÖXÊÖºó¿ªÊ¼ÏÂ×¢
- bHaltBet; //¿ª¾ÖXÊÖºóÍ£Ö¹ÏÂ×¢
- int nHoldBet, //¿ª¾Ö¿ªÊ¼ÏÂ×¢ÊÖÊý
- nHaltBet; //¿ª¾ÖÍ£Ö¹ÏÂ×¢ÊÖÊý
+ //牌局选项
+ bool bHoldBet, //开局X手�开始下注
+ bHaltBet; //开局X手å�Žå�œæ¢ä¸‹æ³¨
+ int nHoldBet, //开局开始下注手数
+ nHaltBet; //开局å�œæ¢ä¸‹æ³¨æ‰‹æ•°
TSettingsD() {
memset( this, 0, sizeof(TSettingsD) );
@@ -95,76 +95,76 @@ public:
};
};
-//µ±Ç°ÉèÖÃ
+//当�设置
class TSettings{
public:
- //¿ªÊ¼¹Ò»ú
- bool bWaitNew, //¿ªÊ¼¹Ò»úµÈ´ýоÖ
- bInitCurProfitByStart, //¿ªÊ¼¹Ò»úÖØÖõ±ÆÚÓ®Àû
- bInitTabProfitByStart, //¿ªÊ¼¹Ò»úÖØÖĄ̃×ÀÓ®Àû
- bInitBetChipByStart, //¿ªÊ¼¹Ò»úÖØÖôò·¨×¢Âë
- bInitClearTabLog; //Çå¿Ǫ̃×ÀÏÂ×¢¼Ç¼
+ //开始挂机
+ bool bWaitNew, //开始挂机ç‰å¾…æ–°å±€
+ bInitCurProfitByStart, //开始挂机�置当期赢利
+ bInitTabProfitByStart, //开始挂机�置�桌赢利
+ bInitBetChipByStart, //开始挂机é‡�置打法注ç �
+ bInitClearTabLog; //清空�桌下注记录
- //оÖ
- bool bInitBetByGame, //оֳõʼ»¯´ò·¨
- bInitChipByGame, //оֳõʼ»¯×¢Âë
- bInitProfitByGame, //оֳõʼ»¯Ó®Àû
- bInitLogByGame; //оÖÇå¿Ǫ̃×ÀÈÕÖ¾
+ //æ–°å±€
+ bool bInitBetByGame, //新局�始化打法
+ bInitChipByGame, //æ–°å±€åˆ�始化注ç �
+ bInitProfitByGame, //新局�始化赢利
+ bInitLogByGame; //新局清空�桌日志
- //Ä£Äâ±¾½ð
- double fSimAcc; //Ä£ÄâÕË»§Óà¶î
- bool bSimAccOn, //ÆôÓÃÄ£Äâ±¾½ð
- bNoBetLow, //Ä£ÄâÓà¶îÉÙÓÚ×¢Âëʱ²»ÏÂ×¢
- bStopLow, //Ä£ÄâÓà¶îµÍÓÚÏÞºìʱֹͣ¹Ò»ú
- bSyncReal; //ʵ´òʱͬ²½Ôö¼õÄ£ÄâÓà¶î
+ //模拟本金
+ double fSimAcc; //模拟账户余�
+ bool bSimAccOn, //�用模拟本金
+ bNoBetLow, //模拟余é¢�少于注ç �æ—¶ä¸�下注
+ bStopLow, //模拟余é¢�低于é™�红时å�œæ¢æŒ‚机
+ bSyncReal; //实打时å�Œæ¥å¢žå‡�模拟余é¢�
- //Ö¹Ó®Ö¹Ëð
- bool bTotalStopLos, //×ÜÌåÖ¹Ëð
- bTotalStopWin, //×ÜÌåÖ¹Ó®
- bTableStopLos, //µ¥×ÀÖ¹Ëð
- bTableStopWin, //µ¥×ÀÖ¹Ó®
- bAccStopWin, //ÕË»§Ö¹Ó®
- bAccStopLos, //ÕË»§Ö¹Ëð
- bU2DStop, //»ØÂäÖ¹Ëð
- bU2DMinPeak, //»ØÂäÖ¹ËðÓÐ×îС·åÖµ
- bU2DPause; //»ØÂäÖ¹ËðÔÝÍ£ÖØÆô
- int nTotalStopLos, //×ÜÌåÖ¹Ëð½ð¶î
- nTotalStopWin, //×ÜÌåÖ¹Ó®½ð¶î
- nTableStopLos, //µ¥×ÀÖ¹Ëð½ð¶î
- nTableStopWin, //µ¥×ÀÖ¹Ó®½ð¶î
- nAccStopWin, //ÕË»§Ö¹Ó®½ð¶î
- nAccStopLos, //ÕË»§Ö¹Ëð½ð¶î
- nTotalWinPause, //×ÜÌåÖ¹Ó®ÔÝÍ£·ÖÖÓÊý
- nTotalLosPause, //×ÜÌåÖ¹ËðÔÝÍ£·ÖÖÓÊý
- nTableWinPause, //µ¥×ÀÖ¹Ó®ÔÝÍ£·ÖÖÓÊý
- nTableLosPause, //µ¥×ÀÖ¹ËðÔÝÍ£·ÖÖÓÊý
- nU2DStop, //»ØÂäÖ¹Ëð½ð¶î
- nU2DMinPeak, //»ØÂäÖ¹Ëð×îС·åÖµ
- nU2DPause; //»ØÂäÖ¹ËðÔÝÍ£·ÖÖÓÊý
- int iTotalWinOp, //×ÜÌåÖ¹Ó®ºó²Ù×÷
- iTotalLosOp, //×ÜÌåÖ¹Ëðºó²Ù×÷
- iTableWinOp, //µ¥×ÀÖ¹Ó®ºó²Ù×÷
- iTableLosOp; //µ¥×ÀÖ¹Ëðºó²Ù×÷
+ //æ¢èµ¢æ¢æ�Ÿ
+ bool bTotalStopLos, //æ€»ä½“æ¢æ�Ÿ
+ bTotalStopWin, //总体æ¢èµ¢
+ bTableStopLos, //å�•æ¡Œæ¢æ�Ÿ
+ bTableStopWin, //å�•桌æ¢èµ¢
+ bAccStopWin, //账户æ¢èµ¢
+ bAccStopLos, //è´¦æˆ·æ¢æ�Ÿ
+ bU2DStop, //回è�½æ¢æ�Ÿ
+ bU2DMinPeak, //回è�½æ¢æ�Ÿæœ‰æœ€å°�峰值
+ bU2DPause; //回è�½æ¢æ�Ÿæš‚å�œé‡�å�¯
+ int nTotalStopLos, //æ€»ä½“æ¢æ�Ÿé‡‘é¢�
+ nTotalStopWin, //总体æ¢èµ¢é‡‘é¢�
+ nTableStopLos, //å�•æ¡Œæ¢æ�Ÿé‡‘é¢�
+ nTableStopWin, //å�•桌æ¢èµ¢é‡‘é¢�
+ nAccStopWin, //账户æ¢èµ¢é‡‘é¢�
+ nAccStopLos, //è´¦æˆ·æ¢æ�Ÿé‡‘é¢�
+ nTotalWinPause, //总体æ¢èµ¢æš‚å�œåˆ†é’Ÿæ•°
+ nTotalLosPause, //æ€»ä½“æ¢æ�Ÿæš‚å�œåˆ†é’Ÿæ•°
+ nTableWinPause, //å�•桌æ¢èµ¢æš‚å�œåˆ†é’Ÿæ•°
+ nTableLosPause, //å�•æ¡Œæ¢æ�Ÿæš‚å�œåˆ†é’Ÿæ•°
+ nU2DStop, //回è�½æ¢æ�Ÿé‡‘é¢�
+ nU2DMinPeak, //回è�½æ¢æ�Ÿæœ€å°�峰值
+ nU2DPause; //回è�½æ¢æ�Ÿæš‚å�œåˆ†é’Ÿæ•°
+ int iTotalWinOp, //总体æ¢èµ¢å�Žæ“�作
+ iTotalLosOp, //æ€»ä½“æ¢æ�Ÿå�Žæ“�作
+ iTableWinOp, //å�•桌æ¢èµ¢å�Žæ“�作
+ iTableLosOp; //å�•æ¡Œæ¢æ�Ÿå�Žæ“�作
- //ģʵת»»
- bool bR2SLos, //ʵ´ò¿÷ËðתģÄâ
- bR2SWin, //ʵ´òÓ®ÀûתģÄâ
- bS2RLos, //Ä£Äâ¿÷Ëðתʵ´ò
- bS2RWin; //Ä£ÄâÓ®Àûתʵ´ò
- int nR2SLos, //ʵ´òתģÄâ¿÷Ëð½ð¶î
- nR2SWin, //ʵ´òתģÄâÓ®Àû½ð¶î
- nS2RLos, //Ä£Äâתʵ´ò¿÷Ëð½ð¶î
- nS2RWin; //Ä£Äâתʵ´òÓ®Àû½ð¶î
+ //模实转�
+ bool bR2SLos, //实打��转模拟
+ bR2SWin, //实打赢利转模拟
+ bS2RLos, //模拟��转实打
+ bS2RWin; //模拟赢利转实打
+ int nR2SLos, //实打转模拟��金�
+ nR2SWin, //实打转模拟赢利金�
+ nS2RLos, //模拟转实打��金�
+ nS2RWin; //模拟转实打赢利金�
- //ÓĮ̂
- int iFloatMode; //ÓĮ̂ģʽ£º0=²»¿ªÆôÓĮ̂ 1=ÿÏ̨ 2=Ï´ÅÆ»»Ì¨ 4=Ê任̨ 8=Ó®»»Ì¨ 16=ºÍ»»Ì¨
+ //游�
+ int iFloatMode; //游�模�:0=�开�游� 1=�项�� 2=洗牌�� 4=输�� 8=赢�� 16=和��
- //ÅÆ¾ÖÑ¡Ïî
- bool bHoldBet, //¿ª¾ÖXÊÖºó¿ªÊ¼ÏÂ×¢
- bHaltBet; //¿ª¾ÖXÊÖºóÍ£Ö¹ÏÂ×¢
- int nHoldBet, //¿ª¾Ö¿ªÊ¼ÏÂ×¢ÊÖÊý
- nHaltBet; //¿ª¾ÖÍ£Ö¹ÏÂ×¢ÊÖÊý
- bool bBetsNoTie; //Á¬ÐøÏÂ×¢ºöÂÔºÍ
+ //牌局选项
+ bool bHoldBet, //开局X手�开始下注
+ bHaltBet; //开局X手å�Žå�œæ¢ä¸‹æ³¨
+ int nHoldBet, //开局开始下注手数
+ nHaltBet; //开局å�œæ¢ä¸‹æ³¨æ‰‹æ•°
+ bool bBetsNoTie; //连ç»ä¸‹æ³¨å¿½ç•¥å’Œ
TSettings() {
memset( this, 0, sizeof(TSettings) );
diff --git a/GameUnit.cpp b/GameUnit.cpp
index 79aa896..10325e5 100644
--- a/GameUnit.cpp
+++ b/GameUnit.cpp
@@ -1,4 +1,4 @@
-//---------------------------------------------------------------------------
+//---------------------------------------------------------------------------
#include
#include "GameUnit.h"
#include "GlobalUnit.h"
@@ -9,23 +9,23 @@
//---------------------------------------------------------------------------
#pragma package(smart_init)
-TSettings g_settings; //»ù±¾ÉèÖÃ
+TSettings g_settings; //基本设置
TGameArray g_aGames;
-int g_iRoad = 0; //È«¾Ö·µ¥/ĬÈÏΪÁùÖé·
-double g_fBalance = 0; //ÕË»§Óà¶î
+int g_iRoad = 0; //全局路å�•/默认为å…ç� è·¯
+double g_fBalance = 0; //账户余�
bool g_bSimulate = true,
g_bShowSetting = true,
g_bGameOn = false,
- g_bDeadPause = false, //È«¾Ö±¬ÀÂÔÝÍ£
- g_bBetPause = false; //×ÜÌåÖ¹Ó®Ö¹ËðÔÝÍ£
+ g_bDeadPause = false, //全局爆缆暂�
+ g_bBetPause = false; //总体æ¢èµ¢æ¢æ�Ÿæš‚å�œ
-int g_MinOnBet = 20, //×îСעÂë
- g_MaxOnBet = 50000; //×î´ó×¢Âë
+int g_MinOnBet = 20, //最å°�注ç �
+ g_MaxOnBet = 50000; //最大注ç �
-int g_nRBReport = 0; //ʵ´òÁ÷Ë®Éϱ¨
+int g_nRBReport = 0; //实打�水上报
-vector g_aDots[4]; //×ʽðͼ±íÊý¾Ý ×ÜÓ®Àû/Ä£Äâ±¾½ð/ÕË»§Óà¶î
+vector g_aDots[4]; //资金图表数� 总赢利/模拟本金/账户余�
TIPGameArray g_aIPGames;
//---------------------------------------------------------------------------
@@ -96,7 +96,7 @@ int __fastcall TTierChip::HandleResult(int res, double wl)
}
else return iRank;
- if(((TTierPolicy*)pPolicy)->bTierWinRet && iRank>0 && nWLDiff>0){ //¸ß²ãÓ®»Ø»ù
+ if(((TTierPolicy*)pPolicy)->bTierWinRet && iRank>0 && nWLDiff>0){ //高层赢回基
Reset();
}
else{
@@ -104,24 +104,24 @@ int __fastcall TTierChip::HandleResult(int res, double wl)
if(nCount==0){
TTierRow* pRow = (TTierRow*)pPolicy->aRows[iRank];
- if(nWLDiff==0){//ÊäӮƽÊÖ ÖØ´ò
+ if(nWLDiff==0){//输赢平手 �打
nWLDiff = nLos = 0;
nCount = pRow->hands;
nRnkChip = nAccChip + pRow->chip;
return iRank;
}
- if(nWLDiff>0){ //Ó®×ßÏò
+ if(nWLDiff>0){ //赢走�
iRank = pRow->iWin - 1;
- nAccChip = 0; //¾»ÊäÀÛ¼ÆÇåÁã
+ nAccChip = 0; //净输累计清零
}
- else{ //Êä×ßÏò
+ else{ //输走�
iRank = pRow->iLos - 1;
if(iRank>=0 && ((TTierPolicy*)pPolicy)->bTierAccChip){
if(iRank==0)
nAccChip = 0;
else{
- nAccChip += nLos; //¾»ÊäÀÛ¼Óµ½ÏÂÒ»²ã
+ nAccChip += nLos; //å‡€è¾“ç´¯åŠ åˆ°ä¸‹ä¸€å±‚
if(nAccChip<0)
nAccChip = 0;
}
@@ -136,7 +136,7 @@ int __fastcall TTierChip::HandleResult(int res, double wl)
}
}
else if(((TTierPolicy*)pPolicy)->bTierLos0){
- if(nWLDiff<0) //Êä´ò0
+ if(nWLDiff<0) //输打0
nRnkChip = 0;
else{
TTierRow* pRow = (TTierRow*)pPolicy->aRows[iRank];
@@ -178,30 +178,30 @@ int __fastcall TLevelChip::HandleResult(int res, double wl)
bool bLevel = false;
TLevelRow* pRow = (TLevelRow*)pPolicy->aRows[iRank];
- if(bGlobal && !g_aGames.bFloat && !((TLevelPolicy*)pPolicy)->bInstant){//·ÇÁ¢¼´Éý½µ
- if(fWLDiff >= pRow->nCondWin || fWLDiff <= -pRow->nCondLos){ //´ïµ½Éý½µÌõ¼þ
+ if(bGlobal && !g_aGames.bFloat && !((TLevelPolicy*)pPolicy)->bInstant){//�立���
+ if(fWLDiff >= pRow->nCondWin || fWLDiff <= -pRow->nCondLos){ //达到���件
g_aGames.AllBetOff();
- bWait = g_aGames.nBetted[2]>0; //µÈ´ý½áËã
+ bWait = g_aGames.nBetted[2]>0; //ç‰å¾…结算
DebugPrint("wait count: %d", g_aGames.nBetted[2]);
}
else if(bWait){
bWait = false;
- DebugPrint("»Ö¸´ÏÂ×¢ %.2f", fWLDiff);
+ DebugPrint("��下注 %.2f", fWLDiff);
}
}
if(!bWait){
- if(fWLDiff >= pRow->nCondWin){ //Ó®×ßÏò
+ if(fWLDiff >= pRow->nCondWin){ //赢走�
iRank = pRow->iWin - 1;
bLevel = true;
}
- else if(fWLDiff <= -pRow->nCondLos){ //Êä×ßÏò
+ else if(fWLDiff <= -pRow->nCondLos){ //输走�
iRank = pRow->iLos - 1;
bLevel = true;
}
}
else{
- DebugPrint("µÈ´ý½áËã %.2f", fWLDiff);
+ DebugPrint("ç‰å¾…结算 %.2f", fWLDiff);
}
if(bLevel && bGlobal && !g_aGames.bFloat && ((TLevelPolicy*)pPolicy)->bInstant)
@@ -220,7 +220,7 @@ void __fastcall TLevelChip::CalcLevelChip(bool bLevel, int res)
if(bGlobal && !g_aGames.bFloat){
PostMessage(Application->MainFormHandle, UM_GLOBAL_BET, 0, 0);
- DebugPrint("Éý½µ½×ÌÝ %d", iRank);
+ DebugPrint("��阶梯 %d", iRank);
}
}
}
@@ -238,7 +238,7 @@ void __fastcall TComboChip::CalcChip()
int nBaseChip = 0;
if(pRnkPolicy->kind==KIND_CHIP_RAN){
int mi = g_RandomChip.minChip,
- ma = g_RandomChip.maxChip+1; //°üº¬×î´óÖµ
+ ma = g_RandomChip.maxChip+1; //包�最大值
nBaseChip = mi + Random(ma - mi);
}
else
@@ -281,7 +281,7 @@ void __fastcall TComboChip::CalcLevelChip(bool bLevel, int res)
if(bGlobal && !g_aGames.bFloat){
g_aGames.ResetRankSeq();
PostMessage(Application->MainFormHandle, UM_GLOBAL_BET, 0, 0);
- DebugPrint("Éý½µ½×ÌÝ %d", iRank);
+ DebugPrint("��阶梯 %d", iRank);
}
else{
CalcChip();
@@ -296,7 +296,7 @@ void __fastcall TComboChip::CalcLevelChip(bool bLevel, int res)
else if(res==2)
iRnkSeq = pCR->iLos - 1;
- if(iRnkSeq<0) //Á¢¼´ÖØÖÃ
+ if(iRnkSeq<0) //立��置
iRnkSeq = 0;
}
@@ -317,7 +317,7 @@ int __fastcall TComboChip::GetComboChip(int& iRnk, int& iSeq)
int nBaseChip = 0;
if(pRnkPolicy->kind==KIND_CHIP_RAN){
int mi = g_RandomChip.minChip,
- ma = g_RandomChip.maxChip+1; //°üº¬×î´óÖµ
+ ma = g_RandomChip.maxChip+1; //包�最大值
nBaseChip = mi + Random(ma - mi);
}
else
@@ -335,7 +335,7 @@ int __fastcall TComboChip::GetRankSeq(int res, int iRnk, int iSeq)
else
iSeq = pCR->iLos - 1;
- if(iSeq<0) //Á¢¼´ÖØÖÃ
+ if(iSeq<0) //立��置
iSeq = 0;
}
@@ -375,30 +375,30 @@ int __fastcall TWLDiffChip::HandleResult(int res, double wl)
bool bLevel = false;
TLevelRow* pRow = (TLevelRow*)pPolicy->aRows[iRank];
- if(bGlobal && !g_aGames.bFloat && !((TLevelPolicy*)pPolicy)->bInstant){//·ÇÁ¢¼´Éý½µ
- if(nWLDiff >= pRow->nCondWin || nWLDiff <= pRow->nCondLos){ //´ïµ½Éý½µÌõ¼þ
+ if(bGlobal && !g_aGames.bFloat && !((TLevelPolicy*)pPolicy)->bInstant){//�立���
+ if(nWLDiff >= pRow->nCondWin || nWLDiff <= pRow->nCondLos){ //达到���件
g_aGames.AllBetOff();
- bWait = g_aGames.nBetted[2]>0; //µÈ´ý½áËã
+ bWait = g_aGames.nBetted[2]>0; //ç‰å¾…结算
DebugPrint("wait count: %d", g_aGames.nBetted[2]);
}
else if(bWait){
bWait = false;
- DebugPrint("»Ö¸´ÏÂ×¢ %d", nWLDiff);
+ DebugPrint("��下注 %d", nWLDiff);
}
}
if(!bWait){
- if(nWLDiff >= pRow->nCondWin){ //Ó®×ßÏò
+ if(nWLDiff >= pRow->nCondWin){ //赢走�
iRank = pRow->iWin - 1;
bLevel = true;
}
- else if(nWLDiff <= pRow->nCondLos){ //Êä×ßÏò
+ else if(nWLDiff <= pRow->nCondLos){ //输走�
iRank = pRow->iLos - 1;
bLevel = true;
}
}
else{
- DebugPrint("µÈ´ý½áËã %d", nWLDiff);
+ DebugPrint("ç‰å¾…结算 %d", nWLDiff);
}
if(bLevel){
@@ -406,14 +406,14 @@ int __fastcall TWLDiffChip::HandleResult(int res, double wl)
g_aGames.AllBetOff();
if(iRank>=0){
- if(((TWLDiffPolicy*)pPolicy)->bIndie) //Á¢¼´ÇåÁã
+ if(((TWLDiffPolicy*)pPolicy)->bIndie) //立�清零
nWLDiff = 0;
CalcChip();
if(bGlobal && !g_aGames.bFloat){
PostMessage(Application->MainFormHandle, UM_GLOBAL_BET, 0, 0);
- DebugPrint("Éý½µ²ã¼¶ %d", iRank);
+ DebugPrint("��层级 %d", iRank);
}
}
}
@@ -475,7 +475,7 @@ void __fastcall TGame::ClearResults()
for(int i=0; i<4; i++){
aRoad[i].clear();
lastRoad[i] = 0;
- aMap[i].Clear(); //ÇåÀíͼÊý¾Ý
+ aMap[i].Clear(); //清�图数�
}
memset(winCount, 0, sizeof(winCount));
}
@@ -514,13 +514,13 @@ int __fastcall TGame::Color2Bet(TBetPolicy* pBP, char clr)
{
int bet = 0;
- int s0 = aRoad[0].back(), //´ó·×îºó1ÁиöÊý(¼ÙÉèΪ¶Ï)
+ int s0 = aRoad[0].back(), //大路最å�Ž1列个数(å�‡è®¾ä¸ºæ–)
sR = aRoad[0][aRoad[0].size() - pBP->road];
- char c = s0==sR ? 1 : 2; //Æë½ÅÌøºì
- if(c==clr) //´Ë´¦ÎªºìÀ¶
- bet = lastRoad[0] ^ 0x3; //´ó·¶Ï
+ char c = s0==sR ? 1 : 2; //�脚跳红
+ if(c==clr) //æ¤å¤„为红è“�
+ bet = lastRoad[0] ^ 0x3; //大路æ–
else
- bet = lastRoad[0]; //´ó·Á¬
+ bet = lastRoad[0]; //大路连
return bet;
}
@@ -528,34 +528,34 @@ int __fastcall TGame::Color2Bet(TBetPolicy* pBP, char clr)
void __fastcall TGame::CalcBet()
{
- iBet = nChip = 0; //ĬÈϲ»ÏÂ×¢
+ iBet = nChip = 0; //默认�下注
int iBP = iBetPolicy>=0 ? iBetPolicy : g_iBetPolicy;
TBetPolicy* pBP = (TBetPolicy*)g_aBetPolicies[iBP];
int uBP = iBetSeq >> 16,
uSeq = 0;
- if(uBP!=pBP->id){ //¸ÄÓÃIDÅжϱÜÃâ·½°¸É¾³ý´øÀ´ÎÊÌâ
+ if(uBP!=pBP->id){ //改用ID判æ–é�¿å…�æ–¹æ¡ˆåˆ é™¤å¸¦æ�¥é—®é¢˜
uBP = pBP->id;
aBets.clear();
}
- if(!aBets.empty()){ //Á¬ÐøÏÂ×¢Ïî
+ if(!aBets.empty()){ //连ç»ä¸‹æ³¨é¡¹
if(aBets[0]==0 || aBets[0]==4){
iBet = aBets[0];
}
- else if(pBP->road<=1 || aBets[0]==3){ //ÖéÅÌ/´ó·»ò´òºÍ
- iBet = aBets[0]; //´Ë´¦Îª×¯ÏкÍ
+ else if(pBP->road<=1 || aBets[0]==3){ //ç� 盘/大路或打和
+ iBet = aBets[0]; //æ¤å¤„为庄闲和
}
- else if(aRoad[0].size() >= pBP->road){//ÏÂÈý·
+ else if(aRoad[0].size() >= pBP->road){//下三路
iBet = Color2Bet(pBP, aBets[0]);
}
}
- else if(pBP->road==0){ //ÖéÅÌ·
+ else if(pBP->road==0){ //ç� 盘路
if(aRes.empty())
return;
- if(pBP->kind==KIND_BET_DIF){ //ׯÏвî
+ if(pBP->kind==KIND_BET_DIF){ //庄闲差
int diff = winCount[0] - winCount[1];
int i = diff>=g_BPDiffBet.diff[0] ? 0
: diff<=-g_BPDiffBet.diff[1] ? 1
@@ -571,25 +571,25 @@ void __fastcall TGame::CalcBet()
}
}
else{
- for(int i=0; iaRows.size(); i++){ //°´´ÓÉÏÍùϵÄ˳ÐòÆ¥Åä
+ for(int i=0; iaRows.size(); i++){ //按从上往下的顺�匹�
TBetRow* pRow = (TBetRow*)pBP->aRows[i];
bool bAllMatched = true;
- int pos = aRes.size()-1; //×îºóÒ»¸öλÖÿªÊ¼
- for(int j=pRow->cond.size()-1; j>=0; j--){ //´ÓºóÍùǰƥÅä
+ int pos = aRes.size()-1; //最�一个�置开始
+ for(int j=pRow->cond.size()-1; j>=0; j--){ //从�往�匹�
int item = pRow->cond[j];
bool up = item & 0x80;
char ch = item & 0x3;
int num = (item & 0x7C) >> 2;
- if(pos<0 || ch!=aRes[pos--]){ //¸öÊý²»×ã»òÑÕÉ«²»Æ¥Åä
+ if(pos<0 || ch!=aRes[pos--]){ //个数�足或颜色�匹�
bAllMatched = false;
break;
}
bool bMatched = true;
for(int k=1; kbets[0];
if(pRow->bets.size()>1){
for(int j=0; jbets.size(); j++)
@@ -622,58 +622,58 @@ void __fastcall TGame::CalcBet()
if(road.empty())
return;
- if(pBP->kind==KIND_BET_ASK){ //ׯÏÐÎÊ·
+ if(pBP->kind==KIND_BET_ASK){ //庄闲问路
int size0 = aRoad[0].size();
- if(size0<4) return; //²»¹»ÁÐÊý
+ if(size0<4) return; //�够列数
if(size0>=4){
char cl[3], sR,
- s0 = aRoad[0].back(); //´ó·×îºó1ÁиöÊý(¼ÙÉèΪ¶Ï)
+ s0 = aRoad[0].back(); //大路最å�Ž1列个数(å�‡è®¾ä¸ºæ–)
for(int i=0; i<3; i++){
sR = aRoad[0][size0 - i - 2];
cl[i] = s0==sR ? 1 : 2;
}
- if(cl[0]!=cl[1] || cl[1]!=cl[2]) //²»Í¬É«
+ if(cl[0]!=cl[1] || cl[1]!=cl[2]) //��色
return;
- if(lastRoad[0]==2 && cl[0]==1 || lastRoad[0]==1 && cl[0]==2) //ׯȫºì/ÏÐÈ«À¶
+ if(lastRoad[0]==2 && cl[0]==1 || lastRoad[0]==1 && cl[0]==2) //庄全红/闲全�
iBet = g_BPAskBet.bet[0];
- else if(lastRoad[0]==1 && cl[0]==1 || lastRoad[0]==2 && cl[0]==2) //ÏÐÈ«ºì/ׯȫÀ¶
+ else if(lastRoad[0]==1 && cl[0]==1 || lastRoad[0]==2 && cl[0]==2) //闲全红/庄全�
iBet = g_BPAskBet.bet[1];
}
}
else{
- for(int i=0; iaRows.size(); i++){ //°´´ÓÉÏÍùϵÄ˳ÐòÆ¥Åä
+ for(int i=0; iaRows.size(); i++){ //按从上往下的顺�匹�
TBetRow* pRow = (TBetRow*)pBP->aRows[i];
- if(road.size()cond.size()) //ÁÐÊý²»×ã
+ if(road.size()cond.size()) //列数�足
continue;
bool bAllMatched = true;
char last = lastRoad[pBP->road-1];
- int col = road.size()-1; //×îºóÒ»ÁпªÊ¼
- for(int j=pRow->cond.size()-1; j>=0 && bAllMatched; j--){ //´ÓºóÍùǰƥÅä
+ int col = road.size()-1; //最�一列开始
+ for(int j=pRow->cond.size()-1; j>=0 && bAllMatched; j--){ //从�往�匹�
int item = pRow->cond[j];
bool up = item & 0x80;
char ch = item & 0x3;
int num = (item & 0x7C) >> 2;
- if(ch==last && (up && road[col]>=num || !up && road[col]==num)){ //¸ÃÁгɹ¦
- col--; //Æ¥ÅäÏÂÒ»ÁÐ
- last ^= 0x3; //ÏÂÒ»ÁеÄÑÕÉ«
+ if(ch==last && (up && road[col]>=num || !up && road[col]==num)){ //该列�功
+ col--; //匹�下一列
+ last ^= 0x3; //下一列的颜色
}
else
bAllMatched = false;;
}
- if(bAllMatched){ //Æ¥Åä³É¹¦
+ if(bAllMatched){ //匹��功
if(pRow->bets[0]==0 || pRow->bets[0]==4){
iBet = pRow->bets[0];
}
if(pBP->road==1 || pRow->bets[0]==3){
- iBet = pRow->bets[0]; //´Ë´¦Îª×¯ÏкÍ
+ iBet = pRow->bets[0]; //æ¤å¤„为庄闲和
}
- else if(aRoad[0].size() >= pBP->road){//ÏÂÈý·
+ else if(aRoad[0].size() >= pBP->road){//下三路
iBet = Color2Bet(pBP, pRow->bets[0]);
}
@@ -704,7 +704,7 @@ void __fastcall TGame::CalcChip()
int uCP = iCS >> 20,
uCRnk = (iCS & 0xFF000) >> 12,
uCSeq = iCS & 0xFFF;
- if(uCP!=pCP->id){ //¸ÄÓÃIDÅжϱÜÃâ·½°¸É¾³ý´øÀ´ÎÊÌâ
+ if(uCP!=pCP->id){ //改用ID判æ–é�¿å…�æ–¹æ¡ˆåˆ é™¤å¸¦æ�¥é—®é¢˜
uCRnk = uCSeq = 0;
iCS = (pCP->id<<20);
@@ -737,12 +737,12 @@ void __fastcall TGame::CalcChip()
}
else if(pCP->kind==KIND_CHIP_RAN){
int mi = g_RandomChip.minChip,
- ma = g_RandomChip.maxChip+1; //°üº¬×î´óÖµ
+ ma = g_RandomChip.maxChip+1; //包�最大值
nChip = mi + Random(ma - mi);
}
else{
TChipRow* pRow = (TChipRow*)pCP->aRows[uCSeq];
- nChip = pRow->chip * (bIndPolicy ? nChipMul : g_nChipMul); //³ËÉϱ¶Êý
+ nChip = pRow->chip * (bIndPolicy ? nChipMul : g_nChipMul); //乘上�数
}
}
//---------------------------------------------------------------------------
@@ -752,21 +752,21 @@ int __fastcall TGame::CalcResult(int op)
int uBP = iBetSeq >> 16,
uBSeq = iBetSeq & 0xFFFF;
- if(!iBet || !uBSeq)// || uBSeq>aRes.size() && op!=2)// || !nChip) ÔÊÐí×¢ÂëΪ0
+ if(!iBet || !uBSeq)// || uBSeq>aRes.size() && op!=2)// || !nChip) å…�许注ç �为0
return 0;
- int dType = 0; //ÊÇ·ñ±¬ÀÂ
+ int dType = 0; //是�爆缆
int ret = 3;
double wl = 0;
- if(op<2){ //·Ç³¬Ê±
+ if(op<2){ //�超时
int res = aRes[uBSeq-1];
- if(!aBets.empty() && (!g_settings.bBetsNoTie || res!=3 || iBet==3) ){ //Á¬ÐøÏÂ×¢£¬²»ºöÂÔºÍ|½á¹û·ÇºÍ|ÏÂ×¢ºÍ£¬É¾³ý±¾Ïî
+ if(!aBets.empty() && (!g_settings.bBetsNoTie || res!=3 || iBet==3) ){ //连ç»ä¸‹æ³¨ï¼Œä¸�忽略和|结果é�žå’Œ|ä¸‹æ³¨å’Œï¼Œåˆ é™¤æœ¬é¡¹
aBets.erase(aBets.begin());
}
- if(iBet==res){ //Ó®
+ if(iBet==res){ //èµ¢
ret = 1;
if(iBet==1)
wl = nChip * 0.95;
@@ -775,15 +775,15 @@ int __fastcall TGame::CalcResult(int op)
else
wl = nChip * 8;
}
- else if(res!=3){ //Êä
+ else if(res!=3){ //输
ret = 2;
wl = -nChip;
}
- else if(nChip>0){ //ÓÐЧÁ÷Ë®²»¼ÆºÍ
+ else if(nChip>0){ //有效�水�计和
g_aGames.betData.amounts[0] -= nChip;
- if(bReal){ //ºÍ ʵ´òͳ¼Æ
- g_aGames.betData.amounts[1] -= nChip; //ʵ´òÁ÷Ë®
+ if(bReal){ //和 实打统计
+ g_aGames.betData.amounts[1] -= nChip; //实打�水
g_nRBReport -= nChip;
}
@@ -796,11 +796,11 @@ int __fastcall TGame::CalcResult(int op)
pLog->num = wl;
SendMessage(Application->MainFormHandle, UM_LOG_UPDATE, 0, (long)pLog);
}
- else if(op==3){//×¢µ¥³·Ïú
+ else if(op==3){//注�撤销
g_aGames.betData.amounts[0] -= nChip;
- if(bReal){ //ʵ´òͳ¼Æ
- g_aGames.betData.amounts[1] -= nChip; //ʵ´òÁ÷Ë®
+ if(bReal){ //实打统计
+ g_aGames.betData.amounts[1] -= nChip; //实打�水
g_nRBReport -= nChip;
}
@@ -810,11 +810,11 @@ int __fastcall TGame::CalcResult(int op)
pLog->ev = LOGEVT_QUASH;
SendMessage(Application->MainFormHandle, UM_LOG_UPDATE, 0, (long)pLog);
}
- else if(op==2 && (g_aGames.bFloat || !g_aGames.pRankChip)){ //³¬Ê±½ö´¦Àí×ÜÌå×éºÏ½×ÌÝ
+ else if(op==2 && (g_aGames.bFloat || !g_aGames.pRankChip)){ //超时仅处�总体组�阶梯
return ret;
}
- //´¦Àí×¢Âë²½Öè
+ //处ç�†æ³¨ç �æ¥éª¤
int iCP = iChipPolicy>=0 ? iChipPolicy : g_iChipPolicy;
TChipPolicy* pCP = (TChipPolicy*)g_aChipPolicies[iCP];
bool bGlobalChip = !bIndPolicy && (g_aGames.bFloat || pCP->kind>=KIND_CHIP_LEV
@@ -877,13 +877,13 @@ int __fastcall TGame::CalcResult(int op)
PostMessage(Application->MainFormHandle, UM_STATE_UPDATE, STATE_MISC, 0);
}
- if(op<=2) //³·Ïú²»¸üÐÂiCS
+ if(op<=2) //撤销�更新iCS
iCS = (pCP->id<<20) + (uCRnk<<12) + uCSeq;
if(wl!=0){
profit += wl;
- //Ä£Äâʵ´òÓ®Àûͳ¼Æ
+ //模拟实打赢利统计
if(bReal){
g_aGames.betData.profits[4] += wl;
g_aGames.betData.profits[7] += wl;
@@ -891,13 +891,13 @@ int __fastcall TGame::CalcResult(int op)
else
g_aGames.betData.profits[6] += wl;
- //µ±ÆÚÓ®Àû
+ //当期赢利
g_aGames.betData.profits[3] += wl;
- if(wl>0 && g_aGames.fCurrProfitPeak < g_aGames.betData.profits[3]) //¸üе±ÆÚÓ®Àû·åÖµ
+ if(wl>0 && g_aGames.fCurrProfitPeak < g_aGames.betData.profits[3]) //更新当期赢利峰值
g_aGames.fCurrProfitPeak = g_aGames.betData.profits[3];
- //×ÜÓ®Àû¼°·å¹ÈÖµ
+ //总赢利�峰谷值
double profit = g_aGames.betData.profits[0] + wl;
g_aGames.betData.profits[0] = profit;
if(profit>g_aGames.betData.profits[1]){
@@ -913,7 +913,7 @@ int __fastcall TGame::CalcResult(int op)
if(op!=2 && wl>=0 && nChip>0){
if(g_settings.bSimAccOn){
bool bUpdate = false;
- if(!bReal || g_settings.bSyncReal){ //Ó®¸úºÍ¶¼Òª¼Ó±¾½ð
+ if(!bReal || g_settings.bSyncReal){ //赢跟和都è¦�åŠ æœ¬é‡‘
g_settings.fSimAcc += wl + nChip;
bUpdate = true;
}
@@ -938,7 +938,7 @@ int __fastcall TGame::CalcResult(int op)
g_aGames.betData.counts[2] = seq[0];
PostMessage(Application->MainFormHandle, UM_STATE_UPDATE, STATE_COUNT, 2);
}
- seq[1] = 0;//Á¬ÊäÖÕÖ¹
+ seq[1] = 0;//连输终æ¢
}
else if(ret==2){
g_aGames.betData.counts[1]++;
@@ -950,7 +950,7 @@ int __fastcall TGame::CalcResult(int op)
g_aGames.betData.counts[3] = seq[1];
PostMessage(Application->MainFormHandle, UM_STATE_UPDATE, STATE_COUNT, 3);
}
- seq[0] = 0;//Á¬Ó®ÖÕÖ¹
+ seq[0] = 0;//连赢终æ¢
}
if(wl!=0)
@@ -965,8 +965,8 @@ void __fastcall TGame::HandleResult(int op)
{
timeout = 0;
- if(!aManBets.empty()){ //´¦ÀíÊÖ¹¤ÏÂ×¢
- if(op==0){ //Õý³£½áËã
+ if(!aManBets.empty()){ //处�手工下注
+ if(op==0){ //æ£å¸¸ç»“ç®—
int res = aRes.back();
double wl = 0;
for(int i=aManBets.size()-1; i>=0; i--){
@@ -976,13 +976,13 @@ void __fastcall TGame::HandleResult(int op)
wl += rMB.chips[0] * 0.95 - rMB.chips[1] - rMB.chips[2];
else if(res==2)
wl += rMB.chips[1] - rMB.chips[0] - rMB.chips[2];
- else if(res==3){ //ºÍ
+ else if(res==3){ //和
wl += rMB.chips[2] * 8; // - rMB.chips[0] - rMB.chips[1];
- int refund = rMB.chips[0] + rMB.chips[1]; //ÓÐЧͶע²»¼ÆºÍ
+ int refund = rMB.chips[0] + rMB.chips[1]; //有效投注�计和
if(refund){
g_nRBReport -= refund;
- g_aGames.betData.amounts[2] -= refund; //ÊÖ¹¤Á÷Ë®
+ g_aGames.betData.amounts[2] -= refund; //手工�水
PostMessage(Application->MainFormHandle, UM_STATE_UPDATE, STATE_MAN, 1);
}
}
@@ -997,17 +997,17 @@ void __fastcall TGame::HandleResult(int op)
PostMessage(Application->MainFormHandle, UM_STATE_UPDATE, STATE_MAN, 0);
}
}
- else if(op==1){ //Êý¾ÝÒì³£
+ else if(op==1){ //数�异常
aManBets.clear();
}
- else if(op==3){ //×¢µ¥³·Ïú
+ else if(op==3){ //注�撤销
for(int i=aManBets.size()-1; i>=0; i--){
TManBet& rMB = aManBets[i];
if(rMB.state==ST_BETTED){
- int refund = rMB.chips[0] + rMB.chips[1] + rMB.chips[2]; //ÓÐЧͶע²»¼ÆºÍ
+ int refund = rMB.chips[0] + rMB.chips[1] + rMB.chips[2]; //有效投注�计和
if(refund){
g_nRBReport -= refund;
- g_aGames.betData.amounts[2] -= refund; //ÊÖ¹¤Á÷Ë®
+ g_aGames.betData.amounts[2] -= refund; //手工�水
PostMessage(Application->MainFormHandle, UM_STATE_UPDATE, STATE_MAN, 1);
}
}
@@ -1019,9 +1019,9 @@ void __fastcall TGame::HandleResult(int op)
if((iState==ST_BETTED || iState==ST_EXPIRED) && ((iBetSeq & 0xFFFF)<=aRes.size() || op>=2)){
if(iState==ST_BETTED){
if(g_aGames.nBetted[bReal]>0)
- g_aGames.nBetted[bReal]--; //¼õÉÙÏÂ×¢¸öÊý
+ g_aGames.nBetted[bReal]--; //�少下注个数
if(!bIndPolicy && g_aGames.nBetted[2]>0)
- g_aGames.nBetted[2]--; //È«¾Ö¼ÆËãÏÂ×¢¸öÊý
+ g_aGames.nBetted[2]--; //全局计算下注个数
}
if(op==2)
@@ -1039,10 +1039,10 @@ void __fastcall TGame::HandleResult(int op)
if(bRun && (op<2 || dead)){
int wl = ret & 0xFF;
- //Ö¹Ó®Ö¹Ëð
+ //æ¢èµ¢æ¢æ�Ÿ
bool stop = false;
- if(wl==1 && g_settings.bTableStopWin && profit>=g_settings.nTableStopWin //µ¥×ÀÖ¹Ó®
- || wl==2 && g_settings.bTableStopLos && profit<=-g_settings.nTableStopLos){ //µ¥×ÀÖ¹Ó®
+ if(wl==1 && g_settings.bTableStopWin && profit>=g_settings.nTableStopWin //å�•桌æ¢èµ¢
+ || wl==2 && g_settings.bTableStopLos && profit<=-g_settings.nTableStopLos){ //å�•桌æ¢èµ¢
stop = true;
TBetLog* pLog = NewBetLog();
@@ -1052,14 +1052,14 @@ void __fastcall TGame::HandleResult(int op)
SendMessage(Application->MainFormHandle, UM_LOG_UPDATE, 0, (long)pLog);
}
- //´¦ÀíÓĮ̂
+ //处�游�
bool bFloat = false;
if(g_aGames.bFloat && g_aGames.iFloatGame==iGame){
- if((g_settings.iFloatMode & 1) && aBets.empty() //Á¬ÐøÏÂ×¢Ïî½áÊø»»Ì¨
- || (g_settings.iFloatMode & 4) && wl==2 //Ê任̨
- || (g_settings.iFloatMode & 8) && wl==1 //Ó®»»Ì¨
- || (g_settings.iFloatMode & 16) && wl==3 //ºÍ»»Ì¨
- || g_settings.bHaltBet && aRes.size()>=g_settings.nHaltBet){//¿ª¾ÖXÊÖºóÍ£Ö¹ÏÂ×¢
+ if((g_settings.iFloatMode & 1) && aBets.empty() //连ç»ä¸‹æ³¨é¡¹ç»“æ�Ÿæ�¢å�°
+ || (g_settings.iFloatMode & 4) && wl==2 //输��
+ || (g_settings.iFloatMode & 8) && wl==1 //赢��
+ || (g_settings.iFloatMode & 16) && wl==3 //和��
+ || g_settings.bHaltBet && aRes.size()>=g_settings.nHaltBet){//开局X手å�Žå�œæ¢ä¸‹æ³¨
aBets.clear();
g_aGames.SetSwitchable(true, iGame);
bFloat = true;
@@ -1071,27 +1071,27 @@ void __fastcall TGame::HandleResult(int op)
}
}
- //´¦Àí±¬ÀÂ
+ //处�爆缆
if(dead && (bIndPolicy || !g_aGames.bFloat)){
if(!bIndPolicy && g_aGames.pRankChip){
-// DebugPrint("×ÜÌå½×Ìݱ¬ÀÂ");
+// DebugPrint("总体阶梯爆缆");
int pause = dead==3 ? ((TChipPolicy*)g_aChipPolicies[g_iChipPolicy])->deadPause : 0;
SendMessage(Application->MainFormHandle, UM_GLOBAL_DEAD, dead-1, pause);
}
else{
bReset = true;
- if(dead==2) //оÖÖØÆô
+ if(dead==2) //新局��
bBreak = true;
}
}
- //´¦ÀíÖ¹Ó¯Ö¹Ëð
+ //处ç�†æ¢ç›ˆæ¢æ�Ÿ
if(stop){
bReset = true;
int iOp = wl==1 ? g_settings.iTableWinOp : g_settings.iTableLosOp;
ret += (iOp+1)<<24;
- if(iOp==1) //оÖÖØÆô
+ if(iOp==1) //新局��
bBreak = true;
}
@@ -1099,7 +1099,7 @@ void __fastcall TGame::HandleResult(int op)
PostMessage(Application->MainFormHandle, UM_FLOAT_BET, 0, 0);
}
else if(g_aGames.bFloat && g_aGames.iFloatGame==iGame){
- g_aGames.SetSwitchable(true, 0); //·ÇÇ¿ÖÆ»»Ì¨
+ g_aGames.SetSwitchable(true, 0); //�强制��
PostMessage(Application->MainFormHandle, UM_FLOAT_BET, 0, 0);
}
}
@@ -1127,9 +1127,9 @@ void __fastcall TGame::ClearBets()
if(iState==ST_BETTED || iState==ST_EXPIRED){
if(iState==ST_BETTED){
if(g_aGames.nBetted[bReal]>0)
- g_aGames.nBetted[bReal]--; //¼õÉÙÏÂ×¢¸öÊý
+ g_aGames.nBetted[bReal]--; //�少下注个数
if(!bIndPolicy && g_aGames.nBetted[2]>0)
- g_aGames.nBetted[2]--; //È«¾Ö¼ÆËãÏÂ×¢¸öÊý
+ g_aGames.nBetted[2]--; //全局计算下注个数
}
iState = iBetSeq = 0;
@@ -1146,18 +1146,18 @@ bool __fastcall TGame::CanBet()
void __fastcall TGame::GameOn()
{
- if(g_settings.bInitBetChipByStart || g_aGames.bFloat) //¹Ò»ú³õʼ»¯/ÓĮ̂ҲҪ³õʼ»¯
+ if(g_settings.bInitBetChipByStart || g_aGames.bFloat) //挂机�始化/游�也��始化
bReset = true;
- if(g_settings.bInitTabProfitByStart){ //¿ªÊ¼¹Ò»úÖØÖĄ̃×ÀÓ®Àû
+ if(g_settings.bInitTabProfitByStart){ //开始挂机�置�桌赢利
profit = 0;
PostMessage(hTable, UM_TAB_UPDATE, UPDATE_RESET, 0);
}
- if(g_settings.bInitClearTabLog) //¿ªÊ¼¹Ò»úÇå¿Ǫ̃×ÀÏÂ×¢¼Ç¼
+ if(g_settings.bInitClearTabLog) //开始挂机清空�桌下注记录
SendMessage(hTable, UM_LOG_UPDATE, -1, 0);
- if(g_settings.bWaitNew && aRes.size()>0){ //¹Ò»úµÈ´ýоÖ
+ if(g_settings.bWaitNew && aRes.size()>0){ //挂机ç‰å¾…æ–°å±€
bBreak = true;
}
else{
@@ -1185,7 +1185,7 @@ void __fastcall TGame::AutoBetOn(bool bR)
{
CMutexLock mutex(pSema);
- if(iState>=ST_NOBET && iState<=ST_BETTED) //ÒÑÏÂ×¢
+ if(iState>=ST_NOBET && iState<=ST_BETTED) //已下注
return;
if((iState==ST_PAID || iState==ST_QUASH) && gmstatus!=0 && gmstatus!=2){
@@ -1195,7 +1195,7 @@ void __fastcall TGame::AutoBetOn(bool bR)
if(bR) bReset = true;
- if(aRes.empty() && bRun && g_bGameOn && (gmstatus==1 || gmstatus==12)){ //оÖÉϱ¨£¬²»ÊÜÔÝÍ£Ó°Ïì
+ if(aRes.empty() && bRun && g_bGameOn && (gmstatus==1 || gmstatus==12)){ //新局上报,��暂�影�
bBreak = false;
if(iState!=ST_ROUND){
@@ -1205,37 +1205,37 @@ void __fastcall TGame::AutoBetOn(bool bR)
pLog->ev = LOGEVT_ROUND;
SendMessage(Application->MainFormHandle, UM_LOG_UPDATE, 0, (long)pLog);
- if(g_settings.bInitBetByGame){ //оÖÖØÖôò·¨
+ if(g_settings.bInitBetByGame){ //新局�置打法
iBet = iBetSeq = 0;
aBets.clear();
}
- if(g_settings.bInitChipByGame){ //оÖÖØÖÃ×¢Âë
+ if(g_settings.bInitChipByGame){ //æ–°å±€é‡�置注ç �
nChip = iChipSeq = 0;
}
- if(g_settings.bInitProfitByGame && profit!=0 //оÖÖØÖÃÓ®Àû
- || g_settings.bTableStopWin && profit>=g_settings.nTableStopWin //Ö¹Ó®ÖØÖÃ
- || g_settings.bTableStopLos && profit<=-g_settings.nTableStopLos){ //Ö¹ËðÖØÖÃ
+ if(g_settings.bInitProfitByGame && profit!=0 //新局�置赢利
+ || g_settings.bTableStopWin && profit>=g_settings.nTableStopWin //æ¢èµ¢é‡�ç½®
+ || g_settings.bTableStopLos && profit<=-g_settings.nTableStopLos){ //æ¢æ�Ÿé‡�ç½®
profit = 0;
PostMessage(hTable, UM_TAB_UPDATE, UPDATE_RESET, 0);
}
}
- if(aBets.empty()) //Á¬ÐøÏÂ×¢¿É´ÓоֿªÊ¼
+ if(aBets.empty()) //连ç»ä¸‹æ³¨å�¯ä»Žæ–°å±€å¼€å§‹
return;
}
- if(bBreak || gmstatus!=1 || !CanBet() || !g_bSimulate && timeout<3){ //·ÇÏÂע״̬/ÔÝÍ£ÖÐ/ʵ´òʱ¼äÌ«¶Ì£¬·ÅÆú
+ if(bBreak || gmstatus!=1 || !CanBet() || !g_bSimulate && timeout<3){ //é�žä¸‹æ³¨çжæ€�/æš‚å�œä¸/实打时间太çŸï¼Œæ”¾å¼ƒ
return;
}
- if(g_settings.bHoldBet && aRes.size()=g_settings.nHaltBet){ //¿ª¾ÖXÊÖºóÍ£Ö¹ÏÂ×¢
+ if(g_settings.bHoldBet && aRes.size()=g_settings.nHaltBet){ //开局X手å�Žå�œæ¢ä¸‹æ³¨
return;
}
- if(g_aGames.bFloat && !bIndPolicy && !g_aGames.CanFloatBet(iGame)){//ÓĮ̂ÊÇ·ñÄÜÏÂ×¢
+ if(g_aGames.bFloat && !bIndPolicy && !g_aGames.CanFloatBet(iGame)){//游�是�能下注
return;
}
@@ -1244,22 +1244,22 @@ void __fastcall TGame::AutoBetOn(bool bR)
CalcBet();
if(g_aGames.bFloat && !bIndPolicy){
- if(!g_aGames.CanFloatBet(iGame)){ //ÓĮ̂ÊÇ·ñÄÜÏÂ×¢
+ if(!g_aGames.CanFloatBet(iGame)){ //游�是�能下注
iBet = iBetSeq = bBreak = 0;
aBets.clear();
}
else if(iBet>0 && iBet<4){
- g_aGames.SetSwitchable(false, iGame); //ÓĮ̂ÏÂ×¢
+ g_aGames.SetSwitchable(false, iGame); //游�下注
}
else if(!g_aGames.bSwitchable && g_aGames.iFloatGame==iGame
- && aBets.size()==1 && (g_settings.iFloatMode & 1)){ //×îºóÒ»Ïî²»´ò£¬Ç¿ÖÆ»»Ì¨
+ && aBets.size()==1 && (g_settings.iFloatMode & 1)){ //最�一项�打,强制��
g_aGames.SetSwitchable(true, iGame);
}
}
if(iBet==0 || iBet==4){
- if(!aBets.empty()){//Á¬ÐøÏÂ×¢ ²»´ò/¾ÖÍ£²»¿ÉÈ¡Ïû
- aBets.erase(aBets.begin()); //ɾ³ý±¾Ïî
+ if(!aBets.empty()){//连ç»ä¸‹æ³¨ ä¸�打/å±€å�œä¸�å�¯å�–消
+ aBets.erase(aBets.begin()); //åˆ é™¤æœ¬é¡¹
iState = ST_NOBET;
if(hTable) PostMessage(hTable, UM_LOG_UPDATE, iState, 0);
@@ -1282,13 +1282,13 @@ void __fastcall TGame::AutoBetOn(bool bR)
if(hTable) PostMessage(hTable, UM_LOG_UPDATE, iState, 0);
PostMessage(Application->MainFormHandle, UM_SETBET, iGame, 0);
- if(nChip>g_aGames.betData.maxChip){ //×î´óÏÂ×¢½ð¶î
+ if(nChip>g_aGames.betData.maxChip){ //最大下注金�
g_aGames.betData.maxChip = nChip;
PostMessage(Application->MainFormHandle, UM_STATE_UPDATE, STATE_MISC, 0);
}
}
- //Ö¹Ó®Ö¹ËðºóÐèÖØÖÃÓ®Àû
+ //æ¢èµ¢æ¢æ�Ÿå�Žéœ€é‡�置赢利
if(g_settings.bTableStopWin && profit>=g_settings.nTableStopWin
|| g_settings.bTableStopLos && profit<=-g_settings.nTableStopLos){
profit = 0;
@@ -1301,7 +1301,7 @@ void __fastcall TGame::AutoBetOff(bool bB)
{
CMutexLock mutex(pSema);
- if(iState==ST_BETSET || iState==ST_BETTING){ //ÏÂ×¢³¬Ê±»òÈ¡Ïû
+ if(iState==ST_BETSET || iState==ST_BETTING){ //下注超时或�消
iState = ST_CANCELED;
iBet = nChip = 0;
// iBetSeq &= 0xFFFF0000;
@@ -1313,9 +1313,9 @@ void __fastcall TGame::AutoBetOff(bool bB)
// aBets.clear();
if(iState!=ST_BETTED && g_bGameOn && g_aGames.bFloat && !g_aGames.bSwitchable
- && g_aGames.iFloatGame==iGame){ //ÓĮ̂ȡÏûÏÂ×¢±êÖ¾£¬ÒÔÃâ×èÈûÏÂ×¢
- if(!bRun || (g_settings.iFloatMode & 1) && aBets.empty()){ //ÿע»»Ì¨»ò±¾Ì¨Í£Ö¹
- g_aGames.SetSwitchable(true, 0); //·ÇÇ¿ÖÆ»»Ì¨
+ && g_aGames.iFloatGame==iGame){ //游å�°å�–æ¶ˆä¸‹æ³¨æ ‡å¿—ï¼Œä»¥å…�阻塞下注
+ if(!bRun || (g_settings.iFloatMode & 1) && aBets.empty()){ //æ¯�注æ�¢å�°æˆ–本å�°å�œæ¢
+ g_aGames.SetSwitchable(true, 0); //�强制��
PostMessage(Application->MainFormHandle, UM_FLOAT_BET, 0, 0);
}
}
@@ -1331,12 +1331,12 @@ void __fastcall TGame::AutoBetOff(bool bB)
void __fastcall TGame::BetResp(int res, int chips[])
{
- if(chips){ //ABThread·µ»ØÊ±½öÊÖ¹¤ÏÂ×¢»áЯ´øchips
- for(int i=aManBets.size()-1; i>=0; i--){ //ÏÈÆ¥ÅäÊÖ¹¤ÏÂ×¢
+ if(chips){ //ABThread返回时仅手工下注会�带chips
+ for(int i=aManBets.size()-1; i>=0; i--){ //先匹�手工下注
TManBet& rMB = aManBets[i];
if(rMB.state==ST_BETTING){
- if(g_iPlatform==PF_DB && res){ //DBƽ̨ÏÂעʧ°ÜÎÞ·¨Æ¥Åä½ð¶î
+ if(g_iPlatform==PF_DB && res){ //DBå¹³å�°ä¸‹æ³¨å¤±è´¥æ— 法匹é…�金é¢�
bool bMatch = true;
if(chips[0] || chips[1] || chips[2]){
for(int c=0; c<3; c++){
@@ -1350,20 +1350,20 @@ void __fastcall TGame::BetResp(int res, int chips[])
if(!bMatch)
continue;
}
- else if(memcmp(chips, rMB.chips, sizeof(rMB.chips))) //·ÇDBƽ̨»òÏÂ×¢³É¹¦ ÐèÈ·ÈϽð¶îÆ¥Åä
+ else if(memcmp(chips, rMB.chips, sizeof(rMB.chips))) //�DB平�或下注�功 需确认金�匹�
continue;
if(res==0){
rMB.state = ST_BETTED;
int amo = chips[0] + chips[1] + chips[2];
- g_aGames.betData.amounts[2] += amo; //ÊÖ¹¤Á÷Ë®
+ g_aGames.betData.amounts[2] += amo; //手工�水
g_nRBReport += amo;
PostMessage(Application->MainFormHandle, UM_STATE_UPDATE, STATE_MAN, 1);
}
else
- aManBets.erase(aManBets.begin()+i); //ʧ°Üɾ³ý
+ aManBets.erase(aManBets.begin()+i); //å¤±è´¥åˆ é™¤
if(hTable) PostMessage(hTable, UM_TAB_UPDATE, UPDATE_MANBET, res);
@@ -1372,15 +1372,15 @@ void __fastcall TGame::BetResp(int res, int chips[])
}
}
- //δƥÅäµ½ÊÖ¹¤ÏÂ×¢£¬ÔÙ´¦Àí×Ô¶¯ÏÂ×¢
+ //未匹�到手工下注,�处�自动下注
if(iState==ST_BETTING){
iState = res==0 ? ST_BETTED : ST_FAILED;
if(hTable) PostMessage(hTable, UM_LOG_UPDATE, iState, res);
if(res==0){
- g_aGames.nBetted[bReal]++; //Ôö¼ÓÏÂ×¢¸öÊý
+ g_aGames.nBetted[bReal]++; //å¢žåŠ ä¸‹æ³¨ä¸ªæ•°
if(!bIndPolicy)
- g_aGames.nBetted[2]++; //È«¾Ö¼ÆËãÏÂ×¢
+ g_aGames.nBetted[2]++; //全局计算下注
TBetLog* pLog = NewBetLog();
pLog->ev = LOGEVT_BET;
@@ -1392,7 +1392,7 @@ void __fastcall TGame::BetResp(int res, int chips[])
g_aGames.betData.amounts[0] += nChip;
if(bReal){
- g_aGames.betData.amounts[1] += nChip; //ʵ´òÁ÷Ë®
+ g_aGames.betData.amounts[1] += nChip; //实打�水
g_nRBReport += nChip;
}
@@ -1416,8 +1416,8 @@ void __fastcall TGame::BetResp(int res, int chips[])
}
}
else{
- if(g_bGameOn && g_aGames.bFloat && g_aGames.iFloatGame==iGame){ //ÓĮ̂ȡÏûÏÂ×¢±êÖ¾£¬ÒÔÃâ×èÈûÏÂ×¢
- g_aGames.SetSwitchable(true, 0); //·ÇÇ¿ÖÆ»»Ì¨
+ if(g_bGameOn && g_aGames.bFloat && g_aGames.iFloatGame==iGame){ //游å�°å�–æ¶ˆä¸‹æ³¨æ ‡å¿—ï¼Œä»¥å…�阻塞下注
+ g_aGames.SetSwitchable(true, 0); //�强制��
PostMessage(Application->MainFormHandle, UM_FLOAT_BET, 0, 0);
}
}
@@ -1434,20 +1434,20 @@ void __fastcall TGame::Shuffle()
if(bReset)
ResetBet();
else{
- if(g_settings.bInitBetByGame){ //оÖÖØÖôò·¨
+ if(g_settings.bInitBetByGame){ //新局�置打法
iBet = iBetSeq = 0;
aBets.clear();
}
- if(g_settings.bInitChipByGame){ //оÖÖØÖÃ×¢Âë
+ if(g_settings.bInitChipByGame){ //æ–°å±€é‡�置注ç �
nChip = iChipSeq = 0;
}
iState = ST_INIT;
}
- if(g_settings.bInitProfitByGame && profit!=0 //оÖÖØÖÃÓ®Àû
- || g_settings.bTableStopWin && profit>=g_settings.nTableStopWin //Ö¹Ó®ÖØÖÃ
- || g_settings.bTableStopLos && profit<=-g_settings.nTableStopLos){ //Ö¹ËðÖØÖÃ
+ if(g_settings.bInitProfitByGame && profit!=0 //新局�置赢利
+ || g_settings.bTableStopWin && profit>=g_settings.nTableStopWin //æ¢èµ¢é‡�ç½®
+ || g_settings.bTableStopLos && profit<=-g_settings.nTableStopLos){ //æ¢æ�Ÿé‡�ç½®
profit = 0;
PostMessage(hTable, UM_TAB_UPDATE, UPDATE_RESET, 0);
}
@@ -1458,8 +1458,8 @@ void __fastcall TGame::Shuffle()
}
if(g_bGameOn && g_aGames.bFloat && g_aGames.iFloatGame==iGame
- && ((g_settings.iFloatMode & 2) //Ï´ÅÆ»»Ì¨
- || (g_settings.iFloatMode & 1) && aBets.empty())){ //Á¬×¢Í껻̨±»ÖØÖÃ
+ && ((g_settings.iFloatMode & 2) //洗牌��
+ || (g_settings.iFloatMode & 1) && aBets.empty())){ //连注完��被�置
aBets.clear();
g_aGames.SetSwitchable(true, iGame);
PostMessage(Application->MainFormHandle, UM_FLOAT_BET, 0, 0);
@@ -1479,7 +1479,7 @@ int __fastcall TGame::ParseCard(int c)
void __fastcall TGame::BuildRoadmap(char wt)
{
- //´ó·
+ //大路
int size0 = aRoad[0].size();
if(wt!=3){
if(lastRoad[0]!=wt){ aRoad[0].push_back(1); size0++;}
@@ -1493,17 +1493,17 @@ void __fastcall TGame::BuildRoadmap(char wt)
else
return;
- //ÏÂÈý·
+ //下三路
int rc[5];
- rc[0] = aRoad[0].back(); //×îºó1ÁиöÊý
+ rc[0] = aRoad[0].back(); //最�1列个数
for(int i=1; i<5; i++)
rc[i] = size0>i ? aRoad[0][size0-i-1] : 0;
for(int i=1; i<4; i++){
if(!rc[i] || rc[0]==1 && !rc[i+1]) return;
- char cl = rc[0]==1 ? (rc[1]==rc[i+1] ? 1 : 2) //Æë½ÅÌø»ºì¡¢Í»½ÅÌø»À¶
- : (rc[0]<=rc[i] || rc[0]>=rc[i]+2 ? 1 : 2); //ÓжԻºì¡¢ÎÞ¶Ô»À¶¡¢Í»½ÅÁ¬»ºì
+ char cl = rc[0]==1 ? (rc[1]==rc[i+1] ? 1 : 2) //�脚跳画红��脚跳画�
+ : (rc[0]<=rc[i] || rc[0]>=rc[i]+2 ? 1 : 2); //有对画红ã€�æ— å¯¹ç”»è“�ã€�çª�脚连画红
if(lastRoad[i]!=cl) aRoad[i].push_back(1), size0++;
else aRoad[i].back()++;
aMap[i].DrawMap(cl, lastRoad[i]);
@@ -1596,10 +1596,10 @@ void __fastcall TRoadmap::DrawMap(char curr, char last)
else
curr = aCols[iCol][iRow] + 0x04;
}
- else if(!last && iRoot>=0){ //Ç°ÃæÖ»ÓкÍ
+ else if(!last && iRoot>=0){ //���有和
curr += aCols[iCol][iRow];
}
- else if(curr!=last){ //ÐÂÁÐ
+ else if(curr!=last){ //新列
++iRoot;
if(iCol0){
@@ -1793,7 +1793,7 @@ void __fastcall TGameArray::SetSwitchable(bool bS, int iG)
bSwitchable = bS;
iFloatGame = iG;
- //¼ì²éÊÇ·ñ½öһ̨ÔÚÔËÐÐ
+ //检查是�仅一�在�行
if(bS && iG){
int nRun = 0;
for(int i=0; igmcode = subs[2];
- pG->gmstatus = subs[3].ToInt(); //ÏÈÉèΪ½áË㣬±ÜÃâÖØ¸´
+ pG->gmstatus = subs[3].ToInt(); //先设为结算,����
if(pG->gmstatus==1)
pG->gmstatus = 2;
// else if(pG->gmstatus==2)
diff --git a/GameUnit.h b/GameUnit.h
index 00de39d..385f1d7 100644
--- a/GameUnit.h
+++ b/GameUnit.h
@@ -1,4 +1,4 @@
-//---------------------------------------------------------------------------
+//---------------------------------------------------------------------------
#ifndef GameUnitH
#define GameUnitH
@@ -45,8 +45,8 @@
#define UPDATE_TIME 2
#define UPDATE_MANBET 3
#define UPDATE_MANRES 4
-#define UPDATE_RESET 5 //ÖØÖÃÊý¾Ý
-#define UPDATE_IP 6 //ÖØÖöÀÁ¢²ßÂÔ
+#define UPDATE_RESET 5 //�置数�
+#define UPDATE_IP 6 //é‡�置独立ç–ç•¥
#define STATE_AMOUNT 0
#define STATE_BET_R 1
@@ -80,7 +80,7 @@
#define ST_PAID 6
#define ST_CANCELED 7
#define ST_FAILED 8
-#define ST_QUASH 9 //×¢µ¥³·Ïú
+#define ST_QUASH 9 //注�撤销
#define ST_ROUND 10
#define ST_SHUFFLE 11
@@ -90,54 +90,54 @@
//---------------------------------------------------------------------------
using namespace std;
-//ͼ±íÊý¾Ý
+//图表数�
typedef struct tagDot{
- int val; //ÊýÖµ
- int ts; //ʱ¼ä
+ int val; //数值
+ int ts; //æ—¶é—´
tagDot(){ memset( this, 0, sizeof(tagDot)); };
tagDot(int v, int t){ val=v,ts=t; };
}TDot;
-//¹Ò»úÈÕÖ¾
+//挂机日志
typedef struct tagBetLog{
- int ts; //ʱ¼ä
- int num; //ÊýÖµ
- char tno[14];//̨×ÀÃû
- char ev; //ʼþ
- char op; //Ñ¡Ïî
+ int ts; //æ—¶é—´
+ int num; //数值
+ char tno[14];//�桌�
+ char ev; //事件
+ char op; //选项
tagBetLog(){memset( this, 0, sizeof(tagBetLog));};
}TBetLog;
-// ¹Ò»úÊý¾Ý
+// 挂机数�
typedef struct tagBetData{
- double profits[8]; //×ÜÓ®Àû/×ÜÓ®Àû·åÖµ/×ÜÓ®Àû¹ÈÖµ/µ±ÆÚÓ®Àû/ʵ´ò×ÜÓ®Àû/ÊÖ¹¤×ÜÓ®Àû/µ±ÆÚÄ£ÄâÓ®Àû/µ±ÆÚʵ´òÓ®Àû
- int amounts[3], //×ÜÁ÷Ë®/ʵ´òÁ÷Ë®/ÊÖ¹¤Á÷Ë®
- counts[4], //Ó®¼ÆÊý/Ê伯Êý/×î´óÁ¬Ó®/Á¬Ê伯Êý
- maxChip, //×î´ó×¢¶î
- dead; //±¬À´ÎÊý
+ double profits[8]; //总赢利/总赢利峰值/总赢利谷值/当期赢利/实打总赢利/手工总赢利/当期模拟赢利/当期实打赢利
+ int amounts[3], //总�水/实打�水/手工�水
+ counts[4], //赢计数/输计数/最大连赢/连输计数
+ maxChip, //最大注�
+ dead; //爆缆次数
tagBetData(){Reset();};
void Reset(){memset( this, 0, sizeof(tagBetData));};
}TBetData;
-//ÊÖ¹¤ÏÂ×¢
+//手工下注
typedef struct tagManBet{
- int chips[3]; //×¢Âë 0=ׯ 1=ÏÐ 2=ƽ
- int state; //״̬ ST_INIT/ST_BETTING/ST_BETTED
+ int chips[3]; //注ç � 0=庄 1=é—² 2=å¹³
+ int state; //状� ST_INIT/ST_BETTING/ST_BETTED
tagManBet(){memset( this, 0, sizeof(tagManBet));};
}TManBet;
-//½×ÌÝ×¢Âë
+//阶梯注ç �
class TRankChip{
protected:
- int iType, //×¢ÂëÀàÐÍ
- iRank, //×¢Âë²ãÊý
- nRnkChip; //µ±²ã×¢Âë
- bool bWait; //µÈ´ý½áËã
- TChipPolicy* pPolicy; //×¢Âë·½°¸
+ int iType, //注ç �类型
+ iRank, //注ç �层数
+ nRnkChip; //当层注ç �
+ bool bWait; //ç‰å¾…结算
+ TChipPolicy* pPolicy; //注ç �方案
public:
TRankChip();
@@ -150,12 +150,12 @@ public:
virtual int __fastcall HandleResult(int res, double wl) = 0;
};
-//²ã¼¶×¢Âë
+//层级注ç �
class TTierChip : public TRankChip{
- int nWLDiff, //±¾²ãÓ®Êä²î
- nAccChip, //ÀÛ¼Ó×¢Âë
- nLos, //µ±²ãÊä¶î
- nCount; //µ±²ãÏÂ×¢¼ÆÊý
+ int nWLDiff, //本层赢输差
+ nAccChip, //ç´¯åŠ æ³¨ç �
+ nLos, //当层输�
+ nCount; //当层下注计数
public:
TTierChip();
@@ -165,11 +165,11 @@ public:
virtual int __fastcall HandleResult(int res, double wl);
};
-//½×ÌÝ×¢Âë
+//阶梯注ç �
class TLevelChip : public TRankChip{
protected:
- bool bGlobal; //×ÜÌ弯Ëã
- double fWLDiff; //±¾²ãÊäÓ®½ð¶î
+ bool bGlobal; //总体计算
+ double fWLDiff; //本层输赢金�
public:
TLevelChip(bool bG=false);
@@ -180,12 +180,12 @@ public:
virtual int __fastcall HandleResult(int res, double wl);
};
-//×éºÏ½×ÌÝ×¢Âë
+//组å�ˆé˜¶æ¢¯æ³¨ç �
class TComboChip : public TLevelChip{
- int iRnkSeq; //µ±²ã×¢Âë²½Öè
- int nRnkMul; //µ±²ã±¶Êý
+ int iRnkSeq; //当层注ç �æ¥éª¤
+ int nRnkMul; //当层�数
- TChipPolicy* pRnkPolicy; //µ±²ã×¢Âë·½°¸
+ TChipPolicy* pRnkPolicy; //当层注ç �方案
public:
TComboChip(bool bG=false);
@@ -196,11 +196,11 @@ public:
int __fastcall GetComboChip(int& iRnk, int& iSeq);
};
-//Ó®Êä´Î²î×¢Âë
+//赢输次差注ç �
class TWLDiffChip : public TRankChip{
protected:
- bool bGlobal; //×ÜÌ弯Ëã
- int nWLDiff; //ÊäÓ®´Î²î
+ bool bGlobal; //总体计算
+ int nWLDiff; //输赢次差
public:
TWLDiffChip(bool bG=false);
@@ -211,7 +211,7 @@ public:
};
-//·Öéͼ
+//è·¯ç� 图
class TRoadmap{
public:
vector aCols;
@@ -224,63 +224,63 @@ public:
void __fastcall CheckColumn();
};
-//̨×À
+//�桌
class TTableFrame;
class TGame
{
public:
int iGame; //gameId
- //̨×ÀÏà¹Ø
- String vid; //·¿¼äºÅ
+ //�桌相关
+ String vid; //房间�
String gmcode;
- int gmstatus; //0=½áËã 1=ÏÂ×¢ 2=¿ªÅÆ 11=Ï´ÅÆ 12=ά»¤
+ int gmstatus; //0=结算 1=下注 2=开牌 11=洗牌 12=维护
int timeout;
- int countdown; //¹Ì¶¨µ¹¼ÆÊ±
- char winCount[3]; //ׯÏмÆÊý [0]ׯ [1]ÏÐ [2]ƽ
- String bcard; //םů 2-3ÕÅ 0-9 0,5,2
- String pcard; //ÏÐÅÆ 3,4,_
+ int countdown; //固定倒计时
+ char winCount[3]; //庄闲计数 [0]庄 [1]闲 [2]平
+ String bcard; //庄牌 2-3å¼ 0-9 0,5,2
+ String pcard; //闲牌 3,4,_
- bool bRun, //ÔËÐÐ
- bRev, //·´´ò
- bPause, //ÔÝÍ£
- bReset, //ÊÇ·ñÖØÖôò·¨×¢Âë
- bBreak; //ÊÇ·ñµÈ´ýоÖ
+ bool bRun, //�行
+ bRev, //�打
+ bPause, //暂�
+ bReset, //是å�¦é‡�置打法注ç �
+ bBreak; //是å�¦ç‰å¾…æ–°å±€
int iRoad;
- bool bIndPolicy; //ÊÇ·ñ¶ÀÁ¢²ßÂÔ
- int iBetPolicy, iChipPolicy, nChipMul; //¶ÀÁ¢²ßÂÔ
+ bool bIndPolicy; //是å�¦ç‹¬ç«‹ç–ç•¥
+ int iBetPolicy, iChipPolicy, nChipMul; //独立ç–ç•¥
- //ÏÂ×¢Ïà¹Ø
+ //下注相关
int iState; //INIT/BETTING/BETTED
- int iBet; //ÏÂ×¢Ïî
- int nChip; //ÏÂ×¢½ð¶î
- int iBetSeq; //ÏÂ×¢ÊÖÊý+´ò·¨
- int iChipSeq; //×¢Âë²½Öè
-// bool bGlobalChip; //ÊÇ·ñÈ«¾Ö×¢Âë
- bool bReal; //Ä£Äâ/ʵ´ò 0=Ä£Äâ 1=ʵ´ò
- vector aBets; //Ê£ÓàÁ¬ÐøÏÂ×¢Ïî
+ int iBet; //下注项
+ int nChip; //下注金�
+ int iBetSeq; //下注手数+打法
+ int iChipSeq; //注ç �æ¥éª¤
+// bool bGlobalChip; //是å�¦å…¨å±€æ³¨ç �
+ bool bReal; //模拟/实打 0=模拟 1=实打
+ vector aBets; //剩余连ç»ä¸‹æ³¨é¡¹
- vector aManBets; //ÊÖ¹¤ÏÂ×¢
+ vector aManBets; //手工下注
- TRankChip * pRankChip; //²ã¼¶×¢Âë
+ TRankChip * pRankChip; //层级注ç �
- //ͳ¼ÆÏà¹Ø
- double profit; //µ±Ç°Ó®Àû
- int seqCount[2]; //Á¬Ó®/Á¬Ê伯Êý
+ //统计相关
+ double profit; //当�赢利
+ int seqCount[2]; //连赢/连输计数
- HWND hTable; //̨×À¾ä±ú£¬Í¨¹ýÏûÏ¢²Ù×÷UI
+ HWND hTable; //�桌�柄,通过消��作UI
CSema* pSema;
- //·µ¥Êý¾Ý
- vector aRes; //ÀúÊ·½á¹û
- vector aRoad[4]; //´ó·/´óÑÛ·/С·/Сǿ·
+ //路�数�
+ vector aRes; //历�结果
+ vector aRoad[4]; //大路/大眼路/�路/�强路
char lastRoad[4];
- TRoadmap aMap[4]; //·Öéͼ
+ TRoadmap aMap[4]; //è·¯ç� 图
TGame(int iG);
~TGame();
- void __fastcall HandleResult(int op=0); //op =0Õý³£´¦Àí =1Êý¾ÝÒì³£ =2½áË㳬ʱ =3ά»¤×¢Ïú
+ void __fastcall HandleResult(int op=0); //op =0æ£å¸¸å¤„ç�† =1æ•°æ�®å¼‚常 =2结算超时 =3维护注销
void __fastcall AutoBetOn(bool bReset=false);
void __fastcall AutoBetOff(bool bBreak=false);
void __fastcall ManualBetOn(int chips[]);
@@ -300,9 +300,9 @@ public:
TBetLog* __fastcall NewBetLog();
void __fastcall GameOn();
void __fastcall GameOff();
- void __fastcall BetResp(int state, int chips[]=NULL); //state ÏÂע״̬ 0=³É¹¦ 10=µÍÓÚÏÞºì 11=¸ßÓÚÏÞºì 25=ÒÑÍ£Ö¹ÏÂ×¢ 26=Óà¶î²»×ã ÆäËü=δ֪
+ void __fastcall BetResp(int state, int chips[]=NULL); //state 下注状æ€� 0=æˆ�功 10=低于é™�红 11=高于é™�红 25=å·²å�œæ¢ä¸‹æ³¨ 26=ä½™é¢�ä¸�è¶³ 其它=未知
void __fastcall Pause(bool bP){bPause = bP;};
- int __fastcall Color2Bet(TBetPolicy* pBP, char clr); //ÏÂÈý·ÏÂ×¢ clr=ºìÀ¶ ·µ»Ø×¯ÏÐ
+ int __fastcall Color2Bet(TBetPolicy* pBP, char clr); //下三路下注 clr=红� 返回庄闲
void __fastcall ClearRankChip();
TRankChip* __fastcall GetRankChip(int type);
void __fastcall ResetIP();
@@ -313,22 +313,22 @@ class TGameArray : public vector
public:
CSema* pSema;
vector aGames;
- TBetData betData; //×ÜÊäӮ״̬¼°¼ÆÊý
+ TBetData betData; //总输赢状��计数
- //ÓĮ̂Ïà¹Ø
- bool bFloat, //ÊÇ·ñÓĮ̂
- bSwitchable; //¿É·ñ»»Ì¨
- int iFloatGame; //ÏÂע̨ºÅ
+ //游�相关
+ bool bFloat, //是�游�
+ bSwitchable; //����
+ int iFloatGame; //下注��
- //È«¾Ö×¢Âë
- int iChipSeq, //È«¾Ö×¢Âë²½Öè
- seqCount[2]; //Á¬Ó®/Á¬Ê伯Êý
+ //全局注ç �
+ int iChipSeq, //全局注ç �æ¥éª¤
+ seqCount[2]; //连赢/连输计数
- TRankChip * pRankChip; //²ã¼¶×¢Âë
+ TRankChip * pRankChip; //层级注ç �
- int runTime, //¹Ò»úʱ³¤
- nBetted[3]; //´ý½áËãµÄÏÂ×¢ Ä£Äâ/ʵ´ò/È«¾Ö¼ÆËã
- double fCurrProfitPeak; //×î´óµ±ÆÚÓ®Àû
+ int runTime, //挂机时长
+ nBetted[3]; //待结算的下注 模拟/实打/全局计算
+ double fCurrProfitPeak; //最大当期赢利
TGameArray();
~TGameArray();
@@ -358,7 +358,7 @@ class TIPGame
{
public:
String vid; //gameId
- int iBetPolicy, iChipPolicy, nChipMul; //¶ÀÁ¢²ßÂÔ
+ int iBetPolicy, iChipPolicy, nChipMul; //独立ç–ç•¥
TGame* pGame;
TIPGame(String v, int b, int c, int m){pGame=NULL, vid=v,
@@ -384,18 +384,18 @@ public:
//---------------------------------------------------------------------------
int __fastcall Vid2Gid(String vid);
-extern TSettings g_settings; //»ù±¾ÉèÖÃ
+extern TSettings g_settings; //基本设置
extern TGameArray g_aGames;
-extern double g_fBalance; //ÕË»§Óà¶î
-extern int g_iRoad; //È«¾Ö·ÖéÀàÐÍ 0=ÁùÖé· 1=´ó· 2=´óÑÛ· 3=С· 4=Сǿ·
-extern bool g_bSimulate, //Ä£Äâ/ʵ´ò
- g_bGameOn, //¿ªÊ¼¹Ò»ú
- g_bShowSetting, //¿ªÊ¼¹Ò»úʱÏÔʾÉèÖÃÒ³Ãæ
- g_bDeadPause, //È«¾Ö±¬ÀÂÔÝÍ£
- g_bBetPause; //×ÜÌåÖ¹Ó®Ö¹ËðÔÝÍ£
-extern int g_MinOnBet, //×îСעÂë
- g_MaxOnBet; //×î´ó×¢Âë
-extern int g_nRBReport; //ʵ´òÁ÷Ë®Éϱ¨
-extern vector g_aDots[4]; //×ʽðͼ±íÊý¾Ý ×ÜÓ®Àû/Ä£Äâ±¾½ð/ÕË»§Óà¶î/×ÜÊäÓ®²î
-extern TIPGameArray g_aIPGames; //¶ÀÁ¢²ßÂǪ̂×À
+extern double g_fBalance; //账户余�
+extern int g_iRoad; //全局路ç� 类型 0=å…ç� è·¯ 1=大路 2=大眼路 3=å°�è·¯ 4=å°�强路
+extern bool g_bSimulate, //模拟/实打
+ g_bGameOn, //开始挂机
+ g_bShowSetting, //开始挂机时显示设置页�
+ g_bDeadPause, //全局爆缆暂�
+ g_bBetPause; //总体æ¢èµ¢æ¢æ�Ÿæš‚å�œ
+extern int g_MinOnBet, //最å°�注ç �
+ g_MaxOnBet; //最大注ç �
+extern int g_nRBReport; //实打�水上报
+extern vector g_aDots[4]; //资金图表数� 总赢利/模拟本金/账户余�/总输赢差
+extern TIPGameArray g_aIPGames; //独立ç–ç•¥å�°æ¡Œ
#endif
diff --git a/HookJS.cpp b/HookJS.cpp
index 5ef7d0a..b931e81 100644
--- a/HookJS.cpp
+++ b/HookJS.cpp
@@ -1,4 +1,4 @@
-//---------------------------------------------------------------------------
+//---------------------------------------------------------------------------
#pragma hdrstop
#include "HookJS.h"
@@ -39,7 +39,7 @@ String linkJS_PA =
"VideoGameCore.GameLinkStore.prototype.onSocketDataOld = VideoGameCore.GameLinkStore.prototype.onSocketData;"
"VideoGameCore.GameLinkStore.prototype.onSocketData = function(e,t) {"
"if(e.respId==Cube.Game.Protocol.NO_BET_NOTIFY_PROTO_R){"
- "console.log('³¤Ê±¼äδÏÂ×¢');"
+ "console.log('长时间未下注');"
"reGameLink(1);"
"return;"
"}"
@@ -47,7 +47,7 @@ String linkJS_PA =
"if(typeof myGameLink=='undefined') return;"
"if(e.respId==Cube.Game.Protocol.ENTER_TABLE_PROTO_R && 'LINK'==e.payload.vid){"
- "if(e.retCode==78){" //Óà¶î²»×ã
+ "if(e.retCode==78){" //余��足
"const store = VideoGameCore.GameLinkStore.instance;"
"for(let i=0; i{"
"if(typeof myGameLink=='undefined') return;"
@@ -256,11 +256,11 @@ String baseJS_PA =
"ssTimeout++, psTimeout++;"
- "if(ssTimeout>=tmRetry || psTimeout>=tmRetry){" //È·ÈÏÍøÂçÒì³££¬Í˳öµÇ¼
+ "if(ssTimeout>=tmRetry || psTimeout>=tmRetry){" //确认网络异常,退出登录
"cefApp.OnJSMessage('0|3');"
"}"
- "if(ssTimeout>=10 && (ssTimeout % 5)==0){" //10ÃëûÓÐssÍøÂçÊý¾Ý£¬³¢ÊÔÿ5Ãëreconnect
+ "if(ssTimeout>=10 && (ssTimeout % 5)==0){" //10秒没有ss网络数�,�试�5秒reconnect
"console.log(ssTimeout + 's try reconnect ss!!!!');"
"const sSkt = VideoGameCore.singleSocket;"
@@ -268,7 +268,7 @@ String baseJS_PA =
"console.log('singleSocket connect: ', sSkt.connected, sSkt.readyState);"
"sSkt.connect();"
"}"
- "else if(sSkt && (sSkt.connected || (ssTimeout % 20)==0)){" //20ÃëÒ»´Î¶Ï¿ªÖØÁ¬
+ "else if(sSkt && (sSkt.connected || (ssTimeout % 20)==0)){" //20秒一次æ–å¼€é‡�连
"console.log('singleSocket close');"
"sSkt.close();"
"}"
@@ -277,7 +277,7 @@ String baseJS_PA =
"}"
"}"
- "if(psTimeout>=10 && (psTimeout % 10)==0){" //10ÃëûÓÐpsÍøÂçÊý¾Ý£¬³¢ÊÔÿ10Ãëreconnect
+ "if(psTimeout>=10 && (psTimeout % 10)==0){" //10秒没有ps网络数�,�试�10秒reconnect
"console.log(psTimeout + 's try reconnect ps!!!!');"
"const pSkt = VideoGameCore.PlazaSocket.instance;"
@@ -300,7 +300,7 @@ String baseJS_PA =
"let t = e.data;"
"if(t && t.respId){"
"if(t.respId==vgc.EXCEPTION_EXIT_R ){" // 131142
- "cefApp.OnJSMessage('0|0');" //ÖØ¸´µÇÈë
+ "cefApp.OnJSMessage('0|0');" //��登入
"}"
"else if(t.respId==vgc.UPDATE_BALANCE_R){" //131106
"console.log('UPDATE_BALANCE_R_1', JSON.stringify(t));"
@@ -327,7 +327,7 @@ String baseJS_PA =
"psTimeout = 0;"
"if(vgc.isGameMaintain(t.vid)){"
- "cefApp.OnJSMessage('3|'+t.vid+'|||12|');" //ά»¤ÖÐ
+ "cefApp.OnJSMessage('3|'+t.vid+'|||12|');" //维护ä¸
"const store = vgc.GameLinkStore.instance;"
"if(store && store.roomInfosMap.get(t.vid)){"
@@ -337,10 +337,10 @@ String baseJS_PA =
"};"
"}"
"else{"
- "if(!vgc.singleSocket.connected || ssTimeout>2){" //singleSocket¶Ï¿ªÊ±½Ó¹Ü //¿ÉÄܲúÉúÊý¾Ý³åÍ»psÊý¾ÝÖͺóÓÚss
+ "if(!vgc.singleSocket.connected || ssTimeout>2){" //singleSocketæ–开时接管 //å�¯èƒ½äº§ç”Ÿæ•°æ�®å†²çª�psæ•°æ�®æ»žå�ŽäºŽss
"const p=t.payload;"
"if(p.gmstatus==2 && (p.bcard && p.bcard.length || p.pcard && p.pcard.length)){"
- "const msg = '9|' + t.vid + '|' + p.gmcode + '|';" //·ÅÆ
+ "const msg = '9|' + t.vid + '|' + p.gmcode + '|';" //翻牌
"const bc = p.bcard && p.bcard.length ? parseCards(p.bcard) : '';"
"const pc = p.pcard && p.pcard.length ? parseCards(p.pcard) : '';"
"cefApp.OnJSMessage(msg + bc + '|' + pc);"
@@ -400,7 +400,7 @@ String baseJS_PA =
// "console.log(t.type, JSON.stringify(t));"
"if(t.type==egret.Event.CLOSE){"
"const sSkt = vgc.singleSocket;"
- "if(sSkt && !sSkt.connected && sSkt.readyState>1){" //singleSocketÖжÏ
+ "if(sSkt && !sSkt.connected && sSkt.readyState>1){" //singleSocket䏿–
"console.log('reconnect singleSocket on CLOSE');"
"sSkt.connect();"
"}"
@@ -503,7 +503,7 @@ String goLinkJS_AB =
"const instCEM = Netbet.component.entity.manager.ComponentEventManager.getInstance();"
"if(instGD && instCEM){"
"setTimeout(()=>{"
- "instGD.setGameHallGameFilterList(" //ÉèÖĄ̃×ÀÀàÐÍ
+ "instGD.setGameHallGameFilterList(" //设置�桌类型
"'MULTITABLE',"
"[{"
"'parentItem': {'name': 'Baccarat', 'status': 'selected'},"
@@ -517,7 +517,7 @@ String goLinkJS_AB =
"]"
"}]"
");"
- "instCEM.alNavBtnClick({'navBtnName': 'MULTITABLE'});" //½øÈë¶ą̀
+ "instCEM.alNavBtnClick({'navBtnName': 'MULTITABLE'});" //进入多�
"}, 200);"
"}"
"}";
@@ -531,13 +531,13 @@ String stopJS_AB =
String msgJS_AB =
"if(typeof iv_login=='undefined'){"
- "console.warn = function (e) {};" //½ûÖ¹´òÓ¡warn
- "const iframe = document.createElement('iframe');" //ÖØ¶¨Î»log
+ "console.warn = function (e) {};" //ç¦�æ¢æ‰“å�°warn
+ "const iframe = document.createElement('iframe');" //�定�log
"iframe.style.display = 'none';"
"document.body.appendChild(iframe);"
"window.console.log = iframe.contentWindow.console.log;"
- "var ssTimeout=0, psTimeout=0, tmRetry=90;" //¼ÆÊ±Æ÷
+ "var ssTimeout=0, psTimeout=0, tmRetry=90;" //计时器
"function msgHandler(e){"
"console.log(JSON.stringify(e));"
@@ -547,19 +547,19 @@ String msgJS_AB =
"cefApp.OnJSMessage('0|0');"
"};"
- "const chkGameType = function(t){" //ÊÇ·ñ°Ù¼ÒÀÖ
+ "const chkGameType = function(t){" //是�百家�
"return t<=110 || t==1011 || t==1012;"
"};"
- "const chgTableStatus = function(t){" //ת»»Ì¨×À״̬
+ "const chgTableStatus = function(t){" //转��桌状�
"return t==999 ? 12 : t==102 ? 11 : t==100 ? 1 "
": (t==110 || t==113 || t>=103 && t<=108) ? 2 "
": 0;"
"};"
"function updHandler(e,t){"
- "if(e=='login'){" //怬
- "if(t.A==0){" //³É¹¦£¬»ñÈ¡Óû§ÐÅÏ¢
+ "if(e=='login'){" //登录
+ "if(t.A==0){" //�功,获�用户信�
"const un = t.C.BB;"
"const amo = (t.C.DD/100).toFixed(2);"
"const cur = t.C.LL;"
@@ -568,10 +568,10 @@ String msgJS_AB =
"cefApp.GetUserInfo(un, amo, cur, low, high);"
"}"
- "else " //ʧ°Ü
+ "else " //失败
"cefApp.OnJSMessage('0|-3');"
"}"
- "else if(e=='setPlayerHandicap'){" //ÏÞ¶î
+ "else if(e=='setPlayerHandicap'){" //��
"for(let i=0; i{"
- "if(chkGameType(a.DD)){" //°Ù¼ÒÀÖ
+ "if(chkGameType(a.DD)){" //百家�
"let p='';"
"if(a.WW3 && a.WW3.length)"
"a.WW3[0].forEach(v=>p+=v[0]);"
- "let s = chgTableStatus(a.Z3);" //̨×À״̬
+ "let s = chgTableStatus(a.Z3);" //�桌状�
"msg += a.AA+','+a.BB+','+a.HH.CC+','+s+','+p+';'"
"}"
"});"
"cefApp.OnJSMessage(msg);"
// "}"
"}"
- "else if(e=='getRoadData'){" //ÀúÊ·½á¹û
+ "else if(e=='getRoadData'){" //历�结果
"const inst = Netbet.component.entity.gameHallDO.getInstance();"
"const td = inst.getTableDO(t.C);"
"if(td && chkGameType(td.getGameType()) && t.G && t.G.length==1){"
@@ -616,7 +616,7 @@ String msgJS_AB =
// "console.log(e, JSON.stringify(t));"
"}"
"}"
- "else if(e=='getCountDown'){" //µ¹¼ÆÊ±
+ "else if(e=='getCountDown'){" //倒计时
"let msg = '8|';"
"const inst = Netbet.component.entity.gameHallDO.getInstance();"
"t.C.forEach(v=>{ "
@@ -626,7 +626,7 @@ String msgJS_AB =
"});"
"cefApp.OnJSMessage(msg);"
"}"
- "else if(e=='pushGameStatus'){" //̨×À״̬
+ "else if(e=='pushGameStatus'){" //�桌状�
"const inst = Netbet.component.entity.gameHallDO.getInstance();"
"t.A.forEach(v=>{"
"const td = inst.getTableDO(v.AA);"
@@ -642,7 +642,7 @@ String msgJS_AB =
// "if(log) console.log(e, JSON.stringify(t));"
"}"
- "else if(e=='pushRawCards'){" //·¢ÅÆ
+ "else if(e=='pushRawCards'){" //�牌
"const inst = Netbet.component.entity.gameHallDO.getInstance();"
"const td = inst.getTableDO(t.A);"
"if(td && chkGameType(td.getGameType()) && t.B && t.B.length==2){"
@@ -667,7 +667,7 @@ String msgJS_AB =
"cefApp.OnJSMessage(msg);"
"}"
"}"
- "else if(e=='gameBet'){" //ÏÂ×¢·´À¡
+ "else if(e=='gameBet'){" //下注�馈
"console.log(e, JSON.stringify(t));"
"let msg='6|'+t.D+'|'+t.A+'|'+t.H+'|';"
@@ -676,7 +676,7 @@ String msgJS_AB =
"msg += bets[0]+'|'+bets[1]+'|'+bets[2];"
"cefApp.OnJSMessage(msg);"
"}"
- "else if(e=='pushGameTableResults'){" //±£»î£¿
+ "else if(e=='pushGameTableResults'){" //�活?
"const inst = Netbet.component.entity.gameHallDO.getInstance();"
"const td = inst.getTableDO(t.A);"
"if(td && chkGameType(td.getGameType())){"
@@ -702,9 +702,9 @@ String msgJS_AB =
"function multiTableBet(e,t,a){"
"const td = Netbet.component.entity.gameHallDO.getInstance().getTableDO(e);"
- "const bo = td.getBettingObj();" //»ñÈ¡bettingObj ÖØµã!
+ "const bo = td.getBettingObj();" //获�bettingObj �点!
"const t2s = ['banker','player','tie'];"
- "t.forEach((bt,i)=>{bt && (bo.pendingBet[t2s[bt-1001]] += a[i]);});" //ÐÞ¸ÄpendingBet
+ "t.forEach((bt,i)=>{bt && (bo.pendingBet[t2s[bt-1001]] += a[i]);});" //修改pendingBet
"const bp = {betTypes: t, betAmounts: a};"
"const sa = Netbet.component.entity.GameDO.getInstance().getSendApi();"
@@ -712,13 +712,13 @@ String msgJS_AB =
"Netbet.component.entity.GameDO.getInstance().setSendApi(sa);"
"const rid = td.getGameRoundId();"
- "bo.gameRoundId = rid;" //gameRoundIdΪµ±Ç°¾ÖºÅ
- "td.setBettingObj(bo);" //±£´æBettingObj
+ "bo.gameRoundId = rid;" //gameRoundId为当�局�
+ "td.setBettingObj(bo);" //ä¿�å˜BettingObj
"const E = {a:e, c:td.getGameStatue().inningsID, d:rid, e:102, f:bp.betTypes, "
"h:bp.betAmounts, i:1, j:Netbet.component.tools.Tools.bv(rid, bp, 1)"
"};"
- "Netbet.component.entity.RequestManager.getInstance().instantRequest('gameBet', E);" //·¢ËÍÏÂ×¢ÏûÏ¢
+ "Netbet.component.entity.RequestManager.getInstance().instantRequest('gameBet', E);" //��下注消�
// "console.log(JSON.stringify(E));"
"};"
@@ -735,7 +735,7 @@ String msgJS_AB =
"clearInterval(iv_login);"
"console.log('addListener');"
- //À¹½ØapiÏûÏ¢
+ //拦截api消�
// "instAM._event.on('apiEvent', apiHandler);"
"const amUpd = instAM.update;"
"instAM.update = function(e,t){"
@@ -743,7 +743,7 @@ String msgJS_AB =
"updHandler(e,t);"
"};"
- //À¹½ØÏûÏ¢¿ò£¬È·ÈÏÍøÕ¾Òì³£
+ //拦截消�框,确认网站异常
"const mfunc = instM.func;"
"instM.func = function(){"
"const t = arguments[0];"
@@ -838,9 +838,9 @@ String userJS_DB =
"if(limit.length>0){"
"App.setting.setDuotaiTypeState([2001,2002]);"
- "App.setting.setModeType(3);" //·µ¥Ä£Ê½
- "App.setting.setCustomIconState(0);" //¹Ø±ÕÊÓÆµ
- "App.setting.setGAME_AUDIO(0);" //¹Ø±ÕÒôƵ
+ "App.setting.setModeType(3);" //路�模�
+ "App.setting.setCustomIconState(0);" //å…³é—视频
+ "App.setting.setGAME_AUDIO(0);" //å…³é—音频
"const pi = App.user.playerInfo;"
"console.log(pi.loginName, pi.balance, pi.currency, limit[0], limit[1]);"
@@ -903,7 +903,7 @@ String msgJS_DB =
"return o;"
"};"
- "const chgTableStatus = function(t){" //ת»»Ì¨×À״̬
+ "const chgTableStatus = function(t){" //转��桌状�
"return t==1 ? 11 "
": t==2 ? 1 "
": t==3 ? 2 "
@@ -911,33 +911,33 @@ String msgJS_DB =
": 0;"
"};"
- "const chkGameType = function(e,t){" //ÊÇ·ñ°Ù¼ÒÀÖ
+ "const chkGameType = function(e,t){" //是�百家�
"const g = e.getGameTalbeInfo(t);"
"return g && (g.gameTypeId==2001 || g.gameTypeId==2002);"
"};"
- //ÉèÖÃ×¢Âë
- "var pushChip = async function(tableId, bet, chip){"//bet 1=ׯ2=ÏÐ3=ºÍ
+ //设置注ç �
+ "var pushChip = async function(tableId, bet, chip){"//bet 1=庄2=闲3=和
"const g = App.PresenterManager.presenterDic.dict.MultiplayPresenter.model.getGameTalbeInfo(tableId);"
"let res = -1;"
"await Promise.race(["
"App.BetManager.pushChip2({"
- "'tableId': tableId," //̨ºÅ
- "'betAreaId': (bet+3000)," //betId: 3001ׯ 3002ÏÐ 3003ºÍ
- "'value': chip," //×¢Âë
+ "'tableId': tableId," //��
+ "'betAreaId': (bet+3000)," //betId: 3001庄 3002闲 3003和
+ "'value': chip," //注ç �
//////////////////////
//test
-// "'betAreaId': 3012," 5818³¬¼¶ÐÒÔËÆß 3012ÐÒÔËÁù
+// "'betAreaId': 3012," 5818超级幸è¿�七 3012幸è¿�å…
// "'value': 1,"
//
//////////////////////
- "'isMultiplayBet': true," //¶ą̀
- "'noFastBet': true," //·Ç¿ìËÙÏÂ×¢
- "'roundId': g.roundId" //¾ÖºÅ
+ "'isMultiplayBet': true," //多�
+ "'noFastBet': true," //�快速下注
+ "'roundId': g.roundId" //局�
"}),"
- "new Promise((resolve, reject) => {" //³¬Ê±´¦Àí£¨1Ã룩
+ "new Promise((resolve, reject) => {" //超时处�(1秒)
"setTimeout(() => {"
- "reject('³¬Ê±');"
+ "reject('è¶…æ—¶');"
"}, 1000);"
"})"
"])"
@@ -945,26 +945,26 @@ String msgJS_DB =
".catch((e)=>{"
"console.log(g.physicsTableNo, tableId, e.message);"
-// "if(e.message.indexOf('³¬Ê±')>=0) res = -1;"
+// "if(e.message.indexOf('è¶…æ—¶')>=0) res = -1;"
// "else "
- "if(e.message.indexOf('ÒÑÏÂ×¢')>=0) res = 4;"
- "else if(e.message.indexOf('²»×ã')>=0) res = 26;"
- "else if(e.message.indexOf('×îµÍÏÞºì')>=0) res = 10;"
- "else if(e.message.indexOf('ÏÞ¶î²»Âú×ã')>=0) res = 11;"
+ "if(e.message.indexOf('已下注')>=0) res = 4;"
+ "else if(e.message.indexOf('�足')>=0) res = 26;"
+ "else if(e.message.indexOf('最低�红')>=0) res = 10;"
+ "else if(e.message.indexOf('���满足')>=0) res = 11;"
"else res = 5;"
"});"
// "console.log('pushChip inside result:', res);"
"return res;"
"};"
- //È¡Ïû×¢Âë
+ //å�–消注ç �
"var cancelBet = function(tableId){"
"MultiplayConst.betStatus[tableId] = 0;"
"App.BetManager.cancelUnsureBet(tableId, {isMulti: 1});"
"App.BetManager.cancelUnsureBet(tableId);"
"};"
- //È·ÈÏÏÂ×¢
+ //确认下注
"var sureBet = function(tableId){"
"const g = App.PresenterManager.presenterDic.dict.MultiplayPresenter.model.getGameTalbeInfo(tableId);"
"const bi = App.BetManager.getUnsureBetInfo(tableId);"
@@ -1022,7 +1022,7 @@ String msgJS_DB =
"}"
"break;"
"}"
- "case 105: {"//BET ÏÂ×¢·µ»Ø
+ "case 105: {"//BET 下注返回
"console.log(e, JSON.stringify(t));"
"const o = t.res;"
@@ -1031,7 +1031,7 @@ String msgJS_DB =
"roundId = 0;"
"const bets=[0,0,0];"
- "if(t.errorId){" //ʧ°Ü
+ "if(t.errorId){" //失败
"const r = JSON.parse(o);"
"errCode = parseInt(r.errorId);"
"const d = JSON.parse(r.data);"
@@ -1066,7 +1066,7 @@ String msgJS_DB =
"break;"
"}"
- "case 106: {"//OPEN_CARD ¿ªÅÆ
+ "case 106: {"//OPEN_CARD 开牌
// "console.log(e, JSON.stringify(t));"
"const o = t.res;"
@@ -1089,7 +1089,7 @@ String msgJS_DB =
"break;"
"}"
- "case 107: {"//SETTLEMENT ½áËã
+ "case 107: {"//SETTLEMENT 结算
"const o = t.res;"
"const g = model.getGameTalbeInfo(o.tableId);"
"if(g){"
@@ -1117,15 +1117,15 @@ String msgJS_DB =
"else if(o.activePoints.indexOf(3002)>-1) wt=2;"
"const msg = '3|'+o.tableId+'|'+g.physicsTableNo+'|'+o.roundId+'|0|'+wt"
- "+'|'+card[0]+'|'+card[1];" //DBÌØÊâ´¦Àí
+ "+'|'+card[0]+'|'+card[1];" //DB特殊处�
"cefApp.OnJSMessage(msg);"
"}"
"break"
"}"
-// "case 112: {"//CHANGE_CARD »»ÅÆ
+// "case 112: {"//CHANGE_CARD �牌
// "break;"
// "}"
- "case 113: {"//JUMP_ROUND ±¾¾ÖÈ¡Ïû
+ "case 113: {"//JUMP_ROUND 本局�消
"console.log(e, JSON.stringify(t));"
"const o = t.res;"
@@ -1140,7 +1140,7 @@ String msgJS_DB =
// "case 116: {" //ROAD_PAPER
// "break;"
// "}"
- "case 148: {" //TABLE_STATUS_CHANGE //״̬¸Ä±ä
+ "case 148: {" //TABLE_STATUS_CHANGE //状�改�
"console.log(e, JSON.stringify(t));"
"const h = t.res;"
@@ -1155,7 +1155,7 @@ String msgJS_DB =
"}"
"break;"
"}"
- "case 160: {"//STOP_BET Í£Ö¹ÏÂ×¢
+ "case 160: {"//STOP_BET å�œæ¢ä¸‹æ³¨
"const o = t.res;"
"const g = model.getGameTalbeInfo(o.tableId);"
"if(g){"
@@ -1195,7 +1195,7 @@ String msgJS_DB =
"cefApp.OnJSMessage('5|'+o.balance);"
"break;"
"}"
- "case 10016: {" //RUSH_LOGIN Õ˺ÅÔÚÆäËûÉ豸ÉϵǼ
+ "case 10016: {" //RUSH_LOGIN 账�在其他设备上登录
"cefApp.OnJSMessage('0|0');"
"break;"
"}"
@@ -1227,7 +1227,7 @@ String msgJS_DB =
"const a = App.BetManager.tableBetDic.getValue(Object.keys(App.BetManager.tableBetDic.dict)[0]).chipAreas;"
"for(const g of games){"
"const p = g.roadPaper ? parseRoad(g.roadPaper.beatPlateRoad) : '';"
- "let s = chgTableStatus(g.gameStatus);" //̨×À״̬
+ "let s = chgTableStatus(g.gameStatus);" //�桌状�
"msg += g.tableId+','+g.physicsTableNo+','+g.roundId+','+s+','+p+';';"
"ids.push(g.tableId);"
@@ -1275,27 +1275,27 @@ String msgJS_DB =
"}, 500);"
- "var sTimeout=0, tmRetry=90;" //¼ÆÊ±Æ÷
+ "var sTimeout=0, tmRetry=90;" //计时器
"var chkSockets = ()=>{"
"sTimeout++;"
- "if(sTimeout>=tmRetry){" //È·ÈÏÍøÂçÒì³££¬Í˳öµÇ¼
+ "if(sTimeout>=tmRetry){" //确认网络异常,退出登录
"cefApp.OnJSMessage('0|3');"
"}"
- "if(sTimeout>=10 && (sTimeout % 5)==0){" //10ÃëûÓÐssÍøÂçÊý¾Ý£¬³¢ÊÔÿ5Ãëreconnect
+ "if(sTimeout>=10 && (sTimeout % 5)==0){" //10秒没有ss网络数�,�试�5秒reconnect
"console.log(sTimeout + 's try reconnect!!!!');"
// "const multi = App.PresenterManager.presenterDic.dict.MultiplayPresenter;"
- "if(App.Socket.status==0||App.Socket.status==3){" //SocketÈô¶Ï¿ªÔòÁ¬½Ó
+ "if(App.Socket.status==0||App.Socket.status==3){" //Socketè‹¥æ–开则连接
"console.log('App.Socket connect: ', App.Socket.status);"
"App.Socket.connect();"
"}"
- "else if(App.Socket.status==2 && (sTimeout % 20)==0){" //20ÃëÒ»´ÎÊÖ¶¯ÖØÁ¬
+ "else if(App.Socket.status==2 && (sTimeout % 20)==0){" //20秒一次手动�连
"console.log('App.Socket reconnect');"
"App.Socket.reconnect();"
"}"
- "else{" //³¢ÊÔÖØÈë¶ą̀
+ "else{" //�试�入多�
"console.log('multi reentry: ', App.Socket.status);"
"App.gameManager.sendEnterMultiPlay(32);"
"}"
diff --git a/PolicyEditFormUnit.h b/PolicyEditFormUnit.h
index f58e691..932e99a 100644
--- a/PolicyEditFormUnit.h
+++ b/PolicyEditFormUnit.h
@@ -1,4 +1,4 @@
-//---------------------------------------------------------------------------
+//---------------------------------------------------------------------------
#ifndef PolicyEditFormUnitH
#define PolicyEditFormUnitH
@@ -98,9 +98,9 @@ private: // User declarations
bool m_bRowChanged, m_bColChanged, m_bRoadChanged;
TRadioButton *m_aDeadRB[3];
- TFrame *m_frmSP; //ÌØÊâ²ßÂÔÃæ°å
+ TFrame *m_frmSP; //特殊ç–ç•¥é�¢æ�¿
- vector m_aCPMap; //ComboÓ³Éä
+ vector m_aCPMap; //Comboæ˜ å°„
void __fastcall UpdateGrid();
String __fastcall AutoNewName();
@@ -109,7 +109,7 @@ private: // User declarations
void __fastcall SGSelCell(int ACol, int ARow);
void __fastcall Clear();
void __fastcall CalcNewName();
- void __fastcall InitChipGrid(int kind); //0=ÆÕͨעÂë 1=²ã¼¶×¢Âë
+ void __fastcall InitChipGrid(int kind); //0=普通注ç � 1=层级注ç �
void __fastcall ClearSPFrame();
void __fastcall SetView(int type);
diff --git a/RBmaster.cbproj b/RBmaster.cbproj
index 1486918..bc36324 100644
--- a/RBmaster.cbproj
+++ b/RBmaster.cbproj
@@ -1,7 +1,7 @@

{E33F7AC5-C0ED-4835-A5D5-7FBD27D9BA56}
- 20.4
+ 20.5
VCL
Application
RBmaster.cpp
@@ -80,7 +80,7 @@
_RBM_;$(Defines)
true
..\Global\;..\CEF4Delphi\$(Platform)\hpps;$(IncludePath)
- CompanyName=;FileDescription=;FileVersion=4.0.7.0;InternalName=RBmaster;LegalCopyright=;LegalTrademarks=;OriginalFilename=;ProductName=红�大师;ProductVersion=3.0;Comments=
+ CompanyName=;FileDescription=;FileVersion=4.0.8.0;InternalName=RBmaster;LegalCopyright=;LegalTrademarks=;OriginalFilename=;ProductName=红�大师;ProductVersion=3.0;Comments=
1033
System;Xml;Data;Datasnap;Web;Soap;Vcl;Vcl.Imaging;Vcl.Touch;Vcl.Samples;Vcl.Shell;$(DCC_Namespace)
rtl.lib;vcl.lib;fmx.lib;vclimg.lib;xmlrtl.lib;vclactnband.lib;vclx.lib;CEF4DelphiVCLRTL.lib;vclwinx.lib;bindengine.lib;TPNGButton.lib
@@ -102,7 +102,7 @@
$(BDS)\bin\Artwork\Windows\UWP\cppreg_UwpDefault_150.png
4
true
- 7
+ 8
..\Deploy\$(Platform)\$(Config)\
@@ -166,7 +166,7 @@
$(BDSLIB)\$(PLATFORM)\debug\$(LANGDIR);$(ILINK_TranslatedLibraryPath)
- CompanyName=;FileVersion=4.0.7.0;InternalName=RBmaster;LegalCopyright=;LegalTrademarks=;OriginalFilename=;ProductName=红�大师;ProductVersion=3.0;Comments=;ProgramID=;FileDescription=
+ CompanyName=;FileVersion=4.0.8.0;InternalName=RBmaster;LegalCopyright=;LegalTrademarks=;OriginalFilename=;ProductName=红�大师;ProductVersion=3.0;Comments=;ProgramID=;FileDescription=
rtl.lib;vcl.lib;fmx.lib;vclimg.lib;xmlrtl.lib;vclactnband.lib;vclx.lib;CEF4DelphiVCLRTL.lib;vclwinx.lib;bindengine.lib;TPNGButton.lib
requireAdministrator
Debug
@@ -189,7 +189,7 @@
None
- CompanyName=;FileVersion=4.0.7.0;InternalName=RBmaster;LegalCopyright=;LegalTrademarks=;OriginalFilename=;ProductName=红�大师;ProductVersion=3.0;Comments=;ProgramID=;FileDescription=
+ CompanyName=;FileVersion=4.0.8.0;InternalName=RBmaster;LegalCopyright=;LegalTrademarks=;OriginalFilename=;ProductName=红�大师;ProductVersion=3.0;Comments=;ProgramID=;FileDescription=
rtl.lib;vcl.lib;fmx.lib;vclimg.lib;xmlrtl.lib;vclactnband.lib;vclx.lib;CEF4DelphiVCLRTL.lib;vclwinx.lib;bindengine.lib;TPNGButton.lib
requireAdministrator
..\Deploy\$(Platform)\$(Config)\
diff --git a/RBmaster.cpp b/RBmaster.cpp
index d8b81d3..21841c0 100644
--- a/RBmaster.cpp
+++ b/RBmaster.cpp
@@ -1,4 +1,4 @@
-//---------------------------------------------------------------------------
+//---------------------------------------------------------------------------
#include
#include
#include
@@ -14,7 +14,7 @@
#pragma package(smart_init)
/////////////////////////////////////////////////////////////////////////////
-// »ñÈ¡¸¸½ø³Ìº¯Êý
+// 获�父进程函数
typedef struct _PROCESS_BASIC_INFORMATIONWOW64 {
NTSTATUS ExitStatus;
ULONG64 PebBaseAddress;
@@ -26,7 +26,7 @@ typedef struct _PROCESS_BASIC_INFORMATIONWOW64 {
typedef LONG (WINAPI *PNTQUERYINFORMATIONPROCESS)(HANDLE,UINT,PVOID,ULONG,PULONG);
-DWORD GetParentProcessId(DWORD pid)//»ñȡָ¶¨½ø³ÌµÄ¸¸½ø³ÌID
+DWORD GetParentProcessId(DWORD pid)//获�指定进程的父进程ID
{
DWORD dwParentPID = 0;
HANDLE hProcess = OpenProcess(PROCESS_QUERY_INFORMATION, FALSE, pid);
@@ -66,7 +66,7 @@ DWORD GetParentProcessId(DWORD pid)//
}
/////////////////////////////////////////////////////////////////
-// ¶¨Òåö¾Ù´°¿Ú»Øµ÷º¯Êý
+// 定义枚举窗�回调函数
BOOL CALLBACK EnumWndProc(HWND hwnd, LPARAM lParam)
{
HANDLE h = GetProp(hwnd, _TEXT(APPABBR));
@@ -79,7 +79,7 @@ BOOL CALLBACK EnumWndProc(HWND hwnd, LPARAM lParam)
}
/////////////////////////////////////////////////////////////////
-// CEF³õʼ»¯º¯Êý
+// CEF�始化函数
bool InitCef()
{
@@ -105,9 +105,9 @@ bool InitCef()
GlobalCEFApp->NoSandbox = true;
GlobalCEFApp->MuteAudio = true;
GlobalCEFApp->EnableGPU = true;
- GlobalCEFApp->SitePerProcess = true; //78.0ÒÔÉÏiframeÔËÐÐjs´úÂë±ØÐëÉèÖÃ
- GlobalCEFApp->DisableWebSecurity = true; //78.0ÒÔÉÏiframeÔËÐÐjs´úÂë±ØÐëÉèÖÃ
- GlobalCEFApp->DisableSiteIsolationTrials = true; //78.0ÒÔÉÏiframeÔËÐÐjs´úÂë±ØÐëÉèÖÃ
+ GlobalCEFApp->SitePerProcess = true; //78.0以上iframeè¿�行js代ç �必须设置
+ GlobalCEFApp->DisableWebSecurity = true; //78.0以上iframeè¿�行js代ç �必须设置
+ GlobalCEFApp->DisableSiteIsolationTrials = true; //78.0以上iframeè¿�行js代ç �必须设置
GlobalCEFApp->DisableChromeLoginPrompt = true;
GlobalCEFApp->EnableMediaStream = false; //true; //
GlobalCEFApp->LogProcessInfo = false; //true; //
@@ -125,12 +125,12 @@ bool InitCef()
}
/////////////////////////////////////////////////////////////////
-// ×Ó½ø³ÌÅжϺ¯Êý
+// å�进程判æ–函数
bool IsRestart()
{
HWND hWnd = NULL;
if(SINGLE_INSTANCE){
- EnumWindows(EnumWndProc,(LPARAM)&hWnd); //ö¾ÙËùÓÐÔËÐеĴ°¿Ú
+ EnumWindows(EnumWndProc,(LPARAM)&hWnd); //枚举所有�行的窗�
}
else{
String strFullName = TPath::GetFullPath(Application->ExeName);
@@ -160,7 +160,7 @@ bool IsRestart()
//---------------------------------------------------------------------------
/////////////////////////////////////////////////////////////////
-// ³ÌÐò×Ô¶¯Éý¼¶º¯Êý
+// 程�自动�级函数
void StartUpgrade( int mode )
{
HANDLE hToken = NULL,
@@ -180,8 +180,8 @@ void StartUpgrade( int mode )
si.cbReserved2 = NULL;
si.lpReserved2 = NULL;
si.dwFlags = STARTF_USESHOWWINDOW;
- si.wShowWindow = mode==2 ? SW_SHOWNORMAL //ÏÔʾ½ø³Ì´°¿Ú
- : SW_HIDE; //Òþ²Ø½ø³Ì´°¿Ú
+ si.wShowWindow = mode==2 ? SW_SHOWNORMAL //显示进程窗�
+ : SW_HIDE; //��进程窗�
String command = "\"" + (String)g_AppPath + UPDATE_APP_NAME + "\"";
if( mode==3 )
@@ -258,22 +258,22 @@ bool Startup()
bRun = true;
}
else if( tag==-1 ){
- ShowMessage( "¼ÓÔØÓ¦ÓÃÄ£¿éʧ°Ü£¬Í˳ö³ÌÐò" );
+ ShowMessage( "åŠ è½½åº”ç”¨æ¨¡å�—失败,退出程åº�" );
}
else if( tag==-3 ){
- ShowMessage( "Á¬½Ó·þÎñÆ÷ʧ°Ü£¬Í˳ö³ÌÐò" );
+ ShowMessage( "连接�务器失败,退出程�" );
}
else if( tag==-4 ){
- ShowMessage( "Èí¼þÒÑÍ£Ö¹ÔËÐУ¬Í˳ö³ÌÐò" );
+ ShowMessage( "软件已å�œæ¢è¿�行,退出程åº�" );
}
else if( tag==-5 ){
- ShowMessage( "³õʼ»¯ÍøÂçÄ£¿éʧ°Ü£¬Í˳ö³ÌÐò" );
+ ShowMessage( "�始化网络模�失败,退出程�" );
return false;
}
else{
int mode = tag;
if( tag==4 ){
- int mrRet = MessageBox(NULL, L"¼ì²âµ½ÓÐеİ汾£¬ÊÇ·ñÁ¢¼´Éý¼¶£¿",
+ int mrRet = MessageBox(NULL, L"检测到有新的版本,是�立��级?",
APPNAME, MB_ICONQUESTION | MB_YESNO);
if( mrRet==mrYes )
mode = 2;
@@ -281,7 +281,7 @@ bool Startup()
mode = 0;
}
else if( tag==2 ){
- ShowMessage( "Èí¼þÔËÐÐÐè¸üÐÂÏà¹Ø×é¼þ£¬¼´½«Æô¶¯¸üгÌÐò" );
+ ShowMessage( "软件�行需更新相关组件,�将�动更新程�" );
}
bRun = mode<=1;
diff --git a/RBmasterMain.cpp b/RBmasterMain.cpp
index e1605bd..d2fb805 100644
--- a/RBmasterMain.cpp
+++ b/RBmasterMain.cpp
@@ -1,4 +1,4 @@
-//---------------------------------------------------------------------------
+//---------------------------------------------------------------------------
#include
#include
@@ -32,9 +32,9 @@
#define USER_GAME_FILE "rbmgmf"
#define USER_GAME_VERSION 0x0F
-//0x0C Ôö¼ÓÇå¿Ǫ̃×ÀÏÂ×¢¼Ç¼/¿ª¾ÖXÊÖºó... v3.2.0
-//0x0D µ÷ÕûÓĮ̂»»Ì¨²ßÂÔ v3.2.1
-//0x0E Ôö¼ÓÁ¬ÐøÏÂ×¢ºöÂÔºÍ v3.8.2
+//0x0C å¢žåŠ æ¸…ç©ºå�°æ¡Œä¸‹æ³¨è®°å½•/开局X手å�Ž... v3.2.0
+//0x0D 调整游å�°æ�¢å�°ç–ç•¥ v3.2.1
+//0x0E å¢žåŠ è¿žç»ä¸‹æ³¨å¿½ç•¥å’Œ v3.8.2
#define UR_LOGIN 0x10
#define UR_REPORT 0x100
@@ -105,7 +105,7 @@ char* websites[WSNUM] = { "gci.dsn20102022.co",
"gci.4kh1mb8gkpb5.com",
"gci.myf7f3bx.com"
};
-char* urServer = "23.236.66.46:88"; //"127.0.0.1:10800"; //
+char* urServer = "177.4.10.212"; //"127.0.0.1:10800"; //
////////////////////////////////////////////////////////////////////////////////
int UTF8ToGBK( const char *pcUtf8, AnsiString& strGBK )
@@ -170,7 +170,7 @@ void __fastcall TMainForm::FormCreate(TObject *Sender)
return;
}
- // Ö´ÐÐÎļþ°æ±¾ÐÅÏ¢
+ // 执行文件版本信�
DWORD dwHandle;
DWORD dwVerLen = GetFileVersionInfoSize(Application->ExeName.c_str(), &dwHandle);
if (dwVerLen) {
@@ -192,13 +192,13 @@ void __fastcall TMainForm::FormCreate(TObject *Sender)
Caption = Caption + " " + IntToStr(m_version[0]) + "." + IntToStr(m_version[1]);
if( g_bTesting )
- Caption = Caption + " -²âÊÔģʽ";
+ Caption = Caption + " -测试模�";
Tag = InitGlobalVars();
if( Tag<0 || Tag==2 )
return;
- // »ñÈ¡DPI
+ // 获�DPI
HDC hdc = GetDC(NULL);
if (hdc != NULL) {
g_xDpi = GetDeviceCaps(hdc, LOGPIXELSX);
@@ -214,9 +214,9 @@ void __fastcall TMainForm::FormCreate(TObject *Sender)
Randomize();
GetDeviceId();
- int tmRand = Random(30); //10-30ÃëËæ»ú¼ä¸ô±ÜÃâ²¢·¢ÇëÇó
- m_tmDailyLogin = 300 + tmRand; //00:05:00 - 00:05:30 ÇëÇóÓû§ÐÅÏ¢
- m_tmDailyReport = 86400 - tmRand - 15; //23:59:15 - 23:59:45 Éϱ¨Êµ´òÁ÷Ë®
+ int tmRand = Random(30); //10-30秒�机间隔��并�请求
+ m_tmDailyLogin = 300 + tmRand; //00:05:00 - 00:05:30 请求用户信�
+ m_tmDailyReport = 86400 - tmRand - 15; //23:59:15 - 23:59:45 上报实打�水
LoadPolicies();
FileUserVars();
@@ -252,8 +252,8 @@ void __fastcall TMainForm::FormCreate(TObject *Sender)
m_pmLogin->Items->Items[g_iPlatform-1]->Checked = true;
AppendMenu(GetSystemMenu(Handle,false),MF_SEPARATOR,0,L"");
- AppendMenu(GetSystemMenu(Handle,false),MF_STRING,200,L"Èí¼þ²Ù×÷˵Ã÷(&D)");
- AppendMenu(GetSystemMenu(Handle,false),MF_STRING,201,L"ÊÚȨÑéÖ¤(&A)...");
+ AppendMenu(GetSystemMenu(Handle,false),MF_STRING,200,L"软件�作说明(&D)");
+ AppendMenu(GetSystemMenu(Handle,false),MF_STRING,201,L"授�验�(&A)...");
if(g_iPlatform==PF_PA && m_iWS<0)
WebsiteVelocity();
@@ -321,7 +321,7 @@ void __fastcall TMainForm::FormCloseQuery(TObject *Sender, bool &CanClose)
{
if( !m_bClosing ){
if(g_bGameOn){
- int mrRet = MessageBox(Handle, L"ÕýÔÚ¹Ò»úÖУ¬ÊÇ·ñÈ·¶¨Í˳ö³ÌÐò£¿", L"Í˳ö",
+ int mrRet = MessageBox(Handle, L"æ£åœ¨æŒ‚机ä¸ï¼Œæ˜¯å�¦ç¡®å®šé€€å‡ºç¨‹åº�?", L"退出",
MB_ICONQUESTION | MB_OKCANCEL);
if( mrRet==mrCancel ){
@@ -337,7 +337,7 @@ void __fastcall TMainForm::FormCloseQuery(TObject *Sender, bool &CanClose)
}
if(g_aGames.nBetted[0] || g_aGames.nBetted[1]){
- int mrRet = MessageBox(Handle, L"ÉÐÓнáËãδÍê³É£¬ÊÇ·ñÈ·¶¨Í˳ö³ÌÐò£¿", L"Í˳ö",
+ int mrRet = MessageBox(Handle, L"尚有结算未完�,是�确定退出程�?", L"退出",
MB_ICONQUESTION | MB_OKCANCEL);
if( mrRet==mrCancel ){
@@ -422,7 +422,7 @@ void __fastcall TMainForm::FormResize(TObject *Sender)
{
ResetIdle();
- if(m_iWindowState==wsMaximized && WindowState==wsNormal){ //»Ö¸´
+ if(m_iWindowState==wsMaximized && WindowState==wsNormal){ //��
SetBounds(m_nLeft, m_nTop, m_nWidth, m_nHeight);
}
@@ -434,7 +434,7 @@ void __fastcall TMainForm::FormResize(TObject *Sender)
m_panTopBar->Left = (ClientWidth - m_panTopBar->Width) / 2;
- //ÊÇ·ñ×Ô¶¯µ÷Õû¸ß¶È
+ //是�自动调整高度
int hPan = ClientHeight - m_panTopBar->Top - m_panTopBar->Height - 2,
nRem = hPan % TFHEIGHT;
if(nRem < DPIY(12))
@@ -448,12 +448,12 @@ void __fastcall TMainForm::FormResize(TObject *Sender)
m_lblAnnonce->Top = m_panWeb->Height - DPIY(50);
bool bResetGrid = false;
- int nWidth = m_panWeb->Width-DPIX(20);//Áô³ö¹ö¶¯ÌõλÖÃ
+ int nWidth = m_panWeb->Width-DPIX(20);//留出滚动��置
int nTabCols = nWidth / TFWIDTH;
int nTabGap = (nWidth % TFWIDTH) / (nTabCols-1);
- if(m_nTabCols!=nTabCols){ //ÁÐÊý¸Ä±ä
+ if(m_nTabCols!=nTabCols){ //列数改�
m_nTabCols = nTabCols;
- m_panWeb->VertScrollBar->Position = 0; //¹ö¶¯Ìõ¸´Î»
+ m_panWeb->VertScrollBar->Position = 0; //滚动���
bResetGrid = true;
}
if(m_nTabGap != nTabGap){
@@ -465,7 +465,7 @@ void __fastcall TMainForm::FormResize(TObject *Sender)
int dpi5 = DPIX(5), dpi60 = DPIX(60);
if(ChipsForm && ChipsForm->Width < dpi60){
- int x = Left > dpi60 ? ChipsForm->Width - dpi5 : -dpi5; //·ÅÖõ½´°¿ÚÄÚÍâ
+ int x = Left > dpi60 ? ChipsForm->Width - dpi5 : -dpi5; //放置到窗�内外
TPoint pt = TPoint(x, m_panWeb->Top);
pt = ClientToScreen(pt);
ChipsForm->Left = pt.x;
@@ -637,7 +637,7 @@ int __fastcall TMainForm::InitGlobalVars()
int iUpdate = 0;
FILE* fp = NULL;
- //¶ÁÈ¡ÎļþÅäÖÃ
+ //读�文件�置
sprintf( szFile, "%s\\%s", g_AppPath, GLOBAL_VAR_FILE );
fp = fopen( szFile, "rb" );
if( fp ){
@@ -645,10 +645,10 @@ int __fastcall TMainForm::InitGlobalVars()
int ret = fread( (void*)szBuffer, 1, sizeof(header), fp );
if( ret==sizeof(header) && !memcmp(szBuffer, header.head, sizeof(header.head)) ){
- if( ((TGVFHEADER*)szBuffer)->iUpdate > 0 ){ //ÐèÒªÍê³É¸üÐÂ
- ret = TryUpdate(); //³¢ÊÔ¸üÐÂ
+ if( ((TGVFHEADER*)szBuffer)->iUpdate > 0 ){ //需�完�更新
+ ret = TryUpdate(); //�试更新
if( ret==0 )
- bSave = true; //Ðè¸ü¸Ä±êÖ¾
+ bSave = true; //éœ€æ›´æ”¹æ ‡å¿—
else if( ret==1 )
iUpdate = 1;
else if( ret==3 ){
@@ -668,7 +668,7 @@ int __fastcall TMainForm::InitGlobalVars()
DebugPrint( "server: %s", urServer );
- //»ñÈ¡°æ±¾ÐÅÏ¢
+ //获�版本信�
int num = 3, str_len;
char arrMap[3][2][MAX_STR_LEN] = { {"op", "getInfo"},
{"sid", ""},
@@ -710,7 +710,7 @@ int __fastcall TMainForm::InitGlobalVars()
WaitForSingleObject( hThread, 200 );
CloseHandle( hThread );
- if( dwRet==WAIT_OBJECT_0 && param.errCode==0 ){ //Ïß³ÌÕý³£Í˳ö
+ if( dwRet==WAIT_OBJECT_0 && param.errCode==0 ){ //线程æ£å¸¸é€€å‡º
DebugPrint( "infoReturn %s", szReturn );
if(szReturn[0]=='\"' && szReturn[param.sizeOut-1]=='\"')
szReturn[param.sizeOut-1] = 0;
@@ -754,7 +754,7 @@ int __fastcall TMainForm::InitGlobalVars()
else
ret = -3;
- //дÈëÅäÖÃÎļþ
+ //写入�置文件
if( bSave ){
fp = fopen( szFile, "wb" );
if( fp ){
@@ -776,7 +776,7 @@ int __fastcall TMainForm::InitGlobalVars()
int __fastcall TMainForm::TryUpdate()
{
- //´¦ÀíÖ»¸üÐÂUpgrade.exeµÄÇé¿ö
+ //处��更新Upgrade.exe的情况
TSearchRec sr;
int iAttr = 0;
@@ -799,24 +799,24 @@ int __fastcall TMainForm::TryUpdate()
String fOld = strPath + UPDATE_APP_NAME;
if( FileExists( fOld, false ) ){
- //µÈ´ý½ø³Ì¹Ø±Õ
- HANDLE hSnapshot = CreateToolhelp32Snapshot( TH32CS_SNAPPROCESS,0 ); //»ñÈ¡½ø³Ì¿ìÕÕ
+ //ç‰å¾…进程关é—
+ HANDLE hSnapshot = CreateToolhelp32Snapshot( TH32CS_SNAPPROCESS,0 ); //获�进程快照
if( hSnapshot ){
DWORD idProcess = 0;
PROCESSENTRY32 pe32;
- Process32First( hSnapshot, &pe32 ); //Ö¸ÏòµÚÒ»¸ö½ø³Ì
+ Process32First( hSnapshot, &pe32 ); //指�第一个进程
do{
- if( lstrcmpi( pe32.szExeFile, _TEXT(UPDATE_APP_NAME) )==0 ){ //²éÕÒ½ø³Ì
+ if( lstrcmpi( pe32.szExeFile, _TEXT(UPDATE_APP_NAME) )==0 ){ //查找进程
idProcess = pe32.th32ProcessID;
break;
}
}
- while( Process32Next(hSnapshot, &pe32) ); // Ñ»·Ö±µ½È¡²»µ½½ø³Ì
+ while( Process32Next(hSnapshot, &pe32) ); // 循环直到��到进程
if( idProcess ){
- HANDLE hApp= OpenProcess( PROCESS_ALL_ACCESS, FALSE, idProcess ); //¸ù¾Ý½ø³ÌID»ñÈ¡³ÌÐòµÄ¾ä±ú
+ HANDLE hApp= OpenProcess( PROCESS_ALL_ACCESS, FALSE, idProcess ); //æ ¹æ�®è¿›ç¨‹ID获å�–程åº�çš„å�¥æŸ„
if( hApp ){
- if( WaitForSingleObject( hApp, 2000 )==WAIT_TIMEOUT )// µÈ´ý³ÌÐò¹Ø±Õ2Ãë
+ if( WaitForSingleObject( hApp, 2000 )==WAIT_TIMEOUT )// ç‰å¾…程åº�å…³é—2ç§’
TerminateProcess( hApp, 0 );
CloseHandle( hApp );
@@ -853,9 +853,9 @@ void __fastcall TMainForm::DPTimerProc(TObject* Sender)
pG->timeout--;
if(pG->hTable) PostMessage(pG->hTable, UM_TAB_UPDATE, UPDATE_TIME, 0);
}
- else if(pG->gmstatus==2 && pG->timeout<0){ //ÒÑÏÂ×¢¿ªÅÆÖÐ
- if(--pG->timeout<-60){ //¿ªÅƽáË㳬ʱ60s
- DebugPrint("%s ³¬Ê±", ((AnsiString)pG->vid).c_str());
+ else if(pG->gmstatus==2 && pG->timeout<0){ //已下注开牌ä¸
+ if(--pG->timeout<-60){ //开牌结算超时60s
+ DebugPrint("%s è¶…æ—¶", ((AnsiString)pG->vid).c_str());
pG->HandleResult( 2 );
}
}
@@ -873,7 +873,7 @@ void __fastcall TMainForm::DPTimerProc(TObject* Sender)
m_tmDeadPause--;
if(!m_tmDeadPause){
- if(g_aGames.nBetted[2]>0){ //Ç¿ÖÆ³¬Ê±
+ if(g_aGames.nBetted[2]>0){ //强制超时
for(int i=0; im_pGame;
if(pG->iState==ST_BETTED && !pG->bIndPolicy)
@@ -881,7 +881,7 @@ void __fastcall TMainForm::DPTimerProc(TObject* Sender)
}
}
- if(g_aGames.pRankChip && !g_aGames.bFloat) //È«¾Ö¼ÆËã×¢Â뱬ÀÂÖØÆô
+ if(g_aGames.pRankChip && !g_aGames.bFloat) //全局计算注ç �爆缆é‡�å�¯
g_aGames.ResetRankChip();
g_bDeadPause = false;
@@ -894,7 +894,7 @@ void __fastcall TMainForm::DPTimerProc(TObject* Sender)
m_tmBetPause--;
bool bBetted = g_aGames.nBetted[0]>0 || g_aGames.nBetted[1]>0;
- if(!m_tmBetPause && bBetted){ //Ç¿ÖÆ³¬Ê±
+ if(!m_tmBetPause && bBetted){ //强制超时
for(int i=0; im_pGame;
if(pG->iState==ST_BETTED)
@@ -904,8 +904,8 @@ void __fastcall TMainForm::DPTimerProc(TObject* Sender)
bBetted = false;
}
- if(!bBetted && (g_aGames.betData.profits[3]!=0 //½áËãÍê³É£¬ÖØÖõ±ÆÚÓ®Àû
- || g_aGames.fCurrProfitPeak!=0)){ //Ë«ÖØÅж¨£¬±ÜÃâµ±ÆÚÓ®ÀûÇ¡ºÃΪ0µÄÇé¿ö
+ if(!bBetted && (g_aGames.betData.profits[3]!=0 //结算完�,�置当期赢利
+ || g_aGames.fCurrProfitPeak!=0)){ //��判定,��当期赢利�好为0的情况
g_aGames.betData.profits[3] = g_aGames.fCurrProfitPeak = 0;
m_frmInfo->m_lblCurProfit->Caption = "0";
m_frmInfo->m_lblCurProfit->Font->Color = clLime;
@@ -916,7 +916,7 @@ void __fastcall TMainForm::DPTimerProc(TObject* Sender)
pLog->op = 0;
SendMessage(Handle, UM_LOG_UPDATE, 0, (long)pLog);
- if(g_aGames.pRankChip && !g_aGames.bFloat) //È«¾Ö¼ÆËã×¢ÂëÖ¹Í£ÖØÆô
+ if(g_aGames.pRankChip && !g_aGames.bFloat) //全局计算注ç �æ¢å�œé‡�å�¯
g_aGames.ResetRankChip();
}
@@ -947,7 +947,7 @@ void __fastcall TMainForm::DPTimerProc(TObject* Sender)
}
m_tmWebFocus++;
- if(m_tmWebFocus==590){ //9·Ö50ÃëÉèΪǰ̨10Ã룬±£»î
+ if(m_tmWebFocus==590){ //9分50秒设为��10秒,�活
m_chrm->WasHidden(false);
m_chrm->SetFocus(true);
}
@@ -958,24 +958,24 @@ void __fastcall TMainForm::DPTimerProc(TObject* Sender)
}
if(g_iPlatform!=PF_AB){
- if(g_tmIdle<600){ //Èí¼þ10·ÖÖÓÎÞ²Ù×÷£¬ÒÔ´ËÅжÏÊÇ·ñ´ý»ú״̬
+ if(g_tmIdle<600){ //软件10åˆ†é’Ÿæ— æ“�作,以æ¤åˆ¤æ–是å�¦å¾…机状æ€�
g_tmIdle++;
if(g_tmIdle==600)
m_chrm->ExecuteJavaScript("tmRetry=300;console.log('tmRetry:',tmRetry);", "", 0);
}
- m_chrm->ExecuteJavaScript("chkSockets();", "", 0); //¼ì²éÍøÂç״̬
+ m_chrm->ExecuteJavaScript("chkSockets();", "", 0); //检查网络状�
}
m_tmCount++;
- if((m_tmCount % 3600)==0){ //ÿСʱÐÞÕý¼ÆÊ±
+ if((m_tmCount % 3600)==0){ //æ¯�å°�æ—¶ä¿®æ£è®¡æ—¶
m_tmCount = GetTimeCount();
}
- else if(m_tmCount==m_tmDailyReport){ //ÿÈÕ½áËãÉϱ¨
+ else if(m_tmCount==m_tmDailyReport){ //�日结算上报
RBReport();
}
- else if(m_tmCount==m_tmDailyLogin){ //ÿÈյǼ»ñÈ¡ÊÚȨÐÅÏ¢
+ else if(m_tmCount==m_tmDailyLogin){ //�日登录获�授�信�
PostMessage(Handle, UM_USERCONFIRM, UR_LOGIN, 0 );
}
}
@@ -992,7 +992,7 @@ void __fastcall TMainForm::UtilTimerProc(TObject* Sender)
}
else if(pT->Tag==0){
m_tmWebFocus = 0;
- m_chrm->ExecuteJavaScript(goLinkJS_PA, "", 0);//³¢ÊÔ½ø¶ą̀
+ m_chrm->ExecuteJavaScript(goLinkJS_PA, "", 0);//�试进多�
pT->Enabled = true;
}
}
@@ -1008,7 +1008,7 @@ void __fastcall TMainForm::GameOn()
{
if(!g_bGameOn){
m_btnStart->Enabled = false;
- m_btnStart->Caption = "Í£Ö¹¹Ò»ú";
+ m_btnStart->Caption = "å�œæ¢æŒ‚机";
TBetLog* pLog = new TBetLog;
pLog->ts = DateTimeToUnix(Now(), false);
@@ -1021,7 +1021,7 @@ void __fastcall TMainForm::GameOn()
m_tmBetPause = 0;
m_tmDeadPause = 0;
- //³õʼ»¯Í¼±íÊý¾Ý
+ //�始化图表数�
TDot dot;
if(g_aDots[0].empty()){
double pro = g_aGames.betData.profits[0];
@@ -1041,7 +1041,7 @@ void __fastcall TMainForm::GameOn()
g_aDots[3].push_back(dot);
}
- if(g_settings.bInitCurProfitByStart){//ÖØÖõ±ÆÚÓ®Àû
+ if(g_settings.bInitCurProfitByStart){//�置当期赢利
m_frmInfo->m_lblCurProfit->Caption = "0";
m_frmInfo->m_lblCurProfit->Font->Color = clLime;
m_frmInfo->m_lblSRProfit->Caption = "0";
@@ -1079,29 +1079,29 @@ void __fastcall TMainForm::GameOff(int iReason)
pLog->op = iReason;
SendMessage(Handle, UM_LOG_UPDATE, 0, (long)pLog);
- m_btnStart->Caption = "¿ªÊ¼¹Ò»ú";
+ m_btnStart->Caption = "开始挂机";
m_btnStart->Enabled = true;
if(iReason>0){
String msg;
if(iReason==1)
- msg = "×ÜÌåÖ¹Ó®";
+ msg = "总体æ¢èµ¢";
else if(iReason==2)
- msg = "×ÜÌåÖ¹Ëð";
+ msg = "æ€»ä½“æ¢æ�Ÿ";
else if(iReason==3)
- msg = "Ä£Äâ±¾½ðµÍÓÚÏÞºì";
+ msg = "模拟本金低于�红";
else if(iReason==4)
- msg = "ÓĮ̂±¬ÀÂ";
+ msg = "游�爆缆";
else if(iReason==5)
- msg = "ÕË»§Ö¹Ó®";
+ msg = "账户æ¢èµ¢";
else if(iReason==6)
- msg = "ÕË»§Ö¹Ëð";
+ msg = "è´¦æˆ·æ¢æ�Ÿ";
else if(iReason==7)
- msg = "¶¯Ì¬Ö¹Ëð";
+ msg = "动æ€�æ¢æ�Ÿ";
else if(iReason==8)
- msg = "×ÜÌå½×Ìݱ¬ÀÂ";
+ msg = "总体阶梯爆缆";
- msg += "£¬Í£Ö¹¹Ò»ú£¡";
+ msg += ",å�œæ¢æŒ‚机ï¼�";
ShowMessage(msg);
}
@@ -1425,7 +1425,7 @@ void __fastcall TMainForm::FileGame( bool bSave )
if(fHeader->head[3]>=0x0E){
fread( &g_settings, sizeof(TSettings), 1, fp );
}
- else if(fHeader->head[3]>=0x0C){ //×îµÍÖ§³Över0C
+ else if(fHeader->head[3]>=0x0C){ //最低支�ver0C
TSettingsD d;
fread( &d, sizeof(TSettingsD), 1, fp );
@@ -1560,7 +1560,7 @@ void __fastcall TMainForm::WebLoadEnd(TObject* Sender, const _di_ICefBrowser bro
String url = frame->GetUrl();
if(g_iPlatform==PF_PA && m_iWS>=0 && url.Pos(websites[m_iWS]) && url.Length()-strlen(websites[m_iWS]) <= 9 ){
if(m_loginValues[0].Length()>0){
- m_lblTips->Caption = "ÕýÔÚµÇÂ¼ÍøÕ¾...";
+ m_lblTips->Caption = "æ£åœ¨ç™»å½•网站...";
m_lblTips->Visible = true;
String strJS = Format(loginJS_PA, ARRAYOFCONST((m_loginValues[0],m_loginValues[1],m_loginValues[2],
@@ -1569,7 +1569,7 @@ void __fastcall TMainForm::WebLoadEnd(TObject* Sender, const _di_ICefBrowser bro
}
}
else if(url.Pos(m_url)){
- m_lblTips->Caption = "ÕýÔÚÁ¬½ÓÍøÕ¾...";
+ m_lblTips->Caption = "æ£åœ¨è¿žæŽ¥ç½‘ç«™...";
m_lblTips->Visible = true;
if(g_iPlatform==PF_DB){
@@ -1615,18 +1615,18 @@ void __fastcall TMainForm::WebResourceLoadComplete(TObject* Sender, const _di_IC
// DebugPrint("load %s", ((AnsiString)url).c_str());
if( g_iPlatform==PF_PA ){
if( url.Pos("module.config") ){
- m_lblTips->Caption = "¼ÓÔØÍøÕ¾×ÊÔ´...";
+ m_lblTips->Caption = "åŠ è½½ç½‘ç«™èµ„æº�...";
}
else if(url.Pos("main_") && url.Pos(".min.js")){
- m_lblTips->Caption = "¼ÓÔØÖ÷³ÌÐò...";
+ m_lblTips->Caption = "åŠ è½½ä¸»ç¨‹åº�...";
StartJSThread( JS_OP_WSHANDLE0 );
}
else if( url.Pos("GameCommon_v") || url.Pos("PCPlaza_v") ){
- m_lblTips->Caption = "¼ÓÔØÓÎÏ·×ÊÔ´...";
+ m_lblTips->Caption = "åŠ è½½æ¸¸æˆ�资æº�...";
StartJSThread( JS_OP_WSHANDLE1 );
}
else if( url.Pos("PCPlaza_hans") || url.Pos("PCEvent_hans") ){
- m_lblTips->Caption = "¼ÓÔØ»ù´¡Êý¾Ý...";
+ m_lblTips->Caption = "åŠ è½½åŸºç¡€æ•°æ�®...";
StartJSThread( JS_OP_WSHANDLE2 );
}
}
@@ -1635,25 +1635,25 @@ void __fastcall TMainForm::WebResourceLoadComplete(TObject* Sender, const _di_IC
StartJSThread( JS_OP_WSHANDLE0 );
}
else if(url.Pos("netGame.ab") || url.Pos("system-a") && url.Pos("-v9.json")){
- m_lblTips->Caption = "¼ÓÔØÍøÕ¾×ÊÔ´...";
+ m_lblTips->Caption = "åŠ è½½ç½‘ç«™èµ„æº�...";
if(!m_bWebLogon)
StartJSThread( JS_OP_WSHANDLE1 );
m_chrm->ExecuteJavaScript(msgJS_AB, "", 0 );
}
else if( url.Pos("lang.json") || url.Pos("sideHall.atlas") ){
- m_lblTips->Caption = "ÕýÔڵǼÓÎÏ·...";
+ m_lblTips->Caption = "æ£åœ¨ç™»å½•游æˆ�...";
if(!m_bWebLogon)
StartJSThread( JS_OP_WSHANDLE2 );
}
}
else if( g_iPlatform==PF_DB ){
if( url.Pos("loadConfig/list?") ){
- m_lblTips->Caption = "¼ÓÔØÍøÕ¾×ÊÔ´...";
+ m_lblTips->Caption = "åŠ è½½ç½‘ç«™èµ„æº�...";
// StartJSThread( JS_OP_WSHANDLE1 );
}
else if( url.Pos("player/getPlayerInitConfig") ){
- m_lblTips->Caption = "ÕýÔڵǼÓÎÏ·...";
+ m_lblTips->Caption = "æ£åœ¨ç™»å½•游æˆ�...";
StartJSThread( JS_OP_WSHANDLE2 );
m_chrm->ExecuteJavaScript( userJS_DB, "", 0 );
@@ -1714,7 +1714,7 @@ void __fastcall TMainForm::WebProcessMessageReceived(TObject* Sender, const _di_
ClearJSThread();
m_bWebLogon = true;
m_tmLogon = 0;
- m_lblTips->Caption = "¼ÓÔØÌ¨×ÀÊý¾Ý...";
+ m_lblTips->Caption = "åŠ è½½å�°æ¡Œæ•°æ�®...";
FileUserWeb( true );
@@ -1735,7 +1735,7 @@ void __fastcall TMainForm::WebProcessMessageReceived(TObject* Sender, const _di_
g_fBalance = fBalance;
PostMessage(Handle, UM_STATE_UPDATE, STATE_BALANCE, 0);
- PostMessage(Application->MainFormHandle, UM_CHART_UPDATE, 2, 1); //ÖØÖÃÓà¶îͼ±í
+ PostMessage(Application->MainFormHandle, UM_CHART_UPDATE, 2, 1); //�置余�图表
}
int minBet, maxBet;
@@ -1778,7 +1778,7 @@ void __fastcall TMainForm::ReleaseV8ValueSema()
}
//---------------------------------------------------------------------------
-//µ÷Óøú¯ÊýµÄJSÓï¾ä¸÷·ÖÖ§±ØÐë·µ»ØReturnJQValue,ÇÒÈ·±£ÑÓ³Ù²»´óÓÚ1Ãë
+//调用该函数的JSè¯å�¥å�„分支必须返回ReturnJQValue,且确ä¿�延迟ä¸�大于1ç§’
TStringList* __fastcall TMainForm::GetJQValue( String& str, _di_ICefFrame frame )
{
WaitForSingleObject( m_hV8Sema, INFINITE );//60000 );
@@ -1811,7 +1811,7 @@ void __fastcall TMainForm::ResetTableGrid()
int oldPos = m_panWeb->VertScrollBar->Position;
- //¶ÔÆę̈×À¶¥²¿
+ //对��桌顶部
if(oldPos>0){
int nRem = oldPos % TFHEIGHT;
if(nRem>0){
@@ -1822,7 +1822,7 @@ void __fastcall TMainForm::ResetTableGrid()
}
}
- m_panWeb->VertScrollBar->Position = 0; //Position¸´Î»£¬²Å´Ó¶¥²¿¿ªÊ¼ÏÔʾ
+ m_panWeb->VertScrollBar->Position = 0; //Position��,�从顶部开始显示
int row = 0, col = 0;
for(int i=0; iVertScrollBar->Range = max(range, minRange);
if(oldPos>0){
- m_panWeb->VertScrollBar->Position = oldPos<=maxPos ? oldPos //ÔʼλÖÃ
- : range - m_panWeb->Height + m_panWeb->Height % TFHEIGHT; //µ×²¿Î»ÖÃ
+ m_panWeb->VertScrollBar->Position = oldPos<=maxPos ? oldPos //原始�置
+ : range - m_panWeb->Height + m_panWeb->Height % TFHEIGHT; //底部�置
}
}
@@ -1898,7 +1898,7 @@ bool __fastcall TMainForm::StopWebLoad()
m_loginValues[0] = "";
}
- m_lblTips->Caption = "ÇëµÇ¼ÓÎÏ·";
+ m_lblTips->Caption = "请登录游�";
m_lblTips->Show();
return true;
@@ -1926,37 +1926,37 @@ void __fastcall TMainForm::UMWebDead(TMessage &msg)
int reason = msg.WParam;
if(reason==0){
- MessageBox(Handle, L"Õ˺ű»Öظ´µÇÈ룬ÇëÖØÐµÇ¼", L"µÇ¼", MB_ICONERROR | MB_OK);
+ MessageBox(Handle, L"账�被��登入,请�新登录", L"登录", MB_ICONERROR | MB_OK);
}
// else if(reason==2){
-// MessageBox(Handle, L"ÍøÕ¾×ÊÔ´¼ÓÔØÊ§°Ü£¬ÇëÖØÐµÇ¼", L"µÇ¼", MB_ICONERROR | MB_OK);
+// MessageBox(Handle, L"网站资æº�åŠ è½½å¤±è´¥ï¼Œè¯·é‡�新登录", L"登录", MB_ICONERROR | MB_OK);
// }
else if(reason==3){
- MessageBox(Handle, L"ÍøÕ¾Á¬½ÓÒì³££¬ÇëÖØÐµÇ¼", L"µÇ¼", MB_ICONERROR | MB_OK);
+ MessageBox(Handle, L"网站连接异常,请�新登录", L"登录", MB_ICONERROR | MB_OK);
}
- else if(reason==-2){ //-2=ÊÚȨÑéÖ¤ÒѹýÆÚ
+ else if(reason==-2){ //-2=授�验�已过期
if(m_sActCode.Length()){
- MessageBox(Handle, L"ÊÚȨÂëÒѹýÆÚ£¬ÇëÑÓÆÚ»ò¸ü»»", L"ÊÚȨ", MB_ICONERROR | MB_OK);
+ MessageBox(Handle, L"授æ�ƒç �已过期,请延期或更æ�¢", L"授æ�ƒ", MB_ICONERROR | MB_OK);
bActCode = true;
}
else{
- MessageBox(Handle, L"δÊÚȨÕ˺ŻòÊÚȨÒѹýÆÚ£¬ÇëÖØÐµÇ¼", L"µÇ¼", MB_ICONERROR | MB_OK);
+ MessageBox(Handle, L"未授�账�或授�已过期,请�新登录", L"登录", MB_ICONERROR | MB_OK);
g_bAutoLogin = false;
}
}
- else if(reason==-3){ //ÍøÂçÒì³£ÖÐ¶Ï -1=µÇ¼ʧ°Ü 3=Á¬½Ó¹Ø±Õ 4=Á¬½ÓʧЧ
- MessageBox(Handle, L"µÇ¼ʧ°Ü£¬ÇëÖØÐµÇ¼", L"µÇ¼", MB_ICONERROR | MB_OK);
+ else if(reason==-3){ //ç½‘ç»œå¼‚å¸¸ä¸æ– -1=登录失败 3=è¿žæŽ¥å…³é— 4=连接失效
+ MessageBox(Handle, L"登录失败,请�新登录", L"登录", MB_ICONERROR | MB_OK);
}
else if(reason==-4){
if(m_sActCode.Length()){
- MessageBox(Handle, L"ÊÚȨÂëÑéÖ¤Òì³££¬ÇëÉÔºóÖØÊÔ", L"ÊÚȨ", MB_ICONERROR | MB_OK);
+ MessageBox(Handle, L"授æ�ƒç �验è¯�异常,请ç¨�å�Žé‡�试", L"授æ�ƒ", MB_ICONERROR | MB_OK);
bActCode = true;
}
else
- MessageBox(Handle, L"Õ˺ÅÊÚȨÑéÖ¤Òì³££¬ÇëÉÔºóÖØÐµÇ¼", L"µÇ¼", MB_ICONERROR | MB_OK);
+ MessageBox(Handle, L"账�授�验�异常,请���新登录", L"登录", MB_ICONERROR | MB_OK);
}
else{
- MessageBox(Handle, L"ÍøÕ¾µÇ¼³¬Ê±£¬ÇëÖØÐµÇ¼", L"µÇ¼", MB_ICONERROR | MB_OK);
+ MessageBox(Handle, L"网站登录超时,请�新登录", L"登录", MB_ICONERROR | MB_OK);
}
if(bActCode)
@@ -1977,7 +1977,7 @@ void __fastcall TMainForm::UMVelocity(TMessage &msg)
if((int)msg.WParam<0){
// m_iWSVelo = m_iWS = -1;
- ShowMessage("ÍøÕ¾ÎÞ·¨Á¬½Ó£¬Çë¼ì²éÍøÂç״̬");
+ ShowMessage("ç½‘ç«™æ— æ³•è¿žæŽ¥ï¼Œè¯·æ£€æŸ¥ç½‘ç»œçŠ¶æ€�");
return;
}
@@ -2007,12 +2007,12 @@ void __fastcall TMainForm::UMStatus(TMessage &msg)
// m_strStatus = "";
//
// if( msg.WParam >= 1 && msg.WParam <= 6 ){
-// //±£´æµ±Ç°ÏÂ×¢¼°×¢Âë״̬
+// //ä¿�å˜å½“å‰�下注å�Šæ³¨ç �状æ€�
// if( msg.WParam==1 || msg.WParam>=5 ){
// FileGame( true );
// }
//
-// if( m_btnSound->Tag==0 || msg.WParam==4 ){ //²¥·ÅÌáʾÒô
+// if( m_btnSound->Tag==0 || msg.WParam==4 ){ //æ’æ”¾æ��示音
// TCHAR snd[256];
// wsprintf( snd, L"%ssnd%d", ((String)g_AppPath).c_str(), msg.WParam );
//
@@ -2045,7 +2045,7 @@ void __fastcall TMainForm::UMJsHandled(TMessage &msg)
if( ret>=0 ){
FileUserWeb();
InitBrowser();
- m_lblTips->Caption = "ÇëµÇ¼ÓÎÏ·";
+ m_lblTips->Caption = "请登录游�";
if(m_sActCode.Length())
PostMessage(Handle, UM_USERCONFIRM, UR_LOGIN, 0 );
@@ -2059,7 +2059,7 @@ void __fastcall TMainForm::UMJsHandled(TMessage &msg)
m_bWebLogon = true;
m_iWSVelo = m_iWS;
- m_lblTips->Caption = "¼ÓÔØÌ¨×ÀÊý¾Ý...";
+ m_lblTips->Caption = "åŠ è½½å�°æ¡Œæ•°æ�®...";
m_lblTips->Visible = true;
m_chrm->ExecuteJavaScript( baseJS_PA, "", 0 );
@@ -2099,7 +2099,7 @@ void __fastcall TMainForm::UMAddTable(TMessage &msg)
int ind = msg.WParam;
TGame* pG = (TGame*)msg.LParam;
- if(pG){//µ¥¸ǫ̈×À
+ if(pG){//�个�桌
int nTab = m_aTables.size();
if(m_nTabShow<0 || nTab < m_nTabShow){
TTableFrame* pT = new TTableFrame(NULL);
@@ -2113,8 +2113,8 @@ void __fastcall TMainForm::UMAddTable(TMessage &msg)
DebugPrint("AddTable %s", ((AnsiString)pG->vid).c_str());
}
}
- else{//È«²¿Ì¨×À
- //ÏÈÇå¿Ǫ̃×À
+ else{//全部�桌
+ //先清空�桌
m_aSelTabs.clear();
for(int i=0; iVisible = false;
m_lblTips->Visible = false;
- m_btnLogin->Caption = "ÖØÐµÇ¼";
+ m_btnLogin->Caption = "�新登录";
m_btnStart->Enabled = true;
m_btnTables->Enabled = true;
m_btnManual->Enabled = true;
@@ -2149,7 +2149,7 @@ void __fastcall TMainForm::UMAddTable(TMessage &msg)
PostMessage(Handle, UM_STATE_UPDATE, STATE_ALL, 0);
if( g_iPlatform==PF_PA ){
- //»ñÈ¡Óû§ÐÅÏ¢
+ //获�用户信�
m_chrm->ExecuteJavaScript( userJS_PA, "", 0 );
ClearUtilTimer();
@@ -2168,21 +2168,21 @@ void __fastcall TMainForm::UMAddTable(TMessage &msg)
void __fastcall TMainForm::UMPolicyChanged(TMessage &msg)
{
- int op = msg.WParam>>16, //²Ù×÷ÀàÐÍ 0=ÐÞ¸Ä 1=Ìí¼Ó 2=ɾ³ý
- iType = msg.WParam & 0xFFFF, //²ßÂÔÀàÐÍ
- iPolicy = msg.LParam; //²ßÂÔÐòºÅ
+ int op = msg.WParam>>16, //æ“�作类型 0=修改 1=æ·»åŠ 2=åˆ é™¤
+ iType = msg.WParam & 0xFFFF, //ç–略类型
+ iPolicy = msg.LParam; //ç–ç•¥åº�å�·
TComboBox* pCB = iType==TYPE_P_BET ? m_cbBetWays : m_cbBetChips;
- if(op==0){ //Ñ¡Ôñ
+ if(op==0){ //选择
pCB->ItemIndex = iPolicy;
OnPolicyChange(pCB);
}
- else if(op==1){ //Ìí¼Ó
+ else if(op==1){ //æ·»åŠ
vector& aPolicies = iType==TYPE_P_BET ? g_aBetPolicies : g_aChipPolicies;
TBasePolicy* pPolicy = aPolicies.back();
pCB->AddItem(pPolicy->name, NULL);
}
- else if(op==2){ //ɾ³ý
+ else if(op==2){ //åˆ é™¤
pCB->Items->Delete(iPolicy);
if(pCB->ItemIndex<0)
@@ -2191,7 +2191,7 @@ void __fastcall TMainForm::UMPolicyChanged(TMessage &msg)
int& gPolicy = iType==TYPE_P_BET ? g_iBetPolicy : g_iChipPolicy;
gPolicy = pCB->ItemIndex;
- //¶ÀÁ¢²ßÂÔÐÞ¸Ä
+ //独立ç–略修改
for(int i=g_aIPGames.size()-1; i>=0; i--){
TIPGame* pIG = g_aIPGames[i];
int& rIGP = iType==TYPE_P_BET ? pIG->iBetPolicy : pIG->iChipPolicy;
@@ -2203,7 +2203,7 @@ void __fastcall TMainForm::UMPolicyChanged(TMessage &msg)
rGP = rIGP;
}
}
- else if(rIGP==iPolicy){ //ɾ³ý¶ÀÁ¢²ßÂÔ
+ else if(rIGP==iPolicy){ //åˆ é™¤ç‹¬ç«‹ç–ç•¥
if(pIG->pGame){
pIG->pGame->ResetIP();
}
@@ -2218,10 +2218,10 @@ void __fastcall TMainForm::UMPolicyChanged(TMessage &msg)
void __fastcall TMainForm::UMLogUpdate(TMessage &msg)
{
TBetLog* pLog = (TBetLog*)msg.LParam;
- if(pLog){ //Ìí¼Ó
+ if(pLog){ //æ·»åŠ
g_aBetLogs.push_back(pLog);
}
- else{ //Çå¿Õ
+ else{ //清空
for(int i=0; iHandle, UM_USERCONFIRM, 0, m_tExpire);
}
}
- else if(!bExpired && !g_bGameOn && g_tmIdle<600){ //·ÇÎÞÈËÖµÊØ¹Ò»ú״̬
+ else if(!bExpired && !g_bGameOn && g_tmIdle<600){ //é�žæ— 人值守挂机状æ€�
for(int i=1; i<=7; i++){
if(extm < i * 86400){
- mbText = "ÄúµÄ";
- mbText += m_sActCode.Length() ? "ÊÚȨÂë" : "Õ˺ÅÊÚȨ";
- mbText += "½«ÔÚ " + IntToStr(i) + " ÌìÄÚµ½ÆÚ";
- mbTitle = "×¢Òâ";
+ mbText = "您的";
+ mbText += m_sActCode.Length() ? "授æ�ƒç �" : "è´¦å�·æŽˆæ�ƒ";
+ mbText += "将在 " + IntToStr(i) + " 天内到期";
+ mbTitle = "注�";
mbFlag = MB_ICONWARNING;
break;
}
@@ -2487,7 +2487,7 @@ void __fastcall TMainForm::UMWebLogin(TMessage &msg)
if(!m_sActCode.Length())
g_uid = 0;
- g_MinOnBet = 20; //ȱʡÏÞºì
+ g_MinOnBet = 20; //缺��红
g_MaxOnBet = 50000;
g_iPlatform = iPF;//pForm->m_iPlatform;
@@ -2495,7 +2495,7 @@ void __fastcall TMainForm::UMWebLogin(TMessage &msg)
m_tmWebFocus = 0;
m_chrm->WasHidden(false);
- m_chrm->SetFocus(true); //ÉèΪǰ̨ÔËÐУ¬·ñÔòÎÞ·¨¼ÓÔØ
+ m_chrm->SetFocus(true); //设为å‰�å�°è¿�行,å�¦åˆ™æ— æ³•åŠ è½½
if( g_iPlatform==PF_PA ){
for(int i=0; i<6; i++ )
@@ -2522,12 +2522,12 @@ void __fastcall TMainForm::UMWebLogin(TMessage &msg)
if(!g_settings.bSimAccOn || !g_bSimulate)
m_frmInfo->m_lblAccount->Caption = "";
- m_lblTips->Caption = "ÕýÔÚÁ¬½ÓÍøÕ¾...";
+ m_lblTips->Caption = "æ£åœ¨è¿žæŽ¥ç½‘ç«™...";
m_lblAnnonce->Visible = true;
m_lblTips->Visible = true;
}
// else{
-// m_lblTips->Caption = "ÇëµÇ¼ÓÎÏ·";
+// m_lblTips->Caption = "请登录游�";
// }
delete pForm;
@@ -2583,7 +2583,7 @@ void __fastcall TMainForm::UMStateUpdate(TMessage &msg)
m_frmInfo->m_lblCurProfit->Caption = FormatFloat("0.##",g_aGames.betData.profits[3]);
m_frmInfo->m_lblCurProfit->Font->Color = g_aGames.betData.profits[3]<0 ? clFuchsia : clLime;
- m_frmInfo->m_lblSRTitle->Caption = g_bSimulate ? "µ±Ç°Ä£Äâ:" : "µ±Ç°Êµ´ò:";
+ m_frmInfo->m_lblSRTitle->Caption = g_bSimulate ? "当�模拟:" : "当�实打:";
double srProf = g_bSimulate ? g_aGames.betData.profits[6] : g_aGames.betData.profits[7];
m_frmInfo->m_lblSRProfit->Caption = FormatFloat("0.##", srProf);
m_frmInfo->m_lblSRProfit->Font->Color = srProf<0 ? clFuchsia : clYellow;
@@ -2619,11 +2619,11 @@ void __fastcall TMainForm::UMStateUpdate(TMessage &msg)
m_frmInfo->m_lblMaxChip->Caption = "";
if(g_settings.bSimAccOn && g_bSimulate){
- m_frmInfo->m_lblAccountTitle->Caption = "±¾½ð:";
+ m_frmInfo->m_lblAccountTitle->Caption = "本金:";
m_frmInfo->m_lblAccount->Caption = FormatFloat("0.##",g_settings.fSimAcc);
}
else{
- m_frmInfo->m_lblAccountTitle->Caption = "Óà¶î:";
+ m_frmInfo->m_lblAccountTitle->Caption = "余�:";
m_frmInfo->m_lblAccount->Caption = FormatFloat("0.##",g_fBalance);
}
}
@@ -2631,13 +2631,13 @@ void __fastcall TMainForm::UMStateUpdate(TMessage &msg)
double fBalance;
if(g_settings.bSimAccOn && g_bSimulate){
if(msg.LParam)
- m_frmInfo->m_lblAccountTitle->Caption = "±¾½ð:";
+ m_frmInfo->m_lblAccountTitle->Caption = "本金:";
m_frmInfo->m_lblAccount->Caption = FormatFloat("0.##",g_settings.fSimAcc);
fBalance = g_settings.fSimAcc;
}
else{
if(msg.LParam)
- m_frmInfo->m_lblAccountTitle->Caption = "Óà¶î:";
+ m_frmInfo->m_lblAccountTitle->Caption = "余�:";
m_frmInfo->m_lblAccount->Caption = FormatFloat("0.##",g_fBalance);
fBalance = g_fBalance;
}
@@ -2719,7 +2719,7 @@ void __fastcall TMainForm::UMStateUpdate(TMessage &msg)
m_frmInfo->m_lblCurProfit->Caption = FormatFloat("0.##",g_aGames.betData.profits[3]);
m_frmInfo->m_lblCurProfit->Font->Color = g_aGames.betData.profits[3]<0 ? clFuchsia : clLime;
- m_frmInfo->m_lblSRTitle->Caption = g_bSimulate ? "µ±Ç°Ä£Äâ:" : "µ±Ç°Êµ´ò:";
+ m_frmInfo->m_lblSRTitle->Caption = g_bSimulate ? "当�模拟:" : "当�实打:";
double srProf = g_bSimulate ? g_aGames.betData.profits[6] : g_aGames.betData.profits[7];
m_frmInfo->m_lblSRProfit->Caption = FormatFloat("0.##", srProf);
m_frmInfo->m_lblSRProfit->Font->Color = srProf<0 ? clFuchsia : clYellow;
@@ -2737,11 +2737,11 @@ void __fastcall TMainForm::UMStateUpdate(TMessage &msg)
// m_frmInfo->m_lblWinCount->Caption = g_aGames.betData.counts[0];
if(g_bGameOn){
- if(g_settings.bTotalStopWin && g_aGames.betData.profits[3]>=g_settings.nTotalStopWin) //×ÜÌåÖ¹Ó®
+ if(g_settings.bTotalStopWin && g_aGames.betData.profits[3]>=g_settings.nTotalStopWin) //总体æ¢èµ¢
iStop = 1;
if(g_bSimulate && g_settings.bS2RWin && g_settings.nS2RWin<=g_aGames.betData.profits[6]
- || !g_bSimulate && g_settings.bR2SWin && g_settings.nR2SWin<=g_aGames.betData.profits[7]) //ģʵÇл»
+ || !g_bSimulate && g_settings.bR2SWin && g_settings.nR2SWin<=g_aGames.betData.profits[7]) //模实切�
bSwitch = true;
}
}
@@ -2749,7 +2749,7 @@ void __fastcall TMainForm::UMStateUpdate(TMessage &msg)
// m_frmInfo->m_lblLosCount->Caption = g_aGames.betData.counts[1];
if(g_bGameOn){
- if(g_settings.bTotalStopLos && g_aGames.betData.profits[3]<=-g_settings.nTotalStopLos)//×ÜÌåÖ¹Ëð
+ if(g_settings.bTotalStopLos && g_aGames.betData.profits[3]<=-g_settings.nTotalStopLos)//æ€»ä½“æ¢æ�Ÿ
iStop = 2;
if(g_settings.bU2DStop && (!g_settings.bU2DMinPeak || g_aGames.fCurrProfitPeak >= g_settings.nU2DMinPeak)
@@ -2760,11 +2760,11 @@ void __fastcall TMainForm::UMStateUpdate(TMessage &msg)
}
if(g_bSimulate && g_settings.bS2RLos && -g_settings.nS2RLos>=g_aGames.betData.profits[6]
- || !g_bSimulate && g_settings.bR2SLos && -g_settings.nR2SLos>=g_aGames.betData.profits[7]) //ģʵÇл»
+ || !g_bSimulate && g_settings.bR2SLos && -g_settings.nR2SLos>=g_aGames.betData.profits[7]) //模实切�
bSwitch = true;
if(g_settings.bSimAccOn && g_settings.bStopLow && g_settings.fSimAccm_pGame->bRun)
pT->m_pGame->AutoBetOff(bBreak);
}
- if(g_aGames.bFloat) //ÓĮ̂ÎÞÐëµÈ´ý½áËã
+ if(g_aGames.bFloat) //游å�°æ— é¡»ç‰å¾…结算
g_aGames.ResetFloat();
TBetLog* pLog = new TBetLog;
@@ -2803,12 +2803,12 @@ void __fastcall TMainForm::UMStateUpdate(TMessage &msg)
: iStop==2 && g_settings.iTotalLosOp==2 ? g_settings.nTotalLosPause
: 0 ) * 60;
- if(sec==0 && g_aGames.pRankChip){ //Á¢¼´ÖØÖÃ
+ if(sec==0 && g_aGames.pRankChip){ //立��置
g_aGames.ResetRankChip();
}
- else if(m_tmBetPauseWasHidden(false);
- m_chrm->SetFocus(true); //ÉèΪǰ̨£¬·ñÔòÎÞ·¨¼ÓÔØ
+ m_chrm->SetFocus(true); //设为å‰�å�°ï¼Œå�¦åˆ™æ— æ³•åŠ è½½
- if(tab==1){ //½øÈë¶ą̀
- m_tmWebFocus = 590; //±£»î10Ã룬ÒÔ¼ÓÔØÍê³É
+ if(tab==1){ //进入多�
+ m_tmWebFocus = 590; //ä¿�æ´»10ç§’ï¼Œä»¥åŠ è½½å®Œæˆ�
}
else{
if( g_iPlatform==PF_PA ){
if(tab==0)
- m_chrm->ExecuteJavaScript(goLinkJS_PA, "", 0); //½øÈë¶ą̀
+ m_chrm->ExecuteJavaScript(goLinkJS_PA, "", 0); //进入多�
else
- m_chrm->ExecuteJavaScript(goLobbyJS_PA, "", 0); //ÏȻشóÌü
+ m_chrm->ExecuteJavaScript(goLobbyJS_PA, "", 0); //先回大厅
}
else if( g_iPlatform==PF_AB ){
- m_chrm->ExecuteJavaScript(goLinkJS_AB, "", 0); //½øÈë¶ą̀
+ m_chrm->ExecuteJavaScript(goLinkJS_AB, "", 0); //进入多�
}
m_tmWebFocus = 0;
@@ -2956,7 +2956,7 @@ void __fastcall TMainForm::UMChartUpdate(TMessage &msg)
{
int mod = msg.WParam,
op = msg.LParam;
- if( op ){ //Çå³ýͼ±íÊý¾Ý
+ if( op ){ //清除图表数�
g_aDots[mod].clear();
bool bAllClear = true;
@@ -2968,7 +2968,7 @@ void __fastcall TMainForm::UMChartUpdate(TMessage &msg)
}
if(bAllClear)
- g_aGames.runTime = 0; //ÖØÖùһúʱ¼ä
+ g_aGames.runTime = 0; //�置挂机时间
if(g_bGameOn){
TDot dot;
@@ -3025,7 +3025,7 @@ void __fastcall TMainForm::UMFloatDead(TMessage &msg)
g_aGames.ResetFloat();
- if(dead==0){ //Á¢¼´Í£Ö¹
+ if(dead==0){ //ç«‹å�³å�œæ¢
TBetLog* pLog = new TBetLog;
pLog->ts = DateTimeToUnix(Now(), false);
pLog->ev = LOGEVT_END;
@@ -3043,7 +3043,7 @@ void __fastcall TMainForm::UMFloatDead(TMessage &msg)
}
else{
TBetLog* pLog = new TBetLog;
- strcpy(pLog->tno, "ÓĮ̂");
+ strcpy(pLog->tno, "游�");
pLog->ts = DateTimeToUnix(Now(), false);
pLog->ev = LOGEVT_DEAD;
pLog->op = dead;
@@ -3051,7 +3051,7 @@ void __fastcall TMainForm::UMFloatDead(TMessage &msg)
SendMessage(Handle, UM_LOG_UPDATE, 0, (long)pLog);
if(g_bGameOn){
- if(dead==1){ //оÖÖØÆô
+ if(dead==1){ //新局��
for(int i=0; im_pGame;
@@ -3059,16 +3059,16 @@ void __fastcall TMainForm::UMFloatDead(TMessage &msg)
pG->AutoBetOff(true);
}
}
- else{ //ÔÝÍ£ÖØÆô
- if(pause==0){ //Á¢¼´ÖØÆô
- if(!g_bBetPause) //µ±Ç°Ã»ÓÐÔÝÍ£
+ else{ //暂���
+ if(pause==0){ //立���
+ if(!g_bBetPause) //当�没有暂�
PostMessage(Handle, UM_FLOAT_BET, 0, 0);
}
else{
int sec = pause * 60;
- if(m_tmDeadPause < sec){ //¿ÉÄÜÖ¹Ó®Ö¹ËðÔÝÍ£ÖÐ
+ if(m_tmDeadPause < sec){ //å�¯èƒ½æ¢èµ¢æ¢æ�Ÿæš‚å�œä¸
m_tmDeadPause = sec;
- g_bDeadPause = true; //±¬ÀÂÔÝÍ£
+ g_bDeadPause = true; //爆缆暂�
}
}
}
@@ -3096,7 +3096,7 @@ void __fastcall TMainForm::UMGlobalDead(TMessage &msg)
g_aGames.ResetRankChip();
- if(dead==0){ //Á¢¼´Í£Ö¹
+ if(dead==0){ //ç«‹å�³å�œæ¢
TBetLog* pLog = new TBetLog;
pLog->ts = DateTimeToUnix(Now(), false);
pLog->ev = LOGEVT_END;
@@ -3113,19 +3113,19 @@ void __fastcall TMainForm::UMGlobalDead(TMessage &msg)
}
else{
TBetLog* pLog = new TBetLog;
- strcpy(pLog->tno, "×ÜÌå");
+ strcpy(pLog->tno, "总体");
pLog->ts = DateTimeToUnix(Now(), false);
pLog->ev = LOGEVT_DEAD;
pLog->op = dead;
pLog->num = pause;
SendMessage(Handle, UM_LOG_UPDATE, 0, (long)pLog);
- if(g_bGameOn && (dead==1 || dead==2 && pause!=0)){ //dead==1оÖÖØÆô
+ if(g_bGameOn && (dead==1 || dead==2 && pause!=0)){ //dead==1新局��
if(dead==2){
int sec = pause * 60;
- if(m_tmDeadPause < sec){ //¿ÉÄÜÖ¹Ó®Ö¹ËðÔÝÍ£ÖÐ
+ if(m_tmDeadPause < sec){ //å�¯èƒ½æ¢èµ¢æ¢æ�Ÿæš‚å�œä¸
m_tmDeadPause = sec;
- g_bDeadPause = true; //±¬ÀÂÔÝÍ£
+ g_bDeadPause = true; //爆缆暂�
}
}
@@ -3221,22 +3221,22 @@ void __fastcall TMainForm::ManualOn()
{
if(!m_bManual){
m_bManual = true;
- m_btnManual->Caption = "¹Ø±ÕÊÖ¹¤";
+ m_btnManual->Caption = "关闿‰‹å·¥";
LockWindowUpdate( m_panWeb->Handle );
- //Çå³ý̨×ÀÑ¡Ôñ
+ //清除�桌选择
ClearSelect();
- //ÏÔʾ³ïÂë
+ //显示ç¹ç �
ChipsForm = new TChipsForm(this);
- int x = Left>DPIX(60) ? - DPIX(50) : -DPIX(5); //·ÅÖõ½´°¿ÚÍâ
+ int x = Left>DPIX(60) ? - DPIX(50) : -DPIX(5); //放置到窗�外
TPoint pt = TPoint(x, m_panWeb->Top);
pt = ClientToScreen(pt);
ChipsForm->Left = pt.x;
ChipsForm->Top = pt.y;
ChipsForm->Show();
- //¿ªÆôÊÖ¹¤
+ //开�手工
for(int i=0; iHandle, UM_MANUAL_SET, true, 0);
}
@@ -3249,7 +3249,7 @@ void __fastcall TMainForm::ManualOff()
{
if(m_bManual){
m_bManual = false;
- m_btnManual->Caption = "¿ªÆôÊÖ¹¤";
+ m_btnManual->Caption = "开�手工";
ChipsForm->Hide();
delete ChipsForm;
@@ -3309,17 +3309,17 @@ void __fastcall TMainForm::OnStartClick(TObject *Sender)
{
if( !g_bGameOn ){
if(g_iBetPolicy<0){
- ShowMessage( "ÇëÏÈÑ¡Ôñ´ò·¨" );
+ ShowMessage( "请先选择打法" );
goto Start_Click_Exit;
}
if(g_iChipPolicy<0){
- ShowMessage( "ÇëÏÈÑ¡Ôñ×¢Âë" );
+ ShowMessage( "请先选择注ç �" );
goto Start_Click_Exit;
}
if(g_aGames.nBetted[0] || g_aGames.nBetted[1]){
- int mrRet = MessageBox(Handle, L"ÉϴνáËãÉÐδÍê³É£¬ÊÇ·ñ¿ªÊ¼¹Ò»ú£¿", L"¹Ò»ú",
+ int mrRet = MessageBox(Handle, L"上次结算尚未完�,是�开始挂机?", L"挂机",
MB_ICONQUESTION | MB_OKCANCEL);
if( mrRet==mrCancel )
@@ -3392,7 +3392,7 @@ void __fastcall TMainForm::OnTablesClick(TObject *Sender)
m_nTabRun = pForm->m_nRun;
int nTab = m_aTables.size();
- if(m_nTabShow<0 || nTabnGame) ? nGame : m_nTabShow;
for(int i=nTab; i m_nTabShow){ //ÏÔʾ̨×À¼õÉÙ
+ else if(nTab > m_nTabShow){ //显示�桌�少
for(int i=nTab-1; i>=m_nTabShow; i--){
TTableFrame* pT = m_aTables[i];
pT->SetRun(false);
@@ -3468,7 +3468,7 @@ void __fastcall TMainForm::OnPolicyChange(TObject *Sender)
return;
}
- if(combo==m_cbBetChips){ //¸ù¾Ý×îСעÂëµ÷Õû±¶Êý
+ if(combo==m_cbBetChips){ //æ ¹æ�®æœ€å°�注ç �调整å€�æ•°
if(g_aChipPolicies[ind]->kind==KIND_CHIP_COM){
g_nChipMul = 0;
m_leChipMul->Text = "";
@@ -3478,7 +3478,7 @@ void __fastcall TMainForm::OnPolicyChange(TObject *Sender)
RecalcMultiRate();
}
}
- else{ //¸ù¾Ý´ò·¨¸Ä±ä·ÖéÏÔʾ
+ else{ //æ ¹æ�®æ‰“法改å�˜è·¯ç� 显示
m_cbRoad->ItemIndex = ((TBetPolicy*)g_aBetPolicies[ind])->road;
OnRoadChange(m_cbRoad);
}
@@ -3556,7 +3556,7 @@ Int8 __fastcall TMainForm::ShowSettingForm()
void __fastcall TMainForm::OnLoginClick(TObject *Sender)
{
if(g_bGameOn){
- int mrRet = MessageBox(Handle, L"ÕýÔÚ¹Ò»úÖУ¬ÊÇ·ñÈ·¶¨ÖØÐµÇ¼£¿", L"µÇ¼",
+ int mrRet = MessageBox(Handle, L"æ£åœ¨æŒ‚机ä¸ï¼Œæ˜¯å�¦ç¡®å®šé‡�新登录?", L"登录",
MB_ICONQUESTION | MB_OKCANCEL);
if( mrRet==mrCancel ){
@@ -3568,7 +3568,7 @@ void __fastcall TMainForm::OnLoginClick(TObject *Sender)
}
if(g_aGames.nBetted[0] || g_aGames.nBetted[1]){
- int mrRet = MessageBox(Handle, L"ÉÐÓнáËãδÍê³É£¬ÊÇ·ñÈ·¶¨ÖØÐµÇ¼£¿", L"µÇ¼",
+ int mrRet = MessageBox(Handle, L"尚有结算未完�,是�确定�新登录?", L"登录",
MB_ICONQUESTION | MB_OKCANCEL);
if( mrRet==mrCancel ){
@@ -3598,7 +3598,7 @@ void __fastcall TMainForm::OnAccountClick(TObject *Sender)
{
if(!m_frmInfo->m_lblAccName->Caption.IsEmpty()){
Clipboard()->AsText = m_frmInfo->m_lblAccName->Caption;
- ShowMessage("Õ˺ÅÒѸ´ÖƵ½¼ôÇаå");
+ ShowMessage("账�已�制到剪切�");
}
}
//---------------------------------------------------------------------------
@@ -3613,7 +3613,7 @@ void __fastcall TMainForm::OnChipMulExit(TObject *Sender)
m_leChipMul->Text = IntToStr(multi);
- ShowMessage("ÇëÊäÈëÊʵ±µÄͶע±¶Êý\n(×îСֵ£º" + IntToStr(multi) + ")");
+ ShowMessage("请输入适当的投注�数\n(最�值:" + IntToStr(multi) + ")");
m_leChipMul->SetFocus();
}
@@ -3643,7 +3643,7 @@ void __fastcall TMainForm::OnLogsClick(TObject *Sender)
void __fastcall TMainForm::OnChartClick(TObject *Sender)
{
if(!ChartForm){
- //³õʼ»¯Í¼±íÊý¾Ý
+ //�始化图表数�
TDot dot;
if(g_aDots[0].empty()){
double pro = g_aGames.betData.profits[0];
@@ -3713,7 +3713,7 @@ void __fastcall TMainForm::OnModeClick(TObject *Sender)
g_aGames.betData.profits[6] = 0;
if(g_settings.bSimAccOn){
- m_frmInfo->m_lblAccountTitle->Caption = "±¾½ð";
+ m_frmInfo->m_lblAccountTitle->Caption = "本金";
m_frmInfo->m_lblAccount->Caption = FormatFloat("0.##",g_settings.fSimAcc);
}
}
@@ -3722,11 +3722,11 @@ void __fastcall TMainForm::OnModeClick(TObject *Sender)
g_aGames.betData.profits[7] = 0;
if(g_settings.bSimAccOn){
- m_frmInfo->m_lblAccountTitle->Caption = "Óà¶î";
+ m_frmInfo->m_lblAccountTitle->Caption = "余�";
m_frmInfo->m_lblAccount->Caption = FormatFloat("0.##",g_fBalance);
}
}
- m_frmInfo->m_lblSRTitle->Caption = g_bSimulate ? "µ±Ç°Ä£Äâ:" : "µ±Ç°Êµ´ò:";
+ m_frmInfo->m_lblSRTitle->Caption = g_bSimulate ? "当�模拟:" : "当�实打:";
m_frmInfo->m_lblSRProfit->Caption = "";
if(g_bGameOn){
@@ -3834,20 +3834,20 @@ int __fastcall TMainForm::GetTimeCount()
void __fastcall TMainForm::LoadUrl()
{
m_chrm->LoadURL(g_iPlatform==PF_PA ? (String)websites[m_iWS] : m_url);
- m_lblTips->Caption = "ÕýÔÚÁ¬½ÓÍøÕ¾...";
+ m_lblTips->Caption = "æ£åœ¨è¿žæŽ¥ç½‘ç«™...";
- //ÐÞ¸Ätitle
- String platform = g_iPlatform==PF_DB ? "¶à±¦(DB)"
- : g_iPlatform==PF_AB ? "Å·²©(ABG)"
- : "PAÊÓѶ(AG)";
+ //修改title
+ String platform = g_iPlatform==PF_DB ? "多�(DB)"
+ : g_iPlatform==PF_AB ? "欧�(ABG)"
+ : "PA视讯(AG)";
String title = Caption;
- int pos = title.Pos("µ±Ç°ÓÎÏ·£º");
+ int pos = title.Pos("当�游�:");
if(pos>0){
title = title.SubString(1, pos+4);
title += platform;
}
else{
- title += " µ±Ç°ÓÎÏ·£º" + platform;
+ title += " 当�游�:" + platform;
}
Caption = title;
@@ -3898,13 +3898,13 @@ int __fastcall TMainForm::GetTableByPos(int x, int y)
TForm *fmMask = NULL;
int xDown, yDown, xMove, yMove;
-int spDown, spMove; //¹ö¶¯ÌõλÖÃ(Æðʼ/ÉÏ´Î)
-int mode; //¼¯ºÏÔËËã 0=noneµ¥¼¯(b) 1=shift²¢¼¯(a+b) 2=ctrl¶Ô³Æ²î¼¯(a+b-a^b)
+int spDown, spMove; //滚动��置(起始/上次)
+int mode; //集��算 0=none�集(b) 1=shift并集(a+b) 2=ctrl对称差集(a+b-a^b)
set setSel, setUns;
void __fastcall TMainForm::WebMouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift, int X, int Y)
{
- if(m_aTables.empty() || m_bManual) //¿ªÆôÊÖ¹¤²»½øÐÐ̨×ÀÑ¡Ôñ
+ if(m_aTables.empty() || m_bManual) //开�手工�进行�桌选择
return;
setSel.clear();
@@ -3919,7 +3919,7 @@ void __fastcall TMainForm::WebMouseDown(TObject *Sender, TMouseButton Button, TS
int iSel = GetTableByPos(X, Y);
set::iterator it = m_aSelTabs.find(iSel);
- if(it==m_aSelTabs.end()){ //δµã»÷Ñ¡ÖÐÏî
+ if(it==m_aSelTabs.end()){ //未点击选ä¸é¡¹
for(it=m_aSelTabs.begin(); it!=m_aSelTabs.end(); it++){
m_aTables[*it]->SetSel(false);
}
@@ -3948,7 +3948,7 @@ void __fastcall TMainForm::WebMouseDown(TObject *Sender, TMouseButton Button, TS
iL = iF==iSel ? m_iLastSel : iSel;
set::iterator it = m_aSelTabs.begin();
- while(it!=m_aSelTabs.end()){ //ÏÈɾ
+ while(it!=m_aSelTabs.end()){ //å…ˆåˆ
if(*it < iF || *it > iL){
m_aTables[*it]->SetSel(false);
it = m_aSelTabs.erase(it);
@@ -3958,7 +3958,7 @@ void __fastcall TMainForm::WebMouseDown(TObject *Sender, TMouseButton Button, TS
}
LockWindowUpdate( m_panWeb->Handle );
- for(int i=iF; i<=iL; i++){ //ºó¼Ó
+ for(int i=iF; i<=iL; i++){ //å�ŽåŠ
it = m_aSelTabs.find(i);
if(it==m_aSelTabs.end()){
m_aTables[i]->SetSel(true);
@@ -4027,7 +4027,7 @@ void __fastcall TMainForm::WebMouseMove(TObject *Sender, TShiftState Shift, int
{
if(m_bDragReady){
if( abs(X-xDown)>=5
- || abs(Y-yDown)>=5 ){ //¿ªÊ¼Í϶¯
+ || abs(Y-yDown)>=5 ){ //开始拖动
m_bDragReady = false;
m_bDraging = true;
// DebugPrint("beging draging");
@@ -4060,7 +4060,7 @@ void __fastcall TMainForm::WebMouseMove(TObject *Sender, TShiftState Shift, int
}
}
else if(m_bDraging){
- if(spMove==m_panWeb->VertScrollBar->Position && xMove==X && yMove==Y) //λÖÃδ¸Ä±ä
+ if(spMove==m_panWeb->VertScrollBar->Position && xMove==X && yMove==Y) //�置未改�
return;
if(fmMask){
diff --git a/RBmasterMain.dfm b/RBmasterMain.dfm
index 8ce7ef8..9e7eadf 100644
--- a/RBmasterMain.dfm
+++ b/RBmasterMain.dfm
@@ -139708,126 +139708,12 @@ object MainForm: TMainForm
ParentDoubleBuffered = False
TabOrder = 2
inherited m_panInfo1: TPanel
- StyleElements = [seFont, seClient, seBorder]
OnMouseMove = FormMouseMove
- inherited m_lblCurProfit: TLabel
- StyleElements = [seFont, seClient, seBorder]
- end
- inherited Label7: TLabel
- StyleElements = [seFont, seClient, seBorder]
- end
- inherited m_lblPeakU: TLabel
- StyleElements = [seFont, seClient, seBorder]
- end
- inherited Label9: TLabel
- StyleElements = [seFont, seClient, seBorder]
- end
- inherited m_lblPeakL: TLabel
- StyleElements = [seFont, seClient, seBorder]
- end
- inherited Label11: TLabel
- StyleElements = [seFont, seClient, seBorder]
- end
- inherited m_lblWinCount: TLabel
- StyleElements = [seFont, seClient, seBorder]
- end
- inherited Label13: TLabel
- StyleElements = [seFont, seClient, seBorder]
- end
- inherited m_lblLosCount: TLabel
- StyleElements = [seFont, seClient, seBorder]
- end
- inherited Label15: TLabel
- StyleElements = [seFont, seClient, seBorder]
- end
- inherited m_lblSWin: TLabel
- StyleElements = [seFont, seClient, seBorder]
- end
- inherited Label17: TLabel
- StyleElements = [seFont, seClient, seBorder]
- end
- inherited m_lblSLos: TLabel
- StyleElements = [seFont, seClient, seBorder]
- end
- inherited Label19: TLabel
- StyleElements = [seFont, seClient, seBorder]
- end
- inherited m_lblDead: TLabel
- StyleElements = [seFont, seClient, seBorder]
- end
- inherited Label3: TLabel
- StyleElements = [seFont, seClient, seBorder]
- end
- inherited Label2: TLabel
- StyleElements = [seFont, seClient, seBorder]
- end
- inherited m_lblMaxChip: TLabel
- StyleElements = [seFont, seClient, seBorder]
- end
- inherited m_lblSRProfit: TLabel
- StyleElements = [seFont, seClient, seBorder]
- end
- inherited m_lblSRTitle: TLabel
- StyleElements = [seFont, seClient, seBorder]
- end
end
inherited m_panInfo2: TPanel
- StyleElements = [seFont, seClient, seBorder]
OnMouseMove = FormMouseMove
- inherited m_lblManAmount: TLabel
- StyleElements = [seFont, seClient, seBorder]
- end
- inherited m_lblRealAmount: TLabel
- StyleElements = [seFont, seClient, seBorder]
- end
- inherited Label14: TLabel
- StyleElements = [seFont, seClient, seBorder]
- end
- inherited Label16: TLabel
- StyleElements = [seFont, seClient, seBorder]
- end
- inherited m_lblRealProfit: TLabel
- StyleElements = [seFont, seClient, seBorder]
- end
- inherited Label20: TLabel
- StyleElements = [seFont, seClient, seBorder]
- end
- inherited m_lblManProfit: TLabel
- StyleElements = [seFont, seClient, seBorder]
- end
- inherited Label39: TLabel
- StyleElements = [seFont, seClient, seBorder]
- end
- inherited m_lblAccountTitle: TLabel
- StyleElements = [seFont, seClient, seBorder]
- end
- inherited Label4: TLabel
- StyleElements = [seFont, seClient, seBorder]
- end
- inherited Label5: TLabel
- StyleElements = [seFont, seClient, seBorder]
- end
- inherited m_lblAccount: TLabel
- StyleElements = [seFont, seClient, seBorder]
- end
- inherited m_lblAmount: TLabel
- StyleElements = [seFont, seClient, seBorder]
- end
- inherited m_lblTotProfit: TLabel
- StyleElements = [seFont, seClient, seBorder]
- end
- inherited m_lblLimits: TLabel
- StyleElements = [seFont, seClient, seBorder]
- end
- inherited Label10: TLabel
- StyleElements = [seFont, seClient, seBorder]
- end
inherited m_lblAccName: TLabel
PopupMenu = m_pmCopyAccount
- StyleElements = [seFont, seClient, seBorder]
- end
- inherited Label22: TLabel
- StyleElements = [seFont, seClient, seBorder]
end
end
end
diff --git a/RBmasterMain.h b/RBmasterMain.h
index eb17ae8..e465341 100644
--- a/RBmasterMain.h
+++ b/RBmasterMain.h
@@ -1,4 +1,4 @@
-//---------------------------------------------------------------------------
+//---------------------------------------------------------------------------
#ifndef RBmasterMainH
#define RBmasterMainH
@@ -113,28 +113,28 @@ private: // User declarations
String m_loginValues[6];
String m_url;
- String m_sActCode; //ÊÚȨÂë
- int m_tExpire; //ÊÚȨÓÐЧÆÚ
- UINT m_idDevice; //É豸ºÅ
+ String m_sActCode; //授æ�ƒç �
+ int m_tExpire; //授�有效期
+ UINT m_idDevice; //设备�
WORD m_version[4];
- TThread *m_vlThread, //VeloÏß³Ì
- *m_jsThread, //JS´¦ÀíÏß³Ì
- *m_urThread, //Óû§¼øÈ¨Ïß³Ì
- *m_dpThread; //Êý¾Ý½âÎöÏß³Ì
+ TThread *m_vlThread, //Velo线程
+ *m_jsThread, //JS处�线程
+ *m_urThread, //用户鉴�线程
+ *m_dpThread; //数�解�线程
- TTimer *m_pDPTimer, //Êý¾Ý´¦Àí¶¨Ê±Æ÷
- *m_pUtilTimer; //¹¤¾ß¶¨Ê±Æ÷£¬TagÇø·ÖÓÃ;
- int m_tmChart, //ͼ±í¶¨Ê±¼ÆÊý
- m_tmWebFocus, //ÍøÒ³¼¤»î¶¨Ê±¼ÆÊý
-// m_tmWebTimeout, //ÍøÒ³ÎÞÊý¾Ý³¬Ê±
- m_tmCount, //Ãë¼ÆÊýÆ÷
- m_tmLogon, //µÇ¼ʱ¼ä
- m_tmDailyLogin, //ÿÈյǼʱ¼ä
- m_tmDailyReport, //ÿÈÕÉϱ¨Ê±¼ä
- m_tmDeadPause, //±¬ÀÂÔÝÍ£¶¨Ê±¼ÆÊý
- m_tmBetPause; //Ö¹Ó®Ö¹ËðÔÝÍ£¶¨Ê±¼ÆÊý
+ TTimer *m_pDPTimer, //数�处�定时器
+ *m_pUtilTimer; //工具定时器,Tag区分用途
+ int m_tmChart, //图表定时计数
+ m_tmWebFocus, //网页激活定时计数
+// m_tmWebTimeout, //ç½‘é¡µæ— æ•°æ�®è¶…æ—¶
+ m_tmCount, //秒计数器
+ m_tmLogon, //登录时间
+ m_tmDailyLogin, //�日登录时间
+ m_tmDailyReport, //�日上报时间
+ m_tmDeadPause, //爆缆暂�定时计数
+ m_tmBetPause; //æ¢èµ¢æ¢æ�Ÿæš‚å�œå®šæ—¶è®¡æ•°
bool m_bWebLogon,
m_bClosing,
@@ -152,14 +152,14 @@ private: // User declarations
// bool m_bV8Waiting;
vector m_aTables;
- vector m_aABThreads; //×Ô¶¯ÏÂ×¢Ïß³Ì×é
+ vector m_aABThreads; //自动下注线程组
int m_nTabShow, m_nTabRun;
- bool m_bDragReady, //Êó±êÍ϶¯½øÐÐÑ¡Ôñ²Ù×÷
+ bool m_bDragReady, //é¼ æ ‡æ‹–åŠ¨è¿›è¡Œé€‰æ‹©æ“�作
m_bDraging;
- TTimer *m_pDragTimer; //Í϶¯¹öÆÁ¶¨Ê±Æ÷
- int m_iLastSel; //×îºóµ¥¶ÀÑ¡ÖÐ̨×À
- set m_aSelTabs; //Ñ¡ÖÐ̨×À¼¯ºÏ
+ TTimer *m_pDragTimer; //拖动滚�定时器
+ int m_iLastSel; //最å�Žå�•独选ä¸å�°æ¡Œ
+ set m_aSelTabs; //选ä¸å�°æ¡Œé›†å�ˆ
int __fastcall TryUpdate();
int __fastcall InitGlobalVars();
@@ -180,7 +180,7 @@ private: // User declarations
void __fastcall OnWSConnectError();
void __fastcall ResetGame();
void __fastcall GameOn();
- void __fastcall GameOff(int iReason=0); //Óû§Í£Ö¹»òÍ˳ö
+ void __fastcall GameOff(int iReason=0); //用户å�œæ¢æˆ–退出
void __fastcall ManualOn();
void __fastcall ManualOff();
void __fastcall StartJSThread(int iOp);
@@ -237,7 +237,7 @@ private: // User declarations
const _di_ICefRequest request, const _di_ICefCallback callback, /* out */ TCefReturnValue &Result);
- //ÏûÏ¢´¦Àí
+ //消�处�
MESSAGE void __fastcall FormMove(TWMMove &msg);
MESSAGE void __fastcall SystemMenuCommand(TWMMenuSelect &Msg);
diff --git a/ResetFormUnit.cpp b/ResetFormUnit.cpp
index 28beec7..e2e9c7b 100644
--- a/ResetFormUnit.cpp
+++ b/ResetFormUnit.cpp
@@ -1,4 +1,4 @@
-//---------------------------------------------------------------------------
+//---------------------------------------------------------------------------
#include
#pragma hdrstop
@@ -110,7 +110,7 @@ void __fastcall TResetForm::OkClick(TObject *Sender)
if(m_cbCurrProfit->Checked){
g_aGames.betData.profits[3] = g_aGames.fCurrProfitPeak = 0;
g_aGames.betData.profits[6] = g_aGames.betData.profits[7] = 0;
- for(int i=0; iprofit = 0;
if(pG->hTable) PostMessage(pG->hTable, UM_TAB_UPDATE, UPDATE_RESET, 0);
@@ -135,7 +135,7 @@ void __fastcall TResetForm::OkClick(TObject *Sender)
}
if(m_cbSWin->Checked){
g_aGames.betData.counts[2] = 0;
- for(int i=0; iseqCount[0] = 0;
if(pG->hTable) PostMessage(pG->hTable, UM_TAB_UPDATE, UPDATE_RESET, 1);
@@ -144,7 +144,7 @@ void __fastcall TResetForm::OkClick(TObject *Sender)
}
if(m_cbSLos->Checked){
g_aGames.betData.counts[3] = 0;
- for(int i=0; iseqCount[1] = 0;
if(pG->hTable) PostMessage(pG->hTable, UM_TAB_UPDATE, UPDATE_RESET, 2);
diff --git a/SettingFormUnit.cpp b/SettingFormUnit.cpp
index 619fbd4..d631ef4 100644
--- a/SettingFormUnit.cpp
+++ b/SettingFormUnit.cpp
@@ -1,4 +1,4 @@
-//---------------------------------------------------------------------------
+//---------------------------------------------------------------------------
#include
#pragma hdrstop
@@ -15,7 +15,7 @@ TSettingForm *SettingForm = NULL;
__fastcall TSettingForm::TSettingForm(TComponent* Owner)
: TForm(Owner)
{
- //¿ªÊ¼¹Ò»ú
+ //开始挂机
m_cbWaitNew->Checked = g_settings.bWaitNew;
m_cbInitClearTabLog->Checked = g_settings.bInitClearTabLog;
m_cbInitBetChipByStart->Checked = g_settings.bInitBetChipByStart;
@@ -23,13 +23,13 @@ __fastcall TSettingForm::TSettingForm(TComponent* Owner)
m_cbInitCurProfitByStart->Checked = g_settings.bInitCurProfitByStart;
- //̨×ÀоÖ
+ //�桌新局
m_cbInitBetByGame->Checked = g_settings.bInitBetByGame;
m_cbInitChipByGame->Checked = g_settings.bInitChipByGame;
m_cbInitProfitByGame->Checked = g_settings.bInitProfitByGame;
m_cbInitLogByGame->Checked = g_settings.bInitLogByGame;
- //Ä£Äâ±¾½ð
+ //模拟本金
m_aRelatedCB[0] = m_cbSimAcc;
m_aRelatedCtrl[0].push_back(m_edSimAcc);
m_aRelatedCtrl[0].push_back(m_cbNoBetLow);
@@ -42,7 +42,7 @@ __fastcall TSettingForm::TSettingForm(TComponent* Owner)
m_cbStopLow->Checked = g_settings.bStopLow;
m_cbSyncReal->Checked = g_settings.bSyncReal;
- //×ÜÌåÖ¹Ó®
+ //总体æ¢èµ¢
m_aRelatedCB[1] = m_cbTotalStopWin;
m_aRelatedCtrl[1].push_back(m_edTotalStopWin);
m_aRelatedCtrl[1].push_back(m_edTotalWinPause);
@@ -60,7 +60,7 @@ __fastcall TSettingForm::TSettingForm(TComponent* Owner)
m_aTotalWinRB[2] = m_rbTotalWin2;
m_aTotalWinRB[g_settings.iTotalWinOp]->Checked = true;
- //×ÜÌåÖ¹Ëð
+ //æ€»ä½“æ¢æ�Ÿ
m_aRelatedCB[2] = m_cbTotalStopLos;
m_aRelatedCtrl[2].push_back(m_edTotalStopLos);
m_aRelatedCtrl[2].push_back(m_edTotalLosPause);
@@ -78,7 +78,7 @@ __fastcall TSettingForm::TSettingForm(TComponent* Owner)
m_aTotalLosRB[2] = m_rbTotalLos2;
m_aTotalLosRB[g_settings.iTotalLosOp]->Checked = true;
- //Ó®Àû»ØÂä
+ //赢利回�
m_aRelatedCB[3] = m_cbU2DStop;
m_aRelatedCtrl[3].push_back(m_cbU2DPause);
m_aRelatedCtrl[3].push_back(m_cbU2DMinPeak);
@@ -95,7 +95,7 @@ __fastcall TSettingForm::TSettingForm(TComponent* Owner)
m_edU2DMinPeak->Text = g_settings.nU2DMinPeak;
m_edU2DPause->Text = g_settings.nU2DPause;
- //ÕË»§Ö¹Ó®
+ //账户æ¢èµ¢
m_aRelatedCB[4] = m_cbAccStopWin;
m_aRelatedCtrl[4].push_back(m_edAccStopWin);
m_aRelatedCtrl[4].push_back(m_lbAccStopWin);
@@ -103,7 +103,7 @@ __fastcall TSettingForm::TSettingForm(TComponent* Owner)
m_cbAccStopWin->Checked = g_settings.bAccStopWin;
m_edAccStopWin->Text = g_settings.nAccStopWin;
- //ÕË»§Ö¹Ëð
+ //è´¦æˆ·æ¢æ�Ÿ
m_aRelatedCB[5] = m_cbAccStopLos;
m_aRelatedCtrl[5].push_back(m_edAccStopLos);
m_aRelatedCtrl[5].push_back(m_lbAccStopLos);
@@ -111,7 +111,7 @@ __fastcall TSettingForm::TSettingForm(TComponent* Owner)
m_cbAccStopLos->Checked = g_settings.bAccStopLos;
m_edAccStopLos->Text = g_settings.nAccStopLos;
- //µ¥×ÀÖ¹Ó®
+ //å�•桌æ¢èµ¢
m_aRelatedCB[6] = m_cbTableStopWin;
m_aRelatedCtrl[6].push_back(m_edTableStopWin);
m_aRelatedCtrl[6].push_back(m_edTableWinPause);
@@ -129,7 +129,7 @@ __fastcall TSettingForm::TSettingForm(TComponent* Owner)
m_aTableWinRB[2] = m_rbTableWin2;
m_aTableWinRB[g_settings.iTableWinOp]->Checked = true;
- //µ¥×ÀÖ¹Ëð
+ //å�•æ¡Œæ¢æ�Ÿ
m_aRelatedCB[7] = m_cbTableStopLos;
m_aRelatedCtrl[7].push_back(m_edTableStopLos);
m_aRelatedCtrl[7].push_back(m_edTableLosPause);
@@ -148,7 +148,7 @@ __fastcall TSettingForm::TSettingForm(TComponent* Owner)
m_aTableLosRB[g_settings.iTableLosOp]->Checked = true;
- //Ä£ÄâӮתʵ´ò
+ //模拟赢转实打
m_aRelatedCB[8] = m_cbS2RWin;
m_aRelatedCtrl[8].push_back(m_edS2RWin);
m_aRelatedCtrl[8].push_back(m_lbS2RWin);
@@ -156,7 +156,7 @@ __fastcall TSettingForm::TSettingForm(TComponent* Owner)
m_cbS2RWin->Checked = g_settings.bS2RWin;
m_edS2RWin->Text = g_settings.nS2RWin;
- //Ä£ÄâÊäתʵ´ò
+ //模拟输转实打
m_aRelatedCB[9] = m_cbS2RLos;
m_aRelatedCtrl[9].push_back(m_edS2RLos);
m_aRelatedCtrl[9].push_back(m_lbS2RLos);
@@ -164,7 +164,7 @@ __fastcall TSettingForm::TSettingForm(TComponent* Owner)
m_cbS2RLos->Checked = g_settings.bS2RLos;
m_edS2RLos->Text = g_settings.nS2RLos;
- //ʵ´òӮתģÄâ
+ //实打赢转模拟
m_aRelatedCB[10] = m_cbR2SWin;
m_aRelatedCtrl[10].push_back(m_edR2SWin);
m_aRelatedCtrl[10].push_back(m_lbR2SWin);
@@ -172,7 +172,7 @@ __fastcall TSettingForm::TSettingForm(TComponent* Owner)
m_cbR2SWin->Checked = g_settings.bR2SWin;
m_edR2SWin->Text = g_settings.nR2SWin;
- //ʵ´òÊäתģÄâ
+ //实打输转模拟
m_aRelatedCB[11] = m_cbR2SLos;
m_aRelatedCtrl[11].push_back(m_edR2SLos);
m_aRelatedCtrl[11].push_back(m_lbR2SLos);
@@ -180,11 +180,11 @@ __fastcall TSettingForm::TSettingForm(TComponent* Owner)
m_cbR2SLos->Checked = g_settings.bR2SLos;
m_edR2SLos->Text = g_settings.nR2SLos;
- //ÓĮ̂
- m_cbFloat->Hint = "¹´Ñ¡¿ªÆôÓĮ̂ģʽ£ºÃ¿´ÎÖ»ÓÐÒ»¸ǫ̈×ÀÏÂ×¢\n"
- "¿ªÆôÓĮ̂ʱ£¬ÖÁÉÙ¹´Ñ¡Ò»ÖÖ»»Ì¨·½Ê½\n"
- "Ö»¹´Ñ¡Ò»ÖÖ»»Ì¨·½Ê½£¬±íʾ½öµ±¸ÃÌõ¼þ³ÉÁ¢Ê±²Å»»Ì¨\n"
- "Èô¹´Ñ¡Á˶àÖÖ·½Ê½£¬ÔòÈÎÒâÑ¡ÖеÄÌõ¼þ³ÉÁ¢Ê±¾Í»»Ì¨";
+ //游�
+ m_cbFloat->Hint = "勾选开�游�模�:�次�有一个�桌下注\n"
+ "开�游�时,至少勾选一���方�\n"
+ "�勾选一���方�,表示仅当该�件�立时���\n"
+ "若勾选了多ç§�æ–¹å¼�,则任æ„�选ä¸çš„æ�¡ä»¶æˆ�ç«‹æ—¶å°±æ�¢å�°";
m_aRelatedCB[12] = m_cbFloat;
m_aRelatedCtrl[12].push_back(m_cbFloatEach);
@@ -212,7 +212,7 @@ __fastcall TSettingForm::TSettingForm(TComponent* Owner)
m_cbFloat->OnClick = OnRelatedCBClick;
}
- //ÅÆ¾ÖÑ¡Ïî
+ //牌局选项
m_aRelatedCB[13] = m_cbHoldBet;
m_aRelatedCtrl[13].push_back(m_edHoldBet);
m_aRelatedCtrl[13].push_back(m_lbHoldBet);
@@ -229,7 +229,7 @@ __fastcall TSettingForm::TSettingForm(TComponent* Owner)
m_cbBetsNoTie->Checked = g_settings.bBetsNoTie;
- //Ò³½Å
+ //页脚
m_cbStartShow->Checked = g_bShowSetting;
if(g_bGameOn){
@@ -254,7 +254,7 @@ void __fastcall TSettingForm::OkClick(TObject *Sender)
if(m_cbSimAcc->Checked!=g_settings.bSimAccOn || fSimAcc!=g_settings.fSimAcc){
if(m_cbSimAcc->Checked && fSimAcc!=g_settings.fSimAcc){
g_settings.fSimAcc = fSimAcc;
- PostMessage(Application->MainFormHandle, UM_CHART_UPDATE, 1, 1); //³õʼ»¯Í¼±í
+ PostMessage(Application->MainFormHandle, UM_CHART_UPDATE, 1, 1); //�始化图表
}
g_settings.bSimAccOn = m_cbSimAcc->Checked;
@@ -262,7 +262,7 @@ void __fastcall TSettingForm::OkClick(TObject *Sender)
if(g_bTesting && m_cbSimAcc->Checked){
g_fBalance = fSimAcc;
- PostMessage(Application->MainFormHandle, UM_CHART_UPDATE, 2, 1); //³õʼ»¯Í¼±í
+ PostMessage(Application->MainFormHandle, UM_CHART_UPDATE, 2, 1); //�始化图表
}
}
@@ -355,7 +355,7 @@ void __fastcall TSettingForm::TotalPauseExit(TObject *Sender)
TEdit* pE = (TEdit*)Sender;
int num = pE->Text.ToInt();
if(num<1 || num>30){
- ShowMessage("ÇëÊäÈë1-30µÄ·ÖÖÓÊý");
+ ShowMessage("请输入1-30的分钟数");
pE->SetFocus();
}
}
@@ -371,7 +371,7 @@ void __fastcall TSettingForm::TablePauseExit(TObject *Sender)
TEdit* pE = (TEdit*)Sender;
int num = pE->Text.ToInt();
if(num<0 || num>15){
- ShowMessage("ÇëÊäÈë0-15µÄ·ÖÖÓÊý");
+ ShowMessage("请输入0-15的分钟数");
pE->SetFocus();
}
}
@@ -386,7 +386,7 @@ void __fastcall TSettingForm::SimAccExit(TObject *Sender)
{
double fSimAcc;
if(!TryStrToFloat(m_edSimAcc->Text, fSimAcc) || fSimAcc<20 || fSimAcc>1000000){
- ShowMessage("ÇëÊäÈë 20-1000000 µÄÄ£Äâ±¾½ð");
+ ShowMessage("请输入 20-1000000 的模拟本金");
m_edSimAcc->Text = "10000";
m_edSimAcc->SetFocus();
}
@@ -401,7 +401,7 @@ void __fastcall TSettingForm::OnRelatedCBClick(TObject *Sender)
for(int i=0; iEnabled = pCB->Checked;
- if(pCB==m_cbFloat){ //µ¥¶À´¦ÀíÓĮ̂
+ if(pCB==m_cbFloat){ //�独处�游�
if(pCB->Checked){
m_aFloatCB[0]->OnClick = NULL;
m_aFloatCB[0]->Checked = true;
@@ -434,7 +434,7 @@ void __fastcall TSettingForm::OnFloatOpClick(TObject *Sender)
pCB->OnClick = NULL;
pCB->Checked = true;
pCB->OnClick = OnFloatOpClick;
- ShowMessage("ÖÁÉÙÑ¡ÔñÒ»ÖÖ»»Ì¨·½Ê½");
+ ShowMessage("至少选择一���方�");
}
}
}
diff --git a/TableIPFormUnit.cpp b/TableIPFormUnit.cpp
index 4cee241..1a283cc 100644
--- a/TableIPFormUnit.cpp
+++ b/TableIPFormUnit.cpp
@@ -1,4 +1,4 @@
-//---------------------------------------------------------------------------
+//---------------------------------------------------------------------------
#include
#pragma hdrstop
@@ -15,8 +15,8 @@ __fastcall TTableIPForm::TTableIPForm(TComponent* Owner, TGame* pG)
{
m_pGame = pG;
- m_cbIndPolicy->Hint = "ÆôÓöÀÁ¢²ßÂÔºó£¬Ì¨×À½«°´×Ô¼ºµÄ´ò·¨ºÍ×¢Âë½øÐÐͶע\n"
- "ͬʱ£¬½«²»²ÎÓë×¢ÂëµÄ×ÜÌ弯Ë㣬Ҳ²»²ÎÓëÓĮ̂ÏÂ×¢";
+ m_cbIndPolicy->Hint = "å�¯ç”¨ç‹¬ç«‹ç–ç•¥å�Žï¼Œå�°æ¡Œå°†æŒ‰è‡ªå·±çš„æ‰“法和注ç �进行投注\n"
+ "å�Œæ—¶ï¼Œå°†ä¸�å�‚与注ç �的总体计算,也ä¸�å�‚与游å�°ä¸‹æ³¨";
}
//---------------------------------------------------------------------------
void __fastcall TTableIPForm::FormCreate(TObject *Sender)
@@ -48,13 +48,13 @@ void __fastcall TTableIPForm::OkClick(TObject *Sender)
{
if(m_cbIndPolicy->Checked){
if(m_iBet<0){
- ShowMessage("ÇëÑ¡Ôñ´ò·¨²ßÂÔ");
+ ShowMessage("请选择打法ç–ç•¥");
m_cbBets->SetFocus();
return;
}
if(m_iChip<0){
- ShowMessage("ÇëÑ¡Ôñ×¢Âë²ßÂÔ");
+ ShowMessage("请选择注ç �ç–ç•¥");
m_cbChips->SetFocus();
return;
}
@@ -130,7 +130,7 @@ void __fastcall TTableIPForm::ChipMulExit(TObject *Sender)
{
int mul = m_leChipMul->Text.ToInt();
if(mul<=0){
- ShowMessage("ÇëÊäÈëͶע±¶Êý");
+ ShowMessage("请输入投注�数");
m_leChipMul->SetFocus();
return;
diff --git a/TableUnit.cpp b/TableUnit.cpp
index 841a56a..f7ddb49 100644
--- a/TableUnit.cpp
+++ b/TableUnit.cpp
@@ -1,4 +1,4 @@
-//---------------------------------------------------------------------------
+//---------------------------------------------------------------------------
#include
#pragma hdrstop
@@ -17,11 +17,11 @@
#define COLOR_BETTING TColor(0x00CDFAFF) //F5F0FF
#define COLOR_BETTED TColor(0x00E1E4FF)
#define COLOR_RESULT TColor(0x00D7B95C) //2FFFAD 5CB9D7
-#define RD_6B 0 //ÁùÖé·
-#define RD_BIG 1 //´ó·
-#define RD_EYE 2 //´óÑÛ·
-#define RD_LIT 3 //С·
-#define RD_COC 4 //Сǿ·
+#define RD_6B 0 //å…ç� è·¯
+#define RD_BIG 1 //大路
+#define RD_EYE 2 //大眼路
+#define RD_LIT 3 //�路
+#define RD_COC 4 //�强路
#define TIP_TYPE_BET 0
#define TIP_TYPE_RES 1
@@ -31,11 +31,11 @@ __fastcall TTableFrame::TTableFrame(TComponent* Owner)
: TFrame(Owner)
{
m_sgBets->Canvas->Font = m_sgBets->Font;
- m_sgBets->Cells[0][0] = "ÐòºÅ";
- m_sgBets->Cells[1][0] = "ÏÂ×¢";
- m_sgBets->Cells[2][0] = "½ð¶î";
- m_sgBets->Cells[3][0] = "ÊäÓ®";
- m_sgBets->Cells[4][0] = "Ó®Àû";
+ m_sgBets->Cells[0][0] = "��";
+ m_sgBets->Cells[1][0] = "下注";
+ m_sgBets->Cells[2][0] = "金�";
+ m_sgBets->Cells[3][0] = "输赢";
+ m_sgBets->Cells[4][0] = "赢利";
m_sgBets->ColWidths[0] = 32;//DPIX(32);
m_sgBets->ColWidths[1] = 32;//DPIX(32);
m_sgBets->ColWidths[2] = 36;//DPIX(36);
@@ -172,7 +172,7 @@ void __fastcall TTableFrame::UpdateStatus()
m_panBet->Enabled = true;
}
- m_lbCards->Caption = "¿ªÊ¼ÏÂ×¢ ";
+ m_lbCards->Caption = "开始下注 ";
m_lbTimeout->Caption = IntToStr(m_pGame->timeout);
}
else if(m_pGame->gmstatus==11 || m_pGame->gmstatus==12){
@@ -181,11 +181,11 @@ void __fastcall TTableFrame::UpdateStatus()
m_pBetChipLabels[i]->Hide();
}
- m_lbCards->Caption = m_pGame->gmstatus==11 ? "Ï´ÅÆÖÐ..." : "ά»¤ÖÐ...";
+ m_lbCards->Caption = m_pGame->gmstatus==11 ? "洗牌ä¸..." : "维护ä¸...";
}
else if(m_pGame->gmstatus==2){
if(m_pGame->bcard.IsEmpty() && m_pGame->pcard.IsEmpty()){
- m_lbCards->Caption = "¿ªÅÆÖÐ...";
+ m_lbCards->Caption = "开牌ä¸...";
memset(m_aManChips, 0, sizeof(m_aManChips));
for(int i=0; i<3; i++)
@@ -196,7 +196,7 @@ void __fastcall TTableFrame::UpdateStatus()
m_btnBetCancel->Enabled = false;
if(m_panBet->Visible){
- ShowTip("Í£Ö¹ÏÂ×¢", TIP_TYPE_BET);
+ ShowTip("å�œæ¢ä¸‹æ³¨", TIP_TYPE_BET);
}
}
else{
@@ -218,7 +218,7 @@ void __fastcall TTableFrame::UpdateStatus()
m_lbCards->Caption = c;
}
else
- m_lbCards->Caption = "½áËãÖÐ...";
+ m_lbCards->Caption = "结算ä¸...";
}
m_lbRCount->Caption = IntToStr(m_pGame->winCount[0]);
@@ -275,7 +275,7 @@ void __fastcall TTableFrame::RoadDrawCell(TObject *Sender, System::LongInt ACol,
TColor rPC = pen->Color;
int rPW = pen->Width;
- if(iRoad==RD_6B || iRoad==RD_LIT){ //Öé×з/С·ΪʵÐÄÔ²
+ if(iRoad==RD_6B || iRoad==RD_LIT){ //ç� 仔路/å°�路为实心圆
if( c==1 )
brush->Color = clRed;
else if( c==2 )
@@ -283,7 +283,7 @@ void __fastcall TTableFrame::RoadDrawCell(TObject *Sender, System::LongInt ACol,
else if( c==3 )
brush->Color = clWebLightSeaGreen;
}
- else{ //´ó·/´óÑÛ·/Сǿ·
+ else{ //大路/大眼路/�强路
pen->Width = iRoad==RD_COC ? dpi7 : dpi3;
if( c==1 )
pen->Color = clRed;
@@ -299,7 +299,7 @@ void __fastcall TTableFrame::RoadDrawCell(TObject *Sender, System::LongInt ACol,
if(t>0)
pen->Color = clWebLightSeaGreen;
- if(iRoad==RD_COC || t>0){ //»æÖÆÐ±Ìõ
+ if(iRoad==RD_COC || t>0){ //绘制斜�
canvas->MoveTo(rc.left, rc.bottom);
canvas->LineTo(rc.right, rc.top);
}
@@ -365,9 +365,9 @@ void __fastcall TTableFrame::BetsDrawCell(TObject *Sender, System::LongInt ACol,
int x=Rect.left,y=Rect.top;
TSize szTxt = pSG->Canvas->TextExtent(strText);
- if( ARow==0 ){ //»Ï¿òÏß
- x += (Rect.Width() - szTxt.cx) / 2; // -- ˮƽ¾ÓÖÐ
- y += (Rect.Height() - szTxt.cy) / 2;// -- ´¹Ö±¾ÓÖÐ
+ if( ARow==0 ){ //画下框线
+ x += (Rect.Width() - szTxt.cx) / 2; // -- 水平居ä¸
+ y += (Rect.Height() - szTxt.cy) / 2;// -- 垂直居ä¸
TBrushStyle rBS = pSG->Canvas->Brush->Style;
TColor rCl = pSG->Canvas->Brush->Color;
@@ -394,12 +394,12 @@ void __fastcall TTableFrame::BetsDrawCell(TObject *Sender, System::LongInt ACol,
pSG->Canvas->Pen->Style = rPS;
}
else{
- if(ACol==1 || ACol==3)//ˮƽ¾ÓÖÐ
+ if(ACol==1 || ACol==3)//水平居ä¸
x += (Rect.Width() - szTxt.cx) / 2;
- else //ˮƽ¿¿ÓÒ
+ else //æ°´å¹³é� å�³
x += (Rect.Width() - szTxt.cx) - DPIX(4);
- y += (Rect.Height() - szTxt.cy) / 2;// -- ´¹Ö±¾ÓÖÐ
+ y += (Rect.Height() - szTxt.cy) / 2;// -- 垂直居ä¸
bool bEven = ARow % 2;
@@ -424,17 +424,17 @@ void __fastcall TTableFrame::BetsDrawCell(TObject *Sender, System::LongInt ACol,
pSG->Canvas->Brush->Color = bEven ? clWhite : COLOR_OVEN;
if(ACol==0){
- if(strText=="±¬ÀÂ")
+ if(strText=="爆缆")
pSG->Canvas->Font->Color = clRed;
- else if(strText=="оÖ")
+ else if(strText=="æ–°å±€")
pSG->Canvas->Font->Color = clGreen;
}
else if(ACol==3){
- if(strText=="Ó®")
+ if(strText=="èµ¢")
pSG->Canvas->Font->Color = clRed;
- else if(strText=="Êä")
+ else if(strText=="输")
pSG->Canvas->Font->Color = clBlue;
- else if(strText=="ºÍ")
+ else if(strText=="和")
pSG->Canvas->Font->Color = clGreen;
}
@@ -543,7 +543,7 @@ void __fastcall TTableFrame::UMLogUpdate(TMessage &msg)
ClearLogsClick(NULL);
m_logRows++;
- m_sgBets->Cells[0][m_logRows] = "оÖ";
+ m_sgBets->Cells[0][m_logRows] = "æ–°å±€";
UpdateLogs();
}
else if(iState==ST_NOBET){
@@ -555,9 +555,9 @@ void __fastcall TTableFrame::UMLogUpdate(TMessage &msg)
else if(iState==ST_BETSET||iState==ST_BETTING){
m_logRows++;
m_sgBets->Cells[0][m_logRows] = m_pGame->iBetSeq & 0xFFFF;
- m_sgBets->Cells[1][m_logRows] = m_pGame->iBet==1 ? "ׯ"
- : m_pGame->iBet==2 ? "ÏÐ"
- : "ºÍ";
+ m_sgBets->Cells[1][m_logRows] = m_pGame->iBet==1 ? "庄"
+ : m_pGame->iBet==2 ? "é—²"
+ : "和";
m_sgBets->Cells[2][m_logRows] = m_pGame->nChip;
UpdateLogs();
}
@@ -571,89 +571,89 @@ void __fastcall TTableFrame::UMLogUpdate(TMessage &msg)
int res = msg.LParam;
m_sgBets->Cells[3][m_logRows] = "X";
-// if(iState==ST_QUASH) //×¢µ¥³·Ïú
-// m_sgBets->Cells[4][m_logRows] = "³·Ïú";
+// if(iState==ST_QUASH) //注�撤销
+// m_sgBets->Cells[4][m_logRows] = "撤销";
// else
if(res==26)
- m_sgBets->Cells[4][m_logRows] = "Óà¶î";
+ m_sgBets->Cells[4][m_logRows] = "余�";
else if(res==25)
- m_sgBets->Cells[4][m_logRows] = "³¬Ê±";
+ m_sgBets->Cells[4][m_logRows] = "è¶…æ—¶";
else if(res==10 || res==11)
- m_sgBets->Cells[4][m_logRows] = "ÏÞºì";
+ m_sgBets->Cells[4][m_logRows] = "�红";
else if(res==2)
- m_sgBets->Cells[4][m_logRows] = "ά»¤";
+ m_sgBets->Cells[4][m_logRows] = "维护";
else if(res==3)
- m_sgBets->Cells[4][m_logRows] = "ÍøÂç";
+ m_sgBets->Cells[4][m_logRows] = "网络";
else if(res==4)
- m_sgBets->Cells[4][m_logRows] = "Î¥¹æ";
+ m_sgBets->Cells[4][m_logRows] = "�规";
else{
- m_sgBets->Cells[4][m_logRows] = "δ֪";
- DebugPrint("%s ÏÂעʧ°Ü %d", ((AnsiString)m_pGame->vid).c_str(), res);
+ m_sgBets->Cells[4][m_logRows] = "未知";
+ DebugPrint("%s 下注失败 %d", ((AnsiString)m_pGame->vid).c_str(), res);
}
m_sgBets->Invalidate();
}
- else if((iState==ST_CANCELED || iState==ST_QUASH) && m_logRows>0){ //×¢µ¥È¡Ïû»ò³·Ïú
+ else if((iState==ST_CANCELED || iState==ST_QUASH) && m_logRows>0){ //注��消或撤销
for(int i=0; i<5; i++)
m_sgBets->Cells[i][m_logRows] = "";
m_logRows--;
UpdateLogs();
}
- else if(iState==ST_PAID){ //ÏÔʾÊäÓ®½á¹ûÈÕÖ¾
+ else if(iState==ST_PAID){ //显示输赢结果日志
int ret = msg.LParam & 0xFFFF;
int dead = (msg.LParam >> 16) & 0xFF;
int stop = msg.LParam >> 24;
- if(ret==0){ //ÓдíÎó·¢Éú
+ if(ret==0){ //有错误�生
m_sgBets->Cells[3][m_logRows] = "X";
- m_sgBets->Cells[4][m_logRows] = "½áËã";
+ m_sgBets->Cells[4][m_logRows] = "结算";
}
else{
- m_sgBets->Cells[3][m_logRows] = ret==1 ? "Ó®" : ret==2 ? "Êä" : "ºÍ";
+ m_sgBets->Cells[3][m_logRows] = ret==1 ? "赢" : ret==2 ? "输" : "和";
m_sgBets->Cells[4][m_logRows] = FormatFloat("0", m_pGame->profit);
}
if(g_bGameOn && (dead || stop)){
int pause = 0;
- if(dead && (m_pGame->bIndPolicy || !g_aGames.pRankChip)){ //¶ÀÁ¢²ßÂÔ»ò·ÇÈ«¾Ö×¢Âë
+ if(dead && (m_pGame->bIndPolicy || !g_aGames.pRankChip)){ //独立ç–略或é�žå…¨å±€æ³¨ç �
m_logRows++;
- m_sgBets->Cells[0][m_logRows] = "±¬ÀÂ";
+ m_sgBets->Cells[0][m_logRows] = "爆缆";
if(dead==3){
int iCP = m_pGame->bIndPolicy ? m_pGame->iChipPolicy : g_iChipPolicy;
TChipPolicy* pCP = (TChipPolicy*)g_aChipPolicies[iCP];
- m_sgBets->Cells[1][m_logRows] = pCP->deadPause ? "ÔÝÍ£" : "ÖØÆô";
+ m_sgBets->Cells[1][m_logRows] = pCP->deadPause ? "暂�" : "��";
if(pausedeadPause)
pause = pCP->deadPause;
}
else if(dead==2)
- m_sgBets->Cells[1][m_logRows] = "¾ÖÍ£";
+ m_sgBets->Cells[1][m_logRows] = "局�";
else if(dead==1)
- m_sgBets->Cells[1][m_logRows] = "Í£Ö¹";
+ m_sgBets->Cells[1][m_logRows] = "å�œæ¢";
}
if(stop){
m_logRows++;
- m_sgBets->Cells[0][m_logRows] = ret==1 ? "Ö¹Ó®" : "Ö¹Ëð";
+ m_sgBets->Cells[0][m_logRows] = ret==1 ? "æ¢èµ¢" : "æ¢æ�Ÿ";
if(stop==3){
int nPause = ret==1 ? g_settings.nTableWinPause : g_settings.nTableLosPause;
- m_sgBets->Cells[1][m_logRows] = nPause ? "ÔÝÍ£" : "ÖØÆô";
+ m_sgBets->Cells[1][m_logRows] = nPause ? "暂�" : "��";
if(pauseCells[1][m_logRows] = "¾ÖÍ£";
+ m_sgBets->Cells[1][m_logRows] = "局�";
else if(stop==1)
- m_sgBets->Cells[1][m_logRows] = "Í£Ö¹";
+ m_sgBets->Cells[1][m_logRows] = "å�œæ¢";
}
UpdateLogs();
- if(dead==1 && (m_pGame->bIndPolicy || !g_aGames.pRankChip) || stop==1){ //±¾×ÀÍ£Ö¹
+ if(dead==1 && (m_pGame->bIndPolicy || !g_aGames.pRankChip) || stop==1){ //本桌å�œæ¢
SetRun(false);
}
- else if(pause){ //ÔÝÍ£
+ else if(pause){ //暂�
m_pGame->Pause(true);
ClearPauseTimer();
@@ -669,12 +669,12 @@ void __fastcall TTableFrame::UMLogUpdate(TMessage &msg)
if(!g_aGames.bFloat){
if(ret==1)
- m_lbSeq->Caption = "Á¬Ó®£º" + IntToStr(m_pGame->seqCount[0]);
+ m_lbSeq->Caption = "连赢:" + IntToStr(m_pGame->seqCount[0]);
else if(ret==2)
- m_lbSeq->Caption = "Á¬Ê䣺" + IntToStr(m_pGame->seqCount[1]);
+ m_lbSeq->Caption = "连输:" + IntToStr(m_pGame->seqCount[1]);
}
- m_lbProfit->Caption = "Ó®Àû: " + FormatFloat("0", m_pGame->profit);
+ m_lbProfit->Caption = "赢利: " + FormatFloat("0", m_pGame->profit);
}
}
//---------------------------------------------------------------------------
@@ -700,7 +700,7 @@ void __fastcall TTableFrame::UMUpdate(TMessage &msg)
int res = msg.LParam;
if(m_panBet->Visible){
- String tip = res==0 ? "ÏÂ×¢³É¹¦" : res==26 ? "Óà¶î²»×ã" : "ÏÂעʧ°Ü";
+ String tip = res==0 ? "下注�功" : res==26 ? "余��足" : "下注失败";
ShowTip(tip, TIP_TYPE_BET);
}
@@ -743,11 +743,11 @@ void __fastcall TTableFrame::UMUpdate(TMessage &msg)
else if(type==UPDATE_RESET){
int type = msg.LParam;
if(type==0)
- m_lbProfit->Caption = "Ó®Àû: ";
+ m_lbProfit->Caption = "赢利: ";
else if(type==1)
- m_lbSeq->Caption = "Á¬Ó®£º";
+ m_lbSeq->Caption = "连赢:";
else if(type==2)
- m_lbSeq->Caption = "Á¬Ê䣺";
+ m_lbSeq->Caption = "连输:";
else if(type==3)
ClearPauseTimer();
}
@@ -851,9 +851,9 @@ void __fastcall TTableFrame::BetOkClick(TObject *Sender)
}
if(!g_bTesting && tot>g_fBalance)
- ShowTip("Óà¶î²»×ã", TIP_TYPE_BET);
+ ShowTip("余��足", TIP_TYPE_BET);
else if(tot>g_MaxOnBet)
- ShowTip("³¬³öÏÞºì", TIP_TYPE_BET);
+ ShowTip("超出�红", TIP_TYPE_BET);
else if(tot>0 && m_pGame)
m_pGame->ManualBetOn(m_aManChips);
}
@@ -966,34 +966,34 @@ void __fastcall TTableFrame::IPClick(TObject *Sender)
}
//---------------------------------------------------------------------------
-char* u_sRoad[5] = {"ÁùÖé·","´ó·","´óÑÛ·","С·","Сǿ·"}; //·ÖéÃû³Æ
+char* u_sRoad[5] = {"å…ç� è·¯","大路","大眼路","å°�è·¯","å°�强路"}; //è·¯ç� å��ç§°
void __fastcall TTableFrame::UpdateIP()
{
String hint;
if(m_pGame->bIndPolicy){
- hint = "¶ÀÁ¢²ßÂÔ£¨µã»÷ÐÞ¸ÄÉèÖã©";
+ hint = "独立ç–略(点击修改设置)";
if(m_pGame->iBetPolicy<0)
- hint += "\n´ò·¨£ºÈ«¾Ö²ßÂÔ";
+ hint += "\n打法:全局ç–ç•¥";
else
- hint += "\n´ò·¨£º" + g_aBetPolicies[m_pGame->iBetPolicy]->name;
+ hint += "\n打法:" + g_aBetPolicies[m_pGame->iBetPolicy]->name;
- hint += "\n·µ¥£º" + String(u_sRoad[m_pGame->iRoad<0 ? g_iRoad : m_pGame->iRoad]);
+ hint += "\n路�:" + String(u_sRoad[m_pGame->iRoad<0 ? g_iRoad : m_pGame->iRoad]);
if(m_pGame->iChipPolicy<0)
- hint += "\n×¢Â룺ȫ¾Ö²ßÂÔ";
+ hint += "\n注ç �:全局ç–ç•¥";
else{
TBasePolicy* pPolicy = g_aChipPolicies[m_pGame->iChipPolicy];
- hint += "\n×¢Â룺" + pPolicy->name;
+ hint += "\n注ç �:" + pPolicy->name;
if(pPolicy->kind!=KIND_CHIP_COM)
- hint += "\n±¶Êý£º" + IntToStr(m_pGame->nChipMul);
+ hint += "\n�数:" + IntToStr(m_pGame->nChipMul);
}
}
else{
- hint = "È«¾Ö²ßÂÔ£¨µã»÷ÉèÖöÀÁ¢²ßÂÔ£©";
+ hint = "全局ç–略(点击设置独立ç–略)";
if(m_pGame->iRoad>=0){
- hint += "\n·µ¥£º" + String(u_sRoad[m_pGame->iRoad]);
+ hint += "\n路�:" + String(u_sRoad[m_pGame->iRoad]);
}
}
diff --git a/TableUnit.h b/TableUnit.h
index 43777f6..18d71b9 100644
--- a/TableUnit.h
+++ b/TableUnit.h
@@ -1,4 +1,4 @@
-//---------------------------------------------------------------------------
+//---------------------------------------------------------------------------
#ifndef TableUnitH
#define TableUnitH
@@ -86,16 +86,16 @@ private: // User declarations
bool m_bCursorOnRoad,
m_bCursorOnLog;
- TTimer *m_pTipTimer, //ÏÔʾÌáʾ¶¨Ê±Æ÷
- *m_pPauseTimer; //Ö¹Ó®ÔÝÍ£¶¨Ê±Æ÷
- int m_aManChips[3], //´ýÏÂ×¢
- m_aBetChips[3]; //ÒÑÏÂ×¢
- TLabel *m_pManChipLabels[3], //´ýÏÂ×¢
- *m_pBetChipLabels[3]; //ÒÑÏÂ×¢
+ TTimer *m_pTipTimer, //显示�示定时器
+ *m_pPauseTimer; //æ¢èµ¢æš‚å�œå®šæ—¶å™¨
+ int m_aManChips[3], //待下注
+ m_aBetChips[3]; //已下注
+ TLabel *m_pManChipLabels[3], //待下注
+ *m_pBetChipLabels[3]; //已下注
TPngImage * m_imgOps[3];
- //Ñ¡ÖÐÏà¹Ø
+ //选ä¸ç›¸å…³
bool m_bSel;
TForm *m_fmMask;
@@ -110,7 +110,7 @@ private: // User declarations
void __fastcall UpdateLogs();
void __fastcall UpdateIP();
- //ÏûÏ¢´¦Àí
+ //消�处�
MESSAGE void __fastcall UMUpdate(TMessage &msg);
MESSAGE void __fastcall UMChangeRoad(TMessage &msg);
MESSAGE void __fastcall UMSetManual(TMessage &msg);
diff --git a/UtilityUnit.cpp b/UtilityUnit.cpp
index b349678..16eda4e 100644
--- a/UtilityUnit.cpp
+++ b/UtilityUnit.cpp
@@ -1,4 +1,4 @@
-//---------------------------------------------------------------------------
+//---------------------------------------------------------------------------
#include
#pragma hdrstop
@@ -8,9 +8,9 @@
//---------------------------------------------------------------------------
#pragma package(smart_init)
-int g_iPlatform = 0; //ÓÎϷƽ̨
+int g_iPlatform = 0; //游�平�
unsigned g_tmCurrent = 0,
- g_tmIdle = 0; //Èí¼þÎÞ²Ù×÷ʱ¼ä
+ g_tmIdle = 0; //è½¯ä»¶æ— æ“�作时间
bool g_bBacData = false;
void __fastcall ResetIdle()
diff --git a/UtilityUnit.h b/UtilityUnit.h
index 1a7345d..ff3b5f9 100644
--- a/UtilityUnit.h
+++ b/UtilityUnit.h
@@ -1,4 +1,4 @@
-//---------------------------------------------------------------------------
+//---------------------------------------------------------------------------
#ifndef UtilityUnitH
#define UtilityUnitH
@@ -21,7 +21,7 @@ String __fastcall UnifyCard(String card);
//bool __fastcall IsGameOn();
int __fastcall IsPolicyInUse(int type, int iPolicy);
-extern int g_iPlatform; //ÓÎϷƽ̨
+extern int g_iPlatform; //游�平�
extern unsigned g_tmCurrent, g_tmIdle;
extern bool g_bBacData;
#endif
diff --git a/opencode.json b/opencode.json
new file mode 100644
index 0000000..52b7b74
--- /dev/null
+++ b/opencode.json
@@ -0,0 +1,7 @@
+{
+ "$schema": "https://opencode.ai/config.json",
+ "permission": {
+ "external_directory": { "*": "ask" },
+ "bash": { "*": "allow" }
+ }
+}