Commit Graph

2168 Commits

Author SHA1 Message Date
elcnesh
edbebf27c0 - Saving a deck now properly updates the deck in the lobby
- Prevent NPE when loading a deck with nonexistent cards
- Clean up warning messages about deck conformity
- Lots of code cleanup and simplifications
2015-04-09 22:11:12 +00:00
elcnesh
4182d581ec Refactor zone updates to be more stable and a bit faster. 2015-04-08 11:57:52 +00:00
elcnesh
77b69f2f1e Add heart icon to life total label when gaining poison counters
(similar to mobile version)
2015-04-08 11:56:43 +00:00
elcnesh
8acb8a7f23 - Fix vanguard avatar selection in lobby
- Fix card (image) viewing with multiple players in same GUI
- Fix dev mode toggle buttons with multiple players in same GUI
- Fix possible NPE in Quest mode (related to Antes)
- Some cleanup
2015-04-08 09:03:33 +00:00
drdev
5f68844fa4 Refactor deck import logic to be reusable by mobile game
Don't prompt about replacing deck contents if deck is empty
2015-04-05 16:36:02 +00:00
elcnesh
259291367f Prevent NPE when watching a game 2015-04-04 14:24:25 +00:00
elcnesh
be29014d59 Replace poison in player details panel with Command zone button 2015-04-04 13:17:47 +00:00
elcnesh
dc4559c577 Attempt to combat game memory leaks after game finishes.
- Make PLAY_LAND_SURROGATE a game field rather than static
- Remove games from cache more aggressively
- Remove targeting overlay from global view after game ends
2015-04-02 14:35:42 +00:00
elcnesh
b7a47736bf Fix Vanguard avatar selection in lobby 2015-04-02 12:33:55 +00:00
elcnesh
6bc69d0935 Update stability and fix issues in lobby and network games.
- Fix closing the lobby/client so that it notifies the clients/server.
- Improve deck selection in lobby (no longer adds Planes to deck and saves)
- Improve responsiveness of lobby over network
- In 2-player game over network, always assign local player to slot 0
- Warn when starting a commander deck without a commander
- Put poison counters next to life total (frees up space in the details panel)
2015-04-02 08:56:31 +00:00
elcnesh
d3bcc089e3 Prevent some NPE's in the card zoomer 2015-04-02 08:51:23 +00:00
elcnesh
13ec102371 Hide "start new game" overlay after game is started. 2015-04-02 08:49:48 +00:00
drdev
dd09d623c8 Prevent losing card reordering in hand 2015-03-22 18:50:44 +00:00
elcnesh
44cfbd5179 Add tooltip to player avatar with player details. 2015-03-22 15:26:30 +00:00
elcnesh
eeb67ab6e4 Fix many issues with the recent GUI and lobby refactorings.
- Fix closing screen of AI vs AI and multiplayer games
- Fix developer mode toggle boxes starting out in wrong state
- Fix storm count not displaying
- Fix deck selection when changing game variants
- Fix deck selection when returning to lobby after visiting a game
- Fix too many player panels appearing in games after a previous multiplayer game
2015-03-18 17:08:18 +00:00
elcnesh
b395d34eeb Finish ready buttons for network lobby. 2015-03-16 12:55:52 +00:00
elcnesh
82deb0c537 Add (for now nonfunctional) ready buttons to network lobby. 2015-03-16 08:11:55 +00:00
drdev
4611aca8f7 Make chat window movable and resizable 2015-03-15 02:52:15 +00:00
elcnesh
b98684877d Refactor lobby and add network support.
- Lobby code has been revised completely to support network lobbies;
  code has been separated into model and view parts.
- Added preliminary network game support; most of it should be working
  but hasn't been tested thoroughly.
- Fixed issue where controlling another player wouldn't be recognised
  by the GUI.
- Fixed issue where hand panels wouldn't display anymore.
- Minor fixes/cleanup.
2015-03-14 10:53:09 +00:00
Hellfish
a73b67dc04 Do not draw targeting arc stack->player if player avatar isn't showing. Fixes IllegalComponentStateExceptions. 2015-03-14 09:56:47 +00:00
drdev
d5de183042 Prevent mulligans resulting in face down cards 2015-03-12 22:13:11 +00:00
drdev
f71a12d824 Remove outdated references to Card class 2015-03-12 21:15:50 +00:00
Myrd
219eae0a00 Refactor logic for continuing simulation to SimulationController class. 2015-03-08 17:13:43 +00:00
drdev
e1457ad744 Make FDialogs more mobile-friendly
Fix Concede so dialog shown
2015-03-07 16:49:33 +00:00
elcnesh
600566a8c7 Fix possible runtime exceptions with Targeting Overlay. 2015-03-03 08:27:29 +00:00
Myrd
3b54fd2fce Fix copying game objects with chosen things (for simulation AI). 2015-03-03 00:50:52 +00:00
Myrd
8fd250409c Fix NPE with abilities that require player to "divide as you choose" in simulation AI. 2015-03-01 18:08:25 +00:00
Myrd
3430877613 Fix copying game with permanents changed to creatures in AI simulation. 2015-02-28 15:42:13 +00:00
elcnesh
ca82a3b0d9 Some more network stuff. We almost have a working lobby! 2015-02-27 13:02:20 +00:00
elcnesh
7ff89bd6b2 Start fleshing out network support. Preliminary support for:
- Network communication (both chat and game data);
- Lobby including remote players.
Long way to go before actually starting a network game, but we're getting there!
2015-02-26 09:13:40 +00:00
elcnesh
aa5529a4b0 Fix card display in multiple-zone selection list (eg Scavenging Ooze's ability). 2015-02-23 11:00:32 +00:00
elcnesh
5a0531b045 Fix card display being wrong when opening floating card windows. 2015-02-23 10:37:57 +00:00
elcnesh
eedb76c31e Fix (now really, I hope) ai vs ai matches in quest tournament mode. 2015-02-23 10:03:41 +00:00
elcnesh
2e6452d03f Prevent possible NPE. 2015-02-22 00:23:08 +00:00
elcnesh
ab1d24cc8a - Fix match music not stopping when moving Forge to background
- Fix quit warning not mentioning matches when one or more are active
- Some minor fixes and cleanup
2015-02-22 00:18:50 +00:00
elcnesh
215ccc4c78 Fix possible NPE related to card picture (plus some cleanup for those classes). 2015-02-21 14:52:48 +00:00
Agetian
b3800ee4d4 - Fix CMatchUI.confirm not updating the card picture/detail box when querying the player about a card. 2015-02-21 13:44:10 +00:00
elcnesh
377093f23b Fix some issues with the new GUI code:
- Fix cards not showing up in image panel when hovering
  (both in match and deck editor)
- Fix win/lose screen and related parts of the interface
2015-02-20 19:41:06 +00:00
elcnesh
8267667a4d - Fix error when running AI vs AI games
- Fix display of battlefields (relative positions of creatures/lands)
- Fix being able to see hidden cards using mouse wheel
2015-02-19 08:14:25 +00:00
Myrd
8e1c0d5d08 Fix NPE when switching to Workshop tab. 2015-02-18 02:23:36 +00:00
elcnesh
4a38b0d817 Huge update to the GUI codebase.
- Make match screen in gui-desktop non-singleton, allowing multiple games to be played simultaneously.
- Separate global gui commands (IGuiBase) from game-specific gui commands (IGuiGame), allowing games to send their commands to the correct gui.
2015-02-17 08:47:55 +00:00
Myrd
4ac5d67a02 Fix game copy error with manifested non-creatures. 2015-02-16 07:43:34 +00:00
Myrd
cbdfea1749 Delete duplicate unused class. 2015-02-16 03:48:08 +00:00
Myrd
3ee94e67f4 - Copying a deck list table now copies it in the same format as accepted by the importer. 2015-02-16 03:47:55 +00:00
drdev
883e011501 Prevent picking illegal commander deck when choosing random tiny leaders 2015-02-15 16:53:09 +00:00
drdev
caf5817d0b Support generating proper Tiny Leaders decks 2015-02-15 15:33:18 +00:00
drdev
edaa52b507 Support restricting card pool at deck format level 2015-02-15 01:53:14 +00:00
drdev
2b4a509b78 Start fleshing out UI support for Tiny Leaders format 2015-02-14 23:01:35 +00:00
Myrd
6af65c0db9 Fix GameCopier to preserve tracking of loyalty ability activations. 2015-02-14 18:56:26 +00:00
Myrd
7006d85d25 Fix some problems with recursive simulation and tweak debug output. Also, optimize evaluation in summon sick mode. 2015-02-14 16:13:04 +00:00