a7409f3d08
In most cases, it is not useful to hold priority after doing something, since the spell or ability added to the stack can just be performed beforehand. Hence, automatically passing priority is the only comfortable setting. However, in some cases it is useful (chiefly for Infernal Tutor + Lion's Eye Diamond and similar interaction), and currently players have to open Preferences, change the option and then change it back whenever they need to hold priority, which is very annoying. This change allows to temporarily hold priority by simply holding Control while performing an action, which solves the issue in a manner similar to other clients. A "Hold" indicator next to the spells cast indicator is displayed so that the user knows his Control key holding was registered. The code works by adding a new HOLD_PRIORITY player action that causes the automatic priority pass options to be ignored until the player is given priority again. The client sends the message whenever it's not already holding priority and Ctrl+click/space/enter happens anywhere. This is somewhat "loose" as it means that Ctrl+click on the background also holds priority, but this might actually be desirable and it greatly simplifies the code, since only a global AWT event listener is required, and there is no need to change every place in the code that could add something to the stack. It is also possible to hold priority and stop holding priority using the context menu. |
||
---|---|---|
Mage | ||
Mage.Client | ||
Mage.Common | ||
Mage.Plugins | ||
Mage.Server | ||
Mage.Server.Console | ||
Mage.Server.Plugins | ||
Mage.Sets | ||
Mage.Stats | ||
Mage.Tests | ||
Mage.Updater | ||
repository/com/googlecode/jspf/jspf-core | ||
Utils | ||
.gitignore | ||
clean_dbs.sh | ||
pom.xml | ||
readme.md |
XMage - Magic, Another Game Engine
XMage allows you to play Magic against one or more online players or computer opponents. It includes full rules enforcement for over 13,000 unique cards (over 26,000 counting all cards from different editions). Starting with Morningtide, all regular sets have nearly all the cards implemented (detailed overview).
There are public servers where you can play XMage against other players. You can also host your own server to play against the AI and/or your friends.
You can visit the XMage forum here.
Features
- Deck editor (load and save decks)
- Simple computer AI opponent
- Two player duel or a multiplayer free-for-all game with up to 10 players
- Supports special formats like Commander (up to 10 players), Cube, Tiny Leaders, Super Standard, Historic Standard
- There are two tournament types supported (elimination or swiss type handling), which can be played with up to 16 players:
- Booster (also Cube) draft tournaments (4-16)
- Sealed (also from Cube) tournaments (2-16)
Installation
Download and install the latest XMage release. You will need to have Version 7 or later of the Java Runtime Environment.
Look here for more detailed instructions. Here you can find a log of the latest changes.
Developer
If you are interested in developing XMage, here are some useful resources: