⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xmj.man

📁 支持网络和单机的麻将游戏
💻 MAN
📖 第 1 页 / 共 4 页
字号:
flowers and seasons..TPKongIf we have a concealed kong, we can declare it now withthis button..TPFinishFinish declaring specials and kongs..PPWhen all players have finished declaring specials and kongs, a dialogbox appears, asking (on East's behalf) permission to continue.During play, when we draw a tile from the wall, it will beauto-selected. We may also of course select a different tile.A dialog will appear giving us the following possibilities:.TPDiscarddiscard the selected tile. This button also servesto declare a flower or season..TP&Callingdiscard the selected tile and declare a calling hand.This button is only shown when calling is allowed(by default, only Original Call is allowed)..TPKongdeclare a concealed kong of the selected tile.TPAdd to Pungadd the selected tile to an exposed pung.TPMah Jong!declare Mah Jong! (no selection needed).PPIf the wall is not being shown, the dialog will note the numberof tiles left in the live wall.A tile can also be discarded simply by double-clicking it.When another player discards, a dialog appears to allow us to claimit. If the dialogs are in the middle of the table, the dialog displaysthe tile in a position and orientation to indicate the player who discarded;if the dialogs are at the bottom, this is not done, to save space.In any case the dialog displays the name of the tile, and buttonsfor the possible claims. (Note: in the default case, it is possiblyconfusing that the discarded tile can be seen both on the table and inthe dialog box. Opinions are sought on this point.) If the wall is not being shown, the dialog will note the numberof tiles left in the live wall.Note: there appear to be subtle bugs in GTK, which mean that sometimes the name of the tile does not appear properly. I havecompletely failed to track this down; if it happens, just iconify(that's minimize in Windoze-speak) the window and open it again.There is also a `progress bar' which shows how time is running out.The buttons use one variant of traditional English terminology, viz:.TPNo claimwe don't claim this tile. If there is no timeout inoperation, it is necessary to click this to indicatea "pass", and in any case it is desirable to speed upplay..TPChowclaim for a sequence.If our claim is successful and there is more than onepossible sequence to be made, a dialog will appear askingus to specify which one..TPPungclaim for a triplet..TPKongclaim for quadruplet..TPMah Jong!claim for Mah Jong.If the claim succeeds, a dialog box will appear askingwhether we want the tile for "Eyes", "Chow", "Pung", or a"Special Hand" (such as Thirteen Unique Wonders).(The term "Eyes" is used instead of "Pair" so that whenkeyboard accelerators are implemented, E is differentfrom P! Is it better to stick to "Pair"?).PPWhen a player (including us) claims, the word "Chow!" etc. will appear(in big letters on a yellow background, if things are correctly setup; please tell me if this doesn't happen) for a couple of secondsabove the player's tiles.When all players have claimed, or timed out, the successful claim isimplemented; no additional announcement is made of this. (Should itbe?)If a player adds a tile to an exposed pung, and that tile would giveus Mah Jong, then a dialog box pops up to ask whether we wish to rob the kong.After somebody goes Mah Jong, we are asked to declare our concealedsets. A dialog appears with buttons for "Eyes", "Chow", "Pung". To declare aset, select a tile, which must be the \fBfirst\fR tile in the set for achow, and click the appropriate button. (If we are going Mah Jong, thefirst undeclared tile is auto-selected.) When finished, click "Finished" toreveal the remaining tiles to the other players. If we are the winner, there will be a button for "Special Hand": this is used to declare hands of non-standard shape, such as Thirteen UniqueWonders. (Note: the Seven Pairs hand, if in use, should be declaredby means of the "Eyes" button, not the "Special Hand" button.)At this point, a new top-level window appears to display the scoringinformation. The scoring is done entirely by the server, not by theplayers; the server sends a text description of the score calculation, and this is displayed for each player in the Scoring window. The information in the Scoring window remains there until the nexthand is scored; the window can be brought up at any time via the"Show" menu.Finally, the "continue with next hand" dialog appears. The hand justcompleted will remain visible on the table until the next hand starts..PP\fBKeyboard Accelerators\fP.brThere are keyboard accelerators for all the actions in the course ofplay. For selecting tiles, the Left and Right arrow keys can be usedto move the selection left or right along the row of tiles. In alldialogs, Space or Return will activate the shadowed button, which isusually the commonest choice. Each button can also be activated bytyping the underlined letter. (Note: at present, the Left and Rightarrow accelerators do not work under Windows.).brThe menus are also accessible via accelerators. To open a menu, press Meta-X (Alt-X on Windows), where X is the underlined letter inthe menu name. (Meta-X is often (confusingly) Alt-X on Linux systems.)Then each entry has an underlined letter which if pressed will activate it..PPAn additional top-level window showing the state of the game can beobtained by selecting "Game info" from the "Show" menu.There is also a facility for sending text messages to the otherplayers. Select "Messages" from the "Show" menu, and a window willappear: in the top is a display of all messages sent, and belowis a single line in which you can enter your message. It will besent when you hit Return. The message window pops up automatically whenever a message is received, unless prevented by a displaypreference. If the "Display status and messages in main window"display option is set, then this window will instead appear in themain window, above the table. In that case, there is a checkbox "Keep cursor here" next to the message entry line. Checking this boxwill ensure that the keyboard focus stays in the message entry field,even when you click on buttons in the game. (Consequently, you will beunable to use keyboard accelerators while this option is checked.).SS Starting games and re-connectingThe "Game" menu has the "New local game..." item to start a new gameon your local computer, and the "Join server..." item to connect to anexisting game. The dialogs for both these have the following entries:.TPCheckboxes for Internet/Unix serverThese specify whether the server is listening on an Internet socketor a Unix socket. If an Internet (TCP) socket, the host name ("JoinGame..." only) and port number should be entered in the appropriateboxes; if a Unix socket, the file name of the socket should be entered.These fields are remembered from game to game..TP"Player ID" and "Name" fieldsThe "Player ID" should be left at 0, unless reconnecting to anexisting game, in which case it should be the ID assigned by theserver on first connecting to that game. The "Name" field can beanything. When reconnecting to an existing game, if the ID is given as 0, the server will try to use the "Name" to identify the player. (Thismay not be true in future.) The "Name" field is remembered from gameto game..PPThe "Join server..." dialog then simply has a "Connect" buttonto establish the connection. The "New local game..." has the followingfields:.TPFor each of three further players,A checkbox to say whether to start a computer player. (Some of) theseshould be unchecked if you wish other humans to join the games.If checked, there is a text entry to set the players' names, and atext entry field in which options can be given to the players; thelatter should only be used if you understand the options! .TPAn "allow disconnection" checkboxIf this is checked, the server that is started will continue to runeven if players disconnect. If it is not checked, the server will quit if any player disconnects. If you are playing one against thecomputer, this should generally be left unchecked, in order to avoidserver processes accidentally being left lying around. If playingagainst people, it should be checked, to allow players to go away, orto guard against network outages..TPAs "save game state on exit" checkboxIf this is checked, the server will save the game state (see below onon saving and resuming games) when a player disconnects and causes itto quit..TPA "seat players randomly" checkboxIf this is left unchecked, players will be initially seated as East,South, West, North in order of connection. (We always connect first.)If it is checked, the seating will be random..TPA numeric entry fieldto specify the time limit for claiming discards.If set to 0, there will be no time limit..TPA button to start the gameNote that it takes a few seconds to start a game, during which timethe dialog stays up with the button pressed. (TODO: fix this!).SS Saving and resuming gamesAt any time during the play of a game, you can choose the "Save" entryfrom the "Game" menu. This causes the server to save the current stateof the game in a file. The file will be named \fBgame-\fP\fIdate\fP\fB.mjs\fP bydefault; if a name has previously been specified, or if the game wasresumed from a file, that name will be used. To specify a name, usethe "Save as..." entry in the "Game" menu. Note that for security,directories cannot be specified (except by resuming a game), so thefile will be created in the working directory of the server.To resume a saved game, use the "Resume game..." entry from the "Game"menu. This is just like the "New local game..." panel, but it has a box tospecify the file containing the saved game. At present, you must typethe name of the file into this box. TODO find a file selector widgetfor this..SS Setting display and game optionsThe "Options" menu of \fBxmj\fP brings up panels to set variousoptions related to the display and to the game rules.Most of these options can be stored in the preferences file,which is \fB.xmjrc\fP in your home directory on Unix, and \fBxmj.ini\fPin your home (whatever that means) directory on Microsoft Windows..SS Display OptionsThis panel controls options related to the local display.At the bottom are three buttons: "Save & Apply" applies changes andsaves them in the preferences file for future sessions; "Apply (nosave)" applies any changes, but does not save them; "Cancel" ignores changes.Note that many display options can also be controlled by command-linearguments; if an option is specified both in the preferences file andon the command line, the command line takes priority..TPPosition of action dialogs.This determines where the dialogs for user actions in the game arepopped up; see the description of the \fB--dialogs-central\fP etc.options above. This option is stored in the preferences file as.brDisplay DialogPosition \fIposn\fP.brwhere \fIposn\fP is one of "central", "below" or "popup"..TPAnimationdetermines whether tile movements are animated (see the \fB--animate\fPoption above). This option is stored in the preferences file as.brDisplay Animate \fIbool\fP.brwhere \fIbool\fP is "0" or "1"..TPDisplay status and messages in main windowputs the game status and message (chat) windows in the main window,above the table, instead of having separate popup windows. This optionis stored in the preferences file as .brDisplay InfoInMain \fIbool\fP.brwhere \fIbool\fP is "0" or "1"..TPDon't popup scoring/message windowswill prevent the automatic popup of the scoring window at the end ofa hand, the message window on the arrival of a message, and the gamestatus window at the end of the game. This option is stored in the preferences file as.brDisplay NoPopups \fIbool\fP.brwhere \fIbool\fP is "0" or "1"..TPTiletips always shownmeans that the name of a tile is displayed whenever the mouse entersit, and the name of the selected tile is always shown. (Otherwise,right-click to display the name.) This option is stored in thepreferences file as.brDisplay Tiletips \fIbool\fP.brwhere \fIbool\fP is "0" or "1"..TPDisplay sizeThis drop-down list specifies the size of the display. The size shouldbe thought of as the length of a tile rack. This is only relevant ifthe wall is not being displayed. Values range from 14 to 19; if"(auto)" (the default) is specified, the client tries to choose a sizeas big as will fit in the display. This option can also be specifiedby the command line \fB--size\fP argument. This option is stored in thepreferences file as .brDisplay Size \fIn\fP.TPShow the wall"always" is equivalent to the \fB--show-wall\fP option; "never" isequivalent to the \fB--no-show-wall\fP option; and "when room" is thedefault. This option is stored in the preferences file as.brDisplay ShowWall \fIwhen\fP.brwhere \fIwhen\fP is one of "always", "when-room" or "never"..TPIconify all windows with mainIf this option is set (the default), then when the main xmj window isiconified, (almost) all other open windows such as dialogs will alsobe iconified; when the main window is uniconified, the other windowswill also be uniconified. If it is not set, all windows areindependent of one another. This option is stored in the preferences file as .brDisplay IconifyDialogs \fIbool\fP.brThis option is not currently supported under Microsoft Windows..TPTilesetthis is the tile pixmap directory, also given by the \fB--tileset\fPoption. This option is stored in the preferences file as.brDisplay Tileset \fIdirname\fP.TPTileset Paththis is the search path for tileset directories, also given by the\fB--tileset-path\fP option. This option is stored in the preferencesfile as .brDisplay TilesetPath \fIsearch-path\fP.TPMain font selection...This button brings up a font selection dialog to choose the fontused in buttons, menus, etc. in the client. This option is stored inthe preferences file as .brDisplay MainFont \fIlfd\fP.brwhere \fIlfd\fP is an X logical font descriptor as used by GTK..TPText font selection...This button brings up a font selection dialog to choose the fontused in text display (such as scoring info and chat) in theclient. This option is stored in the preferences file as .brDisplay TextFont \fIlfd\fP.brwhere \fIlfd\fP is an X logical font descriptor as used by GTK..TPTable colour selection...Unaccountably, not everybody likes my choice of dark green for thetable background. This button brings up a colour selection box to

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -