Maxmtg
be5536d11a
made InputSyncronizedBase.stop() indifferent to the thread that it is ran from.
...
Introducing game thread concept - that might be used (or might be not) to limit threads devoted to AI thinking with one.
2013-05-28 04:37:11 +00:00
Maxmtg
f6ee680937
InputPayMana now executes only updateMessage in EDT when it's not paid
2013-05-27 18:22:25 +00:00
Maxmtg
9cdd447729
focus gain is delayed in EDT - that should set it better
2013-05-27 18:13:23 +00:00
Maxmtg
8ccfad27cc
InputPayManaBase will execute input queue unlock from the same thread that was used to activate mana ability. No showMessage() will be called.
2013-05-27 17:50:40 +00:00
Maxmtg
ac04c17995
title added to InputBlock
...
update added to inputP
2013-05-27 17:21:15 +00:00
Maxmtg
4294a68cbd
cleanup should update input
2013-05-27 16:25:26 +00:00
Maxmtg
cff508665b
nothing
2013-05-27 16:17:15 +00:00
Maxmtg
cc921eb269
lock and invokeGameAction removed, removed input locks in PayManaBase ('cause HumanPlaySA sets these locks internally)
2013-05-27 15:52:13 +00:00
Maxmtg
8809a5bdb6
remove excessive input lock for humanPlay ability. (it's locked anyway in paymana/select targets block)
2013-05-27 15:27:39 +00:00
Maxmtg
a3e29f130d
remove purple frames after targeting a card
2013-05-27 15:26:42 +00:00
Maxmtg
38e8d3fd7c
Devmode tap / untap will use inputs - may select many cards at a time and need not guess them by number
2013-05-27 15:12:11 +00:00
Maxmtg
142b07ff5a
inlined set/remove input for locks
...
aux method in fthread
2013-05-27 15:11:24 +00:00
Maxmtg
9766a369cb
Improved error messages
2013-05-27 14:38:19 +00:00
Maxmtg
4c76527c3d
GUI play ability on behalf of AI no longer freezes game
2013-05-27 14:34:16 +00:00
Maxmtg
f99e0b3b4b
inlined handleUntap,
...
fixed release control problem
2013-05-27 13:29:37 +00:00
Maxmtg
e752136294
FControl in response to player control changes redraws hands panel
2013-05-27 13:19:00 +00:00
Maxmtg
b88acfe51f
bugfix
2013-05-27 12:56:33 +00:00
Maxmtg
4a9930defb
added log event for player control,
...
moved log's string-building code to GameLogFormatter.java
2013-05-27 12:47:36 +00:00
Maxmtg
ebefc96305
ControlPlayer effect (gui does not update to show hand yet - shall implement soon)
2013-05-27 12:11:04 +00:00
Maxmtg
8f774edc0a
a check of isHuman was masked beyound call to LobbyPlayer
...
+ missing part for pump
2013-05-27 12:10:09 +00:00
Maxmtg
f22f2057fa
Cleanup in PumpEffect.java
2013-05-27 12:08:36 +00:00
Maxmtg
7fd61015a3
Player has lobbyPlayerCreator, actual lobbyPlayer is calculated from whatever is written in player.сontroller
2013-05-27 10:04:18 +00:00
Maxmtg
39c85da7f8
keep player list in CMatchUI, extracted method to setup hand views.
2013-05-27 10:00:18 +00:00
Maxmtg
e5a2685a57
moved observer attachment
2013-05-27 09:56:37 +00:00
Maxmtg
828cf74c15
MagicColor.COLORLESS constant
2013-05-27 09:35:43 +00:00
Maxmtg
8b88288a36
removed ability to cancel choice of reflected mana color
2013-05-27 09:19:01 +00:00
Maxmtg
d9b00135ff
fixing someone's typo.
2013-05-27 09:06:03 +00:00
Maxmtg
d326a0a57a
SA: added getManaPartRecursive(), replaced loops where they were
2013-05-27 08:36:40 +00:00
Maxmtg
51f23b8e02
fixed NPE when lands's mana ability is a subability (Rhystic Cave)
2013-05-27 07:39:16 +00:00
Maxmtg
26a3a6602c
cleaunp warnings for unused imports
2013-05-27 07:17:15 +00:00
Maxmtg
a5b8c92f3d
PlayOrDraw converted to input that appears before opening hand is drawn
2013-05-27 07:09:16 +00:00
Maxmtg
c338ab12ed
fix crash during mulligan
2013-05-27 06:41:21 +00:00
Sol
2ce64880b0
- Only show Ai buggy card play dialog before the first game, as opposed to each game.
2013-05-27 01:40:17 +00:00
Maxmtg
f9b5b89281
initPlane moved to a better place (after mulligans)
...
added mulligan rule 103.4b
2013-05-26 22:08:55 +00:00
Maxmtg
f9f0a77cd9
Game starts with phase = NULL and turn = 0. This lets us log turn 1 beginning properly.
...
Some effects may not work during turn 0 (leylines/chancellors) - if they do, convert them to T:Phase Upkeep | Turn$ 1
2013-05-26 21:36:58 +00:00
Sloth
3eb9aed797
- AI tweak to be a little more aggressive when a burn spell/ability is available.
2013-05-26 20:20:31 +00:00
Maxmtg
f8fb5fef22
Added 'player kept N cards' to log
...
InputSyncronizedBase - just a comment
2013-05-26 19:15:56 +00:00
Maxmtg
934d2af59c
clean up purple frames on cards
2013-05-26 19:03:44 +00:00
Maxmtg
7e5d23d988
just cannot figure out why
2013-05-26 18:51:30 +00:00
Maxmtg
3ee5f5a984
InputProxy.java no longer synchronized
2013-05-26 18:51:00 +00:00
Maxmtg
aaa08dbc19
InputProxy no longer updates when stack has changed - the only possible reason for it to update is passPriority
...
This fixes "AI spawning multiple threads" bug
2013-05-26 18:12:18 +00:00
Maxmtg
2031691ed3
Moved observer attachment into CStack.java
2013-05-26 18:09:53 +00:00
Maxmtg
442e9bb667
Added debug output to ComputerUtilMana
2013-05-26 18:09:12 +00:00
Maxmtg
79da5d9e68
BugReporter indicates thread in console,
...
ComputerUtilMana - commented out is debug code
PhaseHandler: nextPhase & handleBeginPhase are called consequently, no observer updates happen between calls
GuiDisplayUtil: generate mana button caused wrong thread exception
VMessage - remove useless import
2013-05-26 16:10:40 +00:00
Maxmtg
0e23db57db
remove debug key
2013-05-26 15:15:10 +00:00
Maxmtg
781aba8b50
button size setting affects OK and Cancel
2013-05-26 14:54:22 +00:00
Sloth
73569e261f
- Added Showstopper.
2013-05-26 14:29:33 +00:00
Maxmtg
e48821afbb
refactored CSubmenuPreferences
...
added UI_FOR_TOUNCHSCREEN preference
2013-05-26 14:19:26 +00:00
Sloth
4857dec4b0
- Fixed Treacherous Werewolf.
2013-05-26 13:58:05 +00:00
Maxmtg
96069d7c65
cleanup in constants, removing unused ones,
...
replacing maps with list/arrays traversal by indexes
remove imports
2013-05-26 13:32:38 +00:00