Commit Graph

6348 Commits

Author SHA1 Message Date
Maxmtg
b2edf7ac90 added messages in auto-pass and ai inputs 2013-05-26 08:58:41 +00:00
Sloth
fdaaf9d410 - Cleanup of grantBasicLandsManaAbilities. 2013-05-26 08:55:07 +00:00
Maxmtg
3e641685a4 had to make a different event to ensure it is fired after log has composed all strings.
PhaseHandler: passPriority is never called from non-EDT, simplifying code here.
2013-05-25 23:44:54 +00:00
Maxmtg
c282b3e28a InputNonSyncBase => InputPassPriority,
stop() method moved to sync'd inputs, asyncs have only pass()
pass() or stop() may be called only once per input presentation (once shown = one and only stop/pass)
2013-05-25 23:26:15 +00:00
Sol
3bdf8d95cc - ChangeZoneAi will now use the PlayerController reveal function instead of GuiChoose 2013-05-25 21:28:02 +00:00
Maxmtg
fa833f79c2 Pass priority will not lock input - bottomless vault no longer deadlocks 2013-05-25 20:18:53 +00:00
Maxmtg
4972fce2de Prevents multiple triggers fired on upkeep (won't execute handleBeginPhase more than once)
FThreads - more beautiful names for threads
2013-05-25 19:41:24 +00:00
Maxmtg
4c7619561c CardDetailPanel - moved border color calculation closer to usage
InputPassPriority - won't skip phases if you repeatedly hit enter
2013-05-25 18:44:45 +00:00
Maxmtg
bbc373cf15 npe fix 2013-05-25 17:20:38 +00:00
Maxmtg
4b05e27e77 Players cannot play lands they don't own (useful for hotseat mode) 2013-05-25 16:58:19 +00:00
Maxmtg
e8aefbcd4e Moved call to concede to non-edt thread to see correct output on WinLose screen 2013-05-25 16:29:53 +00:00
Sloth
9bebcf4a3b - Fixed AI double shuffling when searching with certain cards. 2013-05-25 16:16:42 +00:00
Maxmtg
1644134a5f Invoking ViewWinLose from FControl (that's temporary - should make a dedicated class), MatchController is no longer bound to UI.
GameNew - trying to split its all-in-one methods into parts to separate game state changes from GUI calls
2013-05-25 15:36:48 +00:00
Sloth
edf1b1c479 - Fixed AI giving up against Immortal Coil. 2013-05-25 13:20:02 +00:00
Sloth
9004766b33 - Improved AI predicting Pump abilities. 2013-05-25 13:07:04 +00:00
Maxmtg
1528dc59b7 GameLog: add method takes 2 arguments, because entry type is reported by enum
ViewWinLose: writes "You" (won or lost) in title if there was only one human in game
2013-05-25 13:00:06 +00:00
Maxmtg
5c6afc446d Game Outcome strings are now built in GameLog class, because MatchController should not compose logs
GameLog is subscribed to DuelOutcomeEvent.
GameLog uses enum to indicate record priority, as well as its kind
ViewWinLose takes strings from log.
2013-05-25 09:52:50 +00:00
Sloth
cf7edd2ec3 - Fixed Essence of the Wild cloning weirdness. 2013-05-25 07:17:44 +00:00
Maxmtg
2ab06b5798 Moved game-to-ui binding to FControl
CMessage binds to game
2013-05-25 06:47:03 +00:00
Agetian
34522bd0bb - Fix a bug with the deck editors crashing when trying determine if a card can be shown to a player (please review, not sure if this is the optimal/preferred solution). 2013-05-25 06:09:20 +00:00
Sol
618d489e46 - Improve WinLose screen for AI vs AI games 2013-05-25 02:21:08 +00:00
swordshine
7aa04ec3f4 - Added Ink-Treader Nephilim and Precursor Golem 2013-05-25 01:42:41 +00:00
RedDeckWins
55cf47e61e Demonic hordes no longer hard coded 2013-05-24 23:53:03 +00:00
Maxmtg
802c5a930d FControl no longer keeps reference to single player.
canShowCard is located at FControl where the current player is determined (quite roughly at the moment)
2013-05-24 22:34:32 +00:00
Maxmtg
3c78cb77b2 this is also from inputs 2013-05-24 22:31:59 +00:00
Maxmtg
0b8b8c043d Inputs: InputBase no longer requires neither InputQueue nor Player in constructor. Only some subclasses require player member.
InputNonSyncBase - base class for non-waiting inputs
2013-05-24 22:31:11 +00:00
Sloth
c3d90f185a - Added Caged Sun. 2013-05-24 21:19:55 +00:00
Sloth
665ac3ce6e - TapsForMana trigger will now actually check for tapping. 2013-05-24 21:09:26 +00:00
Maxmtg
e58de716b8 Stack and Dock shall use LobbyPlayer, since using common Player makes no sense in hotseat mode
PlayerStartConditions: fix NPE
2013-05-24 20:59:03 +00:00
Sloth
7c61612de5 - Fixed Djinn of Wishes not being able to play lands. 2013-05-24 18:08:06 +00:00
Sloth
21f04fc25d - Added Gauntlet of Power. 2013-05-24 12:49:54 +00:00
moomarc
24ef3f77a8 - removed a call to isHuman 2013-05-24 12:13:21 +00:00
swordshine
76a2a73aa1 - Plane: Added Naya and Sanctum of Serra 2013-05-24 11:18:44 +00:00
moomarc
42f77b29e9 - Small fixes to last commit and added some Shuffle params where necessary 2013-05-24 11:16:24 +00:00
moomarc
4197acc6fd - Added Fathom Trawl
- Enabled ordering of cards going to library or battlefield from DigUntil effects.
2013-05-24 09:50:52 +00:00
Sloth
2370324591 - Fixed logic of forAI in selectCardsOfMatchingColorForPlayer. 2013-05-24 07:37:26 +00:00
swordshine
25a0e0285e - fix last commit 2013-05-24 06:26:40 +00:00
swordshine
cf448b4595 - Added Puca's Mischief and Spawnbroker 2013-05-24 05:54:18 +00:00
swordshine
44e967bfcb - Added Reins of Power 2013-05-24 04:31:50 +00:00
RedDeckWins
b1b9b1d3b7 fix epochrasite, delay, jhoira. 2013-05-24 03:55:52 +00:00
Maxmtg
3ec4bec428 UI to start AI vs AI and hotseat matches 2013-05-23 22:29:44 +00:00
Maxmtg
e89b8e4e1f Deck generator takes boolean forAi.
DeckChooser layout changed to take less height
Constructed: minimizing difference between human and AI
temporary removed 'spectate ai vs ai'
2013-05-23 21:46:11 +00:00
Sloth
e83382cb9a - Improved AI for Momir Avatar. 2013-05-23 20:59:23 +00:00
Maxmtg
9cebd2952d Hot Seat prerequisites 2013-05-23 20:46:09 +00:00
Maxmtg
a4deb25e43 Match is being initialized with lobbyPlayer (to possibly match several players controlled) 2013-05-23 18:47:17 +00:00
Maxmtg
c9a0e4ff3e flashIncorrectAction defined in base input class replaces direct calls to GUI from various inputs. 2013-05-23 18:44:10 +00:00
Sloth
09012aee8b - Fixed mandatory targets not being enforced for suspended spells. 2013-05-23 16:34:11 +00:00
Maxmtg
0303b34339 moved quest gui to quest package 2013-05-23 13:37:34 +00:00
Maxmtg
79c3c22c25 remove empty class with its package! 2013-05-23 13:36:02 +00:00
Maxmtg
27fe98384b MatchController ctor: no longer accepts a map of players, since that required unique lobbyplayers for each game player.
Player's teams are defined by numbers, no more lists of LobbyPlayers
2013-05-23 13:28:32 +00:00