Commit Graph

42 Commits

Author SHA1 Message Date
Sol
a3b5f9eb45 - HumanPlayer wasn't saved apparently. 2011-08-22 03:39:34 +00:00
Sol
8451aa99a4 - Fixing NPE in IsPlayer() 2011-08-22 03:38:48 +00:00
Sol
c0e68b19d2 Issue 92: Reorganization of Costs
- Fix a few cards to adhere to new Cost requirements
2011-08-22 02:19:10 +00:00
Braids
1df5c1aa55 Fixed compatibility with Java 7.
Problem was due to inability to deserialize display_new_layout.xml. I changed that file's default serializer to XStream. This fix maintains compatibility with existing display_new_layout.xml when possible, and uses an XStream-generated display_layout.xml when it cannot parse the former.

Note this updates the default display_layout.xml, which looks OK under Windows XP with resolution 1024x768.

Bug: 144
2011-08-22 01:54:21 +00:00
Maxmtg
36e71434c2 fix typo 2011-08-22 00:04:21 +00:00
Maxmtg
a04d035129 Refactored QuestMatchState
GameInfo is renamed to GameSummary and is now an observer for game state. It's purpose is now to hold statistic data on game and actions performed by players. The former functionality moved to ColorChanger and Phase (all combat damage prevention due to Fog spell). Since then game turns calculation is done properly (no need to add/substract 1)
Total cleanup at Gui_WinLose, removed all references to global objects for quest and match-related entites. 
Some of quest rewards calculations use now special functions in QuestData class.
Tracking of win and lose conditions refactored (see Player and Upkeep classes)
2011-08-22 00:02:22 +00:00
Braids
6afac1c7e0 Issue 117: Load from default display_layout.xml when user's customized display_new_layout.xml does not exist.
* Updated the default display_layout.xml to look good on a Windows XP 1024x768 display.
* Updated GuiDisplay4.java to load from default layout if user's "new" layout does not exist.
* We have not had display_new_layout.xml in the repository for some time, but that is a related change.

Bug: 117
2011-08-21 16:05:15 +00:00
ArsenalNut
90dfca737b Added RememberTokens script key to Token AF, added Gilt-Leaf Ambush 2011-08-21 04:19:44 +00:00
Braids
01e7f66d6b Issue 77: Avoid NPE when choosing cards at random for quests. 2011-08-21 04:01:47 +00:00
Braids
ed7b114a67 - Remove compiler warning from forge.deck.generate.Generate5ColorDeck. 2011-08-21 02:45:55 +00:00
Chris
a724e2a16b - Added the new Swan 2 deck to quest mode. 2011-08-20 16:42:42 +00:00
jendave
479b2b98db rename splash pic. Spaces in the filename are not best practice 2011-08-20 08:35:56 +00:00
Braids
664a535a47 - Reduce CheckStyle, FindBugs, and PMD output for recently changed files. 2011-08-19 03:48:50 +00:00
Braids
fdb1199223 - Issue 106: Add splash screen just under progress bar, and load all cards at startup. 2011-08-19 02:22:03 +00:00
Chris
c260a283cd - Renamed the quest deck Rogue 3 to Sabertooth 3. 2011-08-19 00:35:31 +00:00
jendave
a4a6ac7cbc Hide old deck generators 2011-08-17 08:23:01 +00:00
Hellfish
95a1dfa1db *Replaced a couple of foreach loops with regular for-loops to avoid ConcurrentModificationException in TriggerHandler. 2011-08-16 16:48:49 +00:00
ArsenalNut
de9bab17a5 Added support for RemoveSuperTypes, RemoveCardTypes, RemoveSubTypes, and RemoveCreatureTypes to Animate AF. 2011-08-16 01:38:06 +00:00
jendave
70428f1fa5 fix javadoc comments 2011-08-15 19:26:10 +00:00
ArsenalNut
99b0303d6f Fixed bugs related to Animate AF (see bug issue #137) 2011-08-15 13:44:18 +00:00
jendave
f57cb39689 forst cut of 5 color deck generator 2011-08-15 07:55:35 +00:00
Maxmtg
52758f74b9 removed misleading comments 2011-08-14 22:22:10 +00:00
Hellfish
e07e396452 *Extended Setup Game State - Added named parameters.
-Tapped = If this is True,well... the card is tapped, ofc.
	-SummonSick = If this is True, the card has Summoning Sickness.
	-Counters = A comma-separated list of counters on the card.
	-Morphed = If this is True, the card is facedown. (It must have the morph keyword for this to work)
	-Set = Like you previously set SetCode.If absent, the latest printing is used.
Ex. "AICardsInPlay=Aphetto Alchemist|Set:ONS|Tapped:True|SummonSick:True|Counters:P1P1,P1P1,M0M2|Morphed:True; Memnite"
2011-08-14 20:20:05 +00:00
Maxmtg
f7e5897dc7 minor api changes in preparation for Gui_WinLose refactoring 2011-08-14 16:26:51 +00:00
Maxmtg
c5430340ca M12 is already T2, so it should be added here too 2011-08-14 16:23:35 +00:00
Maxmtg
7c4f159278 Quest Cardshop: after selling a card the picture at the right is being updated properly 2011-08-14 16:22:10 +00:00
Braids
52c33b6468 - Eliminate compiler warnings from the files below. This involved commenting out some variables, among other things.
src/test/java/forge/card/mana/Mana_PartTest.java
src/main/java/forge/card/cardFactory/CardFactory_Sorceries.java
src/main/java/forge/card/cardFactory/CardFactory_Lands.java
src/main/java/forge/card/cardFactory/CardFactory_Auras.java
src/main/java/forge/card/cardFactory/CardFactory_Creatures.java
src/main/java/forge/card/abilityFactory/AbilityFactory_Counters.java
src/main/java/forge/card/abilityFactory/AbilityFactory_Attach.java
src/main/java/forge/card/abilityFactory/AbilityFactory_Token.java
src/main/java/forge/card/abilityFactory/AbilityFactory_Pump.java
src/main/java/forge/card/abilityFactory/AbilityFactory_ChangeZone.java
src/main/java/forge/card/abilityFactory/AbilityFactory_PermanentState.java
src/main/java/forge/card/abilityFactory/AbilityFactory_Debuff.java
src/main/java/forge/card/abilityFactory/AbilityFactory_Copy.java
src/main/java/forge/card/abilityFactory/AbilityFactory_Turns.java
src/main/java/forge/card/abilityFactory/AbilityFactory_Reveal.java
src/main/java/forge/Upkeep.java
src/main/java/forge/GUI_ImportPicture.java
2011-08-14 00:42:05 +00:00
Braids
e811c166b6 - Issue 106: Continue refactoring code from Gui_NewGame to other classes.
* Moved most of forge.view.swing.Main.main's code into forge.model.FModel and forge.view.swing.ApplicationView.
* Tested and seems to work OK.
* Reduced Checkstyle, FindBugs, and PMD output in all changed files.
2011-08-14 00:26:44 +00:00
ArsenalNut
5a240eac61 Added support for "ClearImprinted" to Cleanup AF. Updated Mimic Vat 2011-08-13 19:25:35 +00:00
Braids
5a3f6d312c - Issue 106: Refactor Gui_NewGame. Moved preferences to FModel.
* Updated former references to preferences to use FModel in forge.GuiDisplay4 and in forge.view.swing.OldGuiNewGame.
* Added simple unit test.

Bug: 106
2011-08-13 02:38:01 +00:00
ArsenalNut
e6032d1825 Move handling of Imprint exclusively to ChangeZone AF. Add Mimic Vat 2011-08-12 23:14:58 +00:00
Braids
a25cc1b0c7 - Issue 120: Improve version and build ID in Crash Reports.
* forge.error.ErrorViewer now uses BuildInfo.toPrettyString() to display the version.
* Fixed some CheckStyle violations in ErrorViewer.
* Added forge.model.BuildInfo.toPrettyString method.
* Removed obsolete VERSION field from forge.properties.NewConstants. (Java)
* Removed obsolete property "program/version" from res/main.properties.

Bug: 120
2011-08-12 17:11:47 +00:00
Chris
6bb5f32eaf - Added the new Dream 3 quest deck. 2011-08-12 16:17:16 +00:00
Braids
10431c521e - Added programmatic access to BuildID and Version through methods on FModel.getBuildInfo().
- Added class forge.model.BuildInfo with unit test.
- Added unit test for forge.model.FModel.
- Added exception class forge.model.MultipleForgeJarsFoundError.
- Updated forge.view.swing.Main with some preliminary code for progress monitoring.
- Reduced CheckStyle, FindBugs, and PMD violations in these files and in net.slightlymagic.braids.util.testng.BraidsAssertFunctions.
- Added missing package-info in net.slightlymagic.braids.util.testng.
2011-08-12 14:47:37 +00:00
jendave
b3b64c6635 cleanups 2011-08-12 09:17:12 +00:00
jendave
4b6e1e1d05 fix method signature 2011-08-12 07:03:44 +00:00
jendave
8346d7c079 Fixed site. Starting refactor of deck generation 2011-08-12 06:45:28 +00:00
ArsenalNut
6c10d61064 Added support for "RememberChanged" to changeKnownOriginResolve 2011-08-12 01:12:59 +00:00
ArsenalNut
8832946159 Modified filterListByType method so isRemembered works correctly 2011-08-12 01:04:35 +00:00
ArsenalNut
d4a95cb840 Modified xCount to make Daybreak Coronet scriptable 2011-08-11 06:26:51 +00:00
jendave
c8b43ff84f small cleanups to make Eclipse happy 2011-08-10 20:33:26 +00:00
jendave
d9a785ee3a init2 2011-08-09 19:34:12 +00:00