Commit Graph

61 Commits

Author SHA1 Message Date
Braids
9d8d9a9eea Make progress in segregating game model data; move some fields from forge.AllZone to forge.model.FGameState.
Left delegate methods in AllZone, marking their Javadoc (in English) for future deprecation.
Added some rudimentary tests on forge.model.FModel's getGameState and resetGameState methods.

Bug: 154
2011-08-28 03:01:13 +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
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
jendave
f57cb39689 forst cut of 5 color deck generator 2011-08-15 07:55:35 +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
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
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
7746e68b98 update unit tests to make them less painful from command line. Fixed urls in Maven site home page 2011-08-10 19:42:54 +00:00
jendave
78b668297e Fix Maven site links, Make unit test shorter, add svn rev to manifest 2011-08-10 16:57:20 +00:00
jendave
d9a785ee3a init2 2011-08-09 19:34:12 +00:00