vraskulin
f60ebfbb1f
All 1-character strings converted to primitives
...
"b" + "r" now changed to 'b' + 'w'. It's more straight-forward, and may cause perfomance improvements - character primitives allocation is faster and less expensive than string creation.
2017-02-06 14:32:51 +03:00
vraskulin
076840df53
Big refactoring
...
I used Intellij IDEA to automatically refactor code to achive 3 goals.
1) get rid of anonymouse classes, and replace the with lamba to get more readeable and clean code (like in TableWaitingDialog).
2) make effectively final variables actually final to avoid inadvertent changes on it in further releases and keep objects as immutable, as possible.
3) Get rid of unused imports (most of the changes) in whole project classes.
2017-01-09 19:16:53 +03:00
LevelX2
070a0ca3fa
* Fixed a problem that the enlarged card view could stay open after a game or draft were finished.
2016-10-23 23:13:02 +02:00
ingmargoudt
3019991473
removed the Session out of local scope and introduced a static SessionHandler that acts as interface to remote.Session
2016-09-15 20:52:41 +02:00
draxdyn
e3d84ca212
Cache resized and rotated images
...
RotatedResizedImageCache and MultiRotatedResizedImageCache contain the caching
machinery.
A cache of rotated and resized images is added to ImageCache, and is used by
the resizing functions there.
All the resizing and rotation functions in ImageHelper are redirected to the
ones in ImageCache.
This is slightly inefficient because it will cache some calls that are never
repeated, but it prevents developers from mistakenly using uncached functions
when calls are repeated, seriously impacting performance.
Also resizing functions that only take a width or an height have been removed,
and their calls fixed to provide the other dimension. It's still possible to
specify -1 as width or height to ignore constraints in that dimension, though.
Greatly speeds up UI performance.
2016-06-23 16:21:34 +02:00
LevelX2
77eff0984a
Some more changes to GUI to better support high screen resolutions.
2016-02-18 00:27:48 +01:00
LevelX2
1835671f3d
Some more changes to GUI to better support high screen resolutions.
2016-02-14 13:41:43 +01:00
LevelX2
7ef0a0a7f0
Some more changes to GUI to better support high screen resolutions.
2016-02-13 02:30:05 +01:00
Neil Gentleman
bfb428b13a
always use log4j
...
removed all references to mage.util.Logging, java.util.logging
transient static doesn't mean anything, since static fields are never
included in serialization
2015-11-28 21:11:25 -08:00
LevelX2
532d4e0af0
* Added automatic handling for order of triggered abilities going to stack ( fixes #701 / related to #328 ).
2015-08-22 19:29:57 +02:00
LevelX2
386204c085
* Draft log - Fixed a bug that the last pick was logged twice.
2015-08-19 11:46:57 +02:00
Gerhardt Schulle
54c1e4f66c
Add option to log draft picks into a file for post review after the game.
2015-08-09 21:35:49 +02:00
Brodee
ac0aa65aab
code review comments for chaos/random booster draft:
...
1. rename chaos booster draft to random booster draft
2. save packs selected in the user preferences
3. print "Random Boosters" in the player draft viewer during the draft
2015-06-23 20:59:05 -07:00
brodee
e3b84eaab5
chaos booster draft implementation first check-in
2015-06-22 21:55:43 -07:00
Kranken
f8dd3a1491
Fixed a bug when showing and hiding drafted cards
...
This commit fixes the following bug:
1) Draft a couple of cards in draft mode
2) Hide a card
3) Show all cards
4) Hide another card
Here both cards got hidden, this commit makes sure
only the card in 4) gets hidden
2015-02-01 16:45:05 +01:00
LevelX2
c22b54d262
*Draft - Non hidden picked cards go to the deck. Hidden cards to sideboard.
2014-11-23 18:43:31 +01:00
LevelX2
bf3fa37e5d
* Draft - Added possibility to hide (and show again) cards from the picked cards area.
2014-11-22 18:19:59 +01:00
LevelX2
2e68f6c692
* Draft - Fixed that first draft direction is shown as left, second as right and third again to left.
2014-11-19 15:12:17 +01:00
LevelX2
532345e28a
* Darft - Play countdown sound during drafting only if no card from curretn booster was draft.
2014-11-02 12:12:39 +01:00
LevelX2
18d71a9377
* Added display of player order to the draft panel. Added tray info for next card to pick if the XMage window is not active.
2014-11-01 01:59:33 +01:00
LevelX2
e6c7fa5f96
* Draft - Added possibility to mark a card to draft on timeout. Added sounds to draft. Changed compression of some sound files.
2014-10-31 16:22:10 +01:00
LevelX2
f3551a1055
* Client Draft panel - Minor UI changes.
2014-05-15 08:34:43 +02:00
LevelX2
9ff5bcbd92
Improved reconnect and tournament handling. Reconnect time is now shown for disconneted players on player list and tournament panel. You can now reconnect (during 3 minutes) to a tournament also if meanwhile new game (after sideboarding ended) or round was started. Conceding the complete match in a tournament can no longer result in a draw, if you won games before. Quitting a tournament does now always end all active games of that quitting player.
2014-03-31 02:24:59 +02:00
LevelX2
8d2f4cc9ac
* Draft - Added "Quit Tournament" button to draft panel. Minor formatting.
2014-02-28 17:47:27 +01:00
LevelX2
df9c200753
* Memory handling - some more changes to improve object deallocation.
2014-02-06 18:00:45 +01:00
LevelX2
0a18a7bea6
Removed majority of memory leaks from game / editor / dialog handling.
2014-02-02 21:57:02 +01:00
LevelX2
1f8555447d
Removed mana leaks for deck editor and draft panels.
2014-02-01 03:26:27 +01:00
LevelX2
30ddcaf99b
Some changes to reduce memory leaks.
2014-01-31 15:08:40 +01:00
LevelX2
f3992bd2d5
Redesigned sorting handling of deck, sideboard and draft card area (keep sorting if and view if cards move).
2014-01-20 22:13:28 +01:00
Li REN
848e542ee4
clean
2013-06-17 00:01:37 -04:00
Li REN
b057857485
Transfer timeout counter to clock format (minute:second, for example, 100 -> 01:40)
2013-06-16 23:53:25 -04:00
North
dfbe144ad2
Fixed drafting cards
2012-11-08 23:26:41 +02:00
magenoxx
cac2490f77
Displaying background in draft picks dialog
2012-06-25 13:04:41 +04:00
North
239a4fb100
[refactoring][minor] Replaced all tabs with four spaces.
2012-06-19 23:50:20 +03:00
magenoxx
96cfb51686
Extracted Session interface, moved implementation to SessionImpl
2012-04-29 19:03:08 +04:00
BetaSteward
aecdbe0778
added SimpleCardView - will reduce the amount of data passed between client and server
2011-08-22 13:54:55 -04:00
magenoxx
ed2926da88
hiding card tooltip on draft pick
2011-08-03 00:32:52 +04:00
magenoxx
43312fcf1e
draft: added hiding cards between picks, added displaying "Pick a card" message
2011-08-02 15:34:20 +04:00
BetaSteward
c4a3a496aa
moved Session to Mage.Common
2011-06-15 23:24:03 -04:00
BetaSteward
c38804af5f
rolled back changes since 0.7.3 R2 - going to switch client/server architecture
2011-06-14 23:09:18 -04:00
BetaSteward
d8fca737fd
added some client window management + suppress calls when TablesPane is not visible
2011-06-07 22:32:58 -04:00
BetaSteward
8b1c463d35
big client update - moved Session to Mage.Common project, this will allow other clients to reuse connection logic
2011-05-31 23:01:07 -04:00
BetaSteward
4f06f78621
UI fixes - can now play simultaneous games
2011-03-04 22:46:56 -05:00
BetaSteward
d1f0f5bf43
add card sorting to draft screen
2011-02-24 21:56:47 -05:00
BetaSteward
8f2e4f09b6
allowing sorting by piles in deck editor
2011-02-21 00:21:20 -05:00
BetaSteward
d217d332b6
added sorting and counts to deck editor
2011-02-11 22:57:22 -05:00
BetaSteward
e2fd0299c7
fixed multi-human drafting
2011-02-08 11:34:28 -05:00
BetaSteward
812d1bc9c3
added Windows button to toolbar
2011-01-24 22:35:07 -05:00
BetaSteward
cb73d4a25d
added draft timing
2011-01-12 23:44:04 -05:00
magenoxx
e9eb3231c3
DraftGrid: replaced double-click by single press.
2011-01-10 21:43:19 +03:00