Commit Graph

70 Commits

Author SHA1 Message Date
Maxmtg
7990183ca5 arcane.ui.* => forge.view.arcane.*
removed generateRandomCards from cardfactory
2012-04-07 11:34:05 +00:00
Maxmtg
5ce60300ea move refactoring
removed old card alignment code from guiDisplay
2012-04-07 10:26:44 +00:00
Maxmtg
d8e5a8011c Gathered phase-related classes in a package 2012-04-07 08:32:53 +00:00
Maxmtg
0d7a549bd1 Deck generation uses CardPrinted 2012-04-07 06:57:12 +00:00
Maxmtg
884afe1e3e PhaseType switched to enum 2012-04-03 19:26:09 +00:00
Maxmtg
c0b13ba381 carving away some code we won't ever need. 2012-03-26 21:16:55 +00:00
Maxmtg
bc0033cd4d removing unused code 2012-03-26 20:35:01 +00:00
Maxmtg
2ea213863d removed some unused code 2012-03-17 05:36:45 +00:00
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