Commit Graph

62 Commits

Author SHA1 Message Date
Maxmtg
18387625af moved gui downloader to a separate package
introducted 'protocols' for imagecache item urls.
products and tokens use their unique prefixes to point to the picture location correctly.
2012-03-16 07:16:56 +00:00
Maxmtg
eee0d2e4bb removed CardList constructor from array, and thus removed redundant toArray conversions (while lists were passed) 2012-02-29 07:15:20 +00:00
Maxmtg
c8fbeb0d97 BoosterGenerator refactored - does not hold numbers of cards of each rarity to generate per run. 2012-02-25 09:43:49 +00:00
Maxmtg
b9d4a559f2 Editions, Boosters, Blocks - all moved to their own collections in FModel, using base classes from util 2012-02-24 23:12:59 +00:00
jendave
23164a9219 delete obselete deck generators 2012-02-24 08:00:26 +00:00
Maxmtg
d2b99dfd39 SetInfo => EditionInfo, same rename for *utils
moved EditionUtils, FormatUtils from AllZone to FModel
2012-02-24 06:21:26 +00:00
jendave
1c71b1aff7 Disable FModel tests 2012-02-21 16:47:38 +00:00
Maxmtg
d2f240af55 renamed CardSet to CardEdition, moved static ???Utils classes to AllZone (not a best place, but better than just static classes) divided formats from sets 2012-02-20 20:01:32 +00:00
Doublestrike
6ffe3479c3 All new game methods consolidated into forge.game.GameNew.
GameAction moved from AllZone into FModel.
Singleton pattern enforced on FModel.
Match/game state reset persist bug fixed.
2012-02-20 13:20:41 +00:00
Maxmtg
b90ef917d9 Removed DeckManager, refactored deck editors, unified deck serialization, new deck storage model (convertor included). limited cubes may be broken for now 2012-02-17 22:58:24 +00:00
Doublestrike
4f2a4004e3 Renamed "forge.gui.input" package to "forge.control.input" for consistency and clarity. 2012-02-16 10:55:11 +00:00
Doublestrike
668839a528 Massive removal of old UI code:
Easy accessors added FView and FControl to various components throughout UI.
Mishmash of methods in "Display" interface attached as appropriate to singletons.
AllZone updated to remove display and one or two others in favor of singletons, for future deprecation.
Some renaming for consistency.
Skins folder moved out of "images", which will be deprecated soon.
FControl refactored to reuse single instance of each UI state.
2012-02-13 12:13:47 +00:00
Doublestrike
4446b5a802 Quest UI is now fully updated. Deprecated classes and packages removed from codebase. 2012-02-05 04:40:29 +00:00
Doublestrike
2fa2f27899 Lonely preference settings moved out of FModel into loadPreferences with the rest of the preference settings. 2012-01-22 08:56:32 +00:00
Doublestrike
fa7eae22c3 Further semantic organization of FModel.
Main is now free of any non-essential calls and methods.

FView now free of all non-view-related calls and methods.
2012-01-22 07:59:18 +00:00
jendave
fbb1d99b21 Dependencies and checkstyle is now clean 2012-01-20 21:10:41 +00:00
Doublestrike
00766363f9 Moved the "forge.view.swing" package into "forge.view". 2012-01-17 10:47:10 +00:00
slapshot5
05dfac1250 rename Phase.java to PhaseHandler.java (matches other TriggerHandler, etc.) and updated all calling classes. Remade the Phase class as a superclass for Untap, Upkeep, EndOfTurn, EndOfCombat to consolidate some code. 2012-01-17 02:55:29 +00:00
slapshot5
f976459395 move loadDynamicGameData to Main 2012-01-07 06:51:47 +00:00
jendave
34366cc29e Disabled failing tests. Build now requires unit tests to pass. 2011-11-17 17:26:06 +00:00
jendave
579f39c3cc Cleaning up unit tests 2011-11-17 16:35:43 +00:00
jendave
1a651d0217 changed Constants and NewConstants from Interfaces to static classes. 2011-11-03 16:16:33 +00:00
jendave
2aeff7ca02 rename namespaces per Java standards 2011-11-02 15:11:47 +00:00
jendave
b594ba087c rename files to conform with Java standards 2011-11-02 14:45:19 +00:00
jendave
cc3aad44f8 rename files 2011-11-02 05:49:50 +00:00
jendave
734091f364 rename files 2011-11-02 05:27:20 +00:00
jendave
21301e7b5f checkstyle and refactoring 2011-10-30 07:01:52 +00:00
jendave
df80bd64a8 checkstyle 2011-10-29 08:04:51 +00:00
jendave
626fa471ee checkstyle and refactor 2011-10-29 06:24:29 +00:00
jendave
e646a6190e checkstyle and refactor 2011-10-29 06:13:20 +00:00
slapshot5
a65508754d In-game downloading Part 7 (and final):
1) refactor Gui_DownloadPictures_LQ
2) refactor Gui_DownloadSetPictures_LQ
3) remove the [T] before file names in tokens download file
2011-10-25 05:27:22 +00:00
Doublestrike
4e85650dda Removed obsolete win/lose frame files. 2011-10-10 06:53:56 +00:00
Doublestrike
6545bbf276 Finally, all quest and duel decks fully encapsulated with acceptable format.
Helper files completely removed (easy.txt, quests.txt, etc.) and hard-coded quest properties are a thing of the past.

Model and view fully separated for main panel in quest GUI.

Critical file: QuestEventManager can handle instantiation of all decks, once (ideally).
2011-09-17 09:21:43 +00:00
Maxmtg
63de7ff3c1 data for booster generation incorporated into CardSet 2011-09-14 21:54:19 +00:00
Maxmtg
9a7348a437 Removed/renamed excessive booster classes
BoosterPacks in cardshop are functional. Need to discuss and balance their appearance
CardListViewer is caching Card objects to create them a single time. Set of cards shown now exactly matches CardPrinted.
2011-09-14 19:08:43 +00:00
Maxmtg
9988efc847 removed player's picks map from boosterDraft interface (interface should not hold static data)
removed the getCardsNumber function from BoosterGenerator (it doesn't know in advance how many cards caller will ask to generate)
moved upload picks from draft deckeditor to boosterDraft class
added an enum to describe limited game type
tests may start failing - they would need an initialized CardDb
2011-09-14 17:46:24 +00:00
Maxmtg
5b3c267162 removed ReadDraftBoosterPack class - it was used by tests only.
removed BoosterDraftAITest - it didn't succeed anyway (needs to have CardDb initialized to succeed)
2011-09-14 16:00:10 +00:00
Maxmtg
d30f70a140 Working over booster generation - BoosterGenerator became more universal, moved to forge.card for a while, this is still WIP.
Limited game classes have been cleaned (code moved to utility functions in draft, CustomLimited class contains setting to start with custom cardpool or boosters)
Closure introduced to utilities
2011-09-14 15:52:31 +00:00
Maxmtg
911aa3dc2e fix the test 2011-09-14 12:36:43 +00:00
Maxmtg
49b21e09ad CardPool renamed to ItemPool, moved to forge.item, dependencies updated 2011-09-14 05:52:17 +00:00
Maxmtg
d3a51720a8 CardPool is now parametrized, preparing to hold boosters and packaged decks in quest inventory 2011-09-14 05:34:33 +00:00
Maxmtg
2ecc716b83 gameType is now a Enum,
Deckeditors no longer save all decks on close (there may remain minor bugs)
Deckeditors have mostly been cleaned of usage of global variables
OldGuiNewGame updates deck comboboxes properly
Download deck from tcgplayer feature temporary removed
cleaned up some warnings
2011-09-09 11:08:29 +00:00
Maxmtg
582d9ffe16 fixed a bug with deckeditor filters: (1) when you select 6 core types of 7, all 7 are shown anyway, (2) with active set filter didn't show some cards issued in other sets 2011-09-05 22:53:45 +00:00
slapshot5
1c50ed43c0 some fixes in Test classes to fix compile errors. 2011-09-04 19:05:48 +00:00
Maxmtg
a46486c0ad reverting sources to revision 10193
changes from r10200 were kept (not reverted)
2011-09-04 03:13:07 +00:00
Doublestrike
f83f87df5b NOTE: A commit with errors was apparently pushed previous to mine. As a result, my work has been broken also, and will unfortunately take some time to fix. The functionality described below will eventually work.
=====
Big commit: Restructured Quest quests to use dck files.  This required changes in many places.  Among other things:
- Model and view separated for quest main panel items
- Quests and battles all generated from dck files
- dck files all updated to contain metadata, main, sideboard
- Quest dck files updated to contain [ai_extra_cards] and [human_extra_cards]
2011-09-03 10:08:03 +00:00
slapshot5
aac44770c3 change some imports and types in GuiBoosterDraftTest.java and GuiQuestOptionsTest.java (I don't know if the fixes are correct, but it fixes a broken build...) 2011-09-03 07:52:34 +00:00
Maxmtg
54c1b987d2 All deckeditors, decks, boosterdraft, quest switched to lightweight cardPrinted objects, have fun :)
Features dropped: glassPane on deckeditors, separate filter window in deckeditors.
2011-09-01 18:11:00 +00:00
Maxmtg
16d513aa4c previous commit did break the build, this is a patch 2011-08-30 22:55:26 +00:00
Braids
fd25e38c9e Organized imports in src/test/java/forge/model/FModelTest.java 2011-08-29 16:28:46 +00:00