Commit Graph

2391 Commits

Author SHA1 Message Date
elcnesh
bfdcaa6a1a Huge cleanup of gui and desktop code
- Remove lots of unused classes and methods
- Remove code related to transitioning deck format
- Refactor some interface structures
- General cleanup (imports, indentation etc.) thanks to Eclipse
- Some very minor bugfixes
2015-05-01 19:27:48 +00:00
elcnesh
0ab47360b2 Relax quest pref constraints and cleanup related code 2015-04-30 09:58:54 +00:00
Krazy
82e3586b9d Delete the quest save backups when deleting the quest. 2015-04-30 03:26:37 +00:00
elcnesh
efe6034837 - Move some files around in net code (plus some cleanup)
- Remove an unused method from IGuiGame
2015-04-29 18:50:12 +00:00
elcnesh
41fdcc9b50 - Fix NPE at end of network game
- Update some strings
2015-04-26 17:00:15 +00:00
elcnesh
addcece582 - Huge update to network play
- Updated protocol: now used everywhere for type checking
  - No more locks between server and client: client no longer expects any replies
  - More code reuse
  - Fixed issue with location of multiple abilities selection popup menu
  - Improved stability; actual games should now be possible
- Other updates
  - Mobile version player panel now uses same code as desktop
  - Remove automatic "view all cards" cheat in hotseat (no longer necessary)
  - Code cleanup
2015-04-26 10:54:55 +00:00
drdev
1018eb2db4 Add Draft and Sealed decks to Deck Manager 2015-04-25 14:29:24 +00:00
elcnesh
f4ce1d67ef Fix online lobby failing to update when menu item was clicked 2015-04-24 22:25:29 +00:00
elcnesh
91d9987c1f - Delegate network game communication to a new GameProtocol class
- Rename a method to make it compatible with the new protocol
2015-04-22 17:55:58 +00:00
elcnesh
705d6cb937 - Remove old net code
- Remove "Start/Stop Server" buttons (related to old code)
- Move new net code to forge-gui/forge/net/**
- Remove all dependencies on project forge-net
2015-04-20 14:40:26 +00:00
elcnesh
62a7b2b98d - Remove the Players and Command panels
- Some more cleanup
- Cleanup the Animation class (public method signatures unchanged)
2015-04-20 14:19:57 +00:00
elcnesh
586cb90697 Lots of cleanup: correct static field/method access,
proper fall-through documentation, and some minor things.
2015-04-20 13:49:01 +00:00
drdev
ea25e6ad1e Prevent Workshop always prompting to save right away 2015-04-20 13:30:28 +00:00
drdev
cbc44719ce Fix line endings to prevent Workshop always prompting to save right away 2015-04-20 13:22:36 +00:00
drdev
5a3e7b60c1 Avoid showing gauntlet progress dialog unless match is over 2015-04-19 20:42:55 +00:00
drdev
9a9ce51641 Deal with corrupt Gauntlet files more gracefully 2015-04-19 20:35:28 +00:00
drdev
42cfec383f Fix so Gauntlet game screen closed after continuing to next match 2015-04-19 20:16:58 +00:00
drdev
f46214c4e0 Support opening Deck Editor from home screen directly
Cleanup logic that builds deck lists
2015-04-19 17:06:18 +00:00
drdev
091556d284 Support Random Favorite Deck option 2015-04-19 15:43:07 +00:00
elcnesh
45f552bc22 Synchronise Dev mode toggle options (play lands/view cards)
between panel and menu
2015-04-15 15:49:02 +00:00
elcnesh
8530af204a - Add menu item to open chat panel
- More cleanup
2015-04-15 15:47:34 +00:00
elcnesh
f61a1aa179 Cleanup
- Use collection interfaces (List) rather than classes (ArrayList)
- Remove some unnecessary null pointer checks
2015-04-15 15:40:54 +00:00
elcnesh
bbd6db8078 Fix sound pausing when minimising (both in menu and games) 2015-04-12 07:41:28 +00:00
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