Commit Graph

  • f176f7378d removed redundant delete of mPlayer[i]->game as it is already taken care of in the destructor for Player in the next line. techdragon.nguyen@gmail.com 2010-11-10 00:53:56 +00:00
  • 3525696523 Fixed the build - missing file from my last submit. wrenczes@gmail.com 2010-11-09 23:17:40 +00:00
  • 3eeb8a6465 - renamed WResourceManager::autoResize() to ResetCacheLimits(), since the function doesn't actually resize anything. It's merely setting clamping limits on when we should purge the cache. - fixed the debug framerate calculation / drawing code (consolidated duplicated functions & variables mDelta vs a win-only mDeltaTime, no reason to have two), repositioned it to draw on the bottom left (it was colliding with other debug text for the cache info). - for debug testing purposes, added a #define override to force the image cache to work with less memory (I've picked 8 megs, which is what the psp seems to use - the normal default on win/linux is 20 megs). wrenczes@gmail.com 2010-11-09 19:01:38 +00:00
  • c1f8e95a11 changed call to new to NEW techdragon.nguyen@gmail.com 2010-11-09 12:29:33 +00:00
  • 286d18847b code cleanup: removed dead code/ unused variables. techdragon.nguyen@gmail.com 2010-11-09 12:19:17 +00:00
  • c71f8f4a46 Fixed traslation code of deck descriptions for new deckmenu. linshier 2010-11-09 11:19:06 +00:00
  • 164f2c5205 modified font size so deck name fits on screen when selecting deck for game play. techdragon.nguyen@gmail.com 2010-11-09 05:45:24 +00:00
  • 17c358cb12 Fixed a compiling error for GCC-4.4.5. linshier 2010-11-09 02:57:52 +00:00
  • 09f01a9eae Erwan -remove DOLOG committed by mistake wagic.the.homebrew@gmail.com 2010-11-08 13:46:21 +00:00
  • 1e988ef6bb make rendering of retrieval and rendering of background more tightly bounded. techdragon.nguyen@gmail.com 2010-11-08 13:41:32 +00:00
  • 7fe03d52fd resolved linux compilation issues techdragon.nguyen@gmail.com 2010-11-08 11:59:28 +00:00
  • 23937f593e clean up of headers techdragon.nguyen@gmail.com 2010-11-08 11:44:20 +00:00
  • 7d25523a19 fixed line endings techdragon.nguyen@gmail.com 2010-11-08 11:36:28 +00:00
  • 8ba33c9b58 * updated title font size for deck selection screen to ensure it will always fit * added deck name max pixel size to ensure no deck name overflows into borders of menu. techdragon.nguyen@gmail.com 2010-11-08 11:15:16 +00:00
  • eec0c5b717 More theoretical fixes to the scroller. I didn't repro this on win, but I had a couple of cases on my psp - I suspect that the missing reset on the currentID counter was causing problems should the task list shrink after a duel. Also added a modulus calculation to make sure that we never go outside the bounds of the string vector. wrenczes 2010-11-08 09:26:21 +00:00
  • 52a2823f7b Fixed the build; line endings -> Unix. wrenczes 2010-11-08 09:23:16 +00:00
  • 6d8e7edcbf Improvements against http://code.google.com/p/wagic/issues/detail?id=50, Mana animation slows PSP down. wrenczes@gmail.com 2010-11-08 07:27:19 +00:00
  • 61cc3692a5 promoted StatsWrapper struct into class altered deck editor information display for statistics techdragon.nguyen@gmail.com 2010-11-07 18:28:54 +00:00
  • 2d31cbdaf5 Some tweaks to the fonts in the game deck selection screen - the 'wagic' green cursive font was a bit of an eyesore, and wasn't consistent color-wise with the other main font used for the stats & description. wrenczes@gmail.com 2010-11-07 14:21:21 +00:00
  • a90d2ed2e7 Fixed two double->float conversion warnings. wrenczes@gmail.com 2010-11-07 13:49:17 +00:00
  • 7818277e3a Fixed a bug in the text scroller that caused it to display only the first item. wrenczes@gmail.com 2010-11-07 13:03:36 +00:00
  • 471cbd6ba4 More type conversion warning cleanup. wrenczes@gmail.com 2010-11-07 12:09:04 +00:00
  • e717b2f260 Line endings -> Unix. wrenczes@gmail.com 2010-11-07 12:02:55 +00:00
  • a053c0d59e More type conversion warning cleanup. wrenczes@gmail.com 2010-11-07 12:00:23 +00:00
  • 5d907f5abe Erwan - Added a possibility to put a file "Res.txt" instead of the folder "Res". The file Res.txt is a simple 1 line text file, telling where to find the Res folder, terminated by "/". For example: "../../wagic_res". This addresses issue 428 . This could also help us in the future, to develop mods. wagic.the.homebrew@gmail.com 2010-11-07 09:26:29 +00:00
  • b14e3808db Minor code cleanup - pass by reference instead of value; instead of creating temp char arrays on each deck loop while building deck metadata, use an ostringstream when needed. wrenczes@gmail.com 2010-11-07 03:55:56 +00:00
  • 416617fc0d Erwan - fixed memory leak in AEquip/ATeach - Test suite now trims strings correctly (allows to have space between comma-separated card names) - Added Paradise Mantle (for ATeach test) - removed a missing wallpaper from wallpapers list wagic.the.homebrew@gmail.com 2010-11-07 02:27:54 +00:00
  • b2ee9c0f41 More VS 2010 solution files. The props file is required; the filter is a nice to have (ie, the solution file organization is broken out into a separate file now in 2010, whereas it used to be embedded in each vcproj file). wrenczes@gmail.com 2010-11-07 02:12:50 +00:00
  • 3c19533a4c Added the notion of a 'cancel' button, and unified all the 'cancel' menu IDs to be kCancelMenuID (ie -1). I've slaved the Menu button (ie Esc on win, 'Start' button on PSP) to this - the idea being, if you hit the Menu button to bring up a menu, hitting it again will dismiss it without doing anything, which is pretty standard behavior for most console/computer games. wrenczes@gmail.com 2010-11-07 02:08:17 +00:00
  • b0c61049da tweaked menus a bit. fixed possible NPE with background image retrieval techdragon.nguyen@gmail.com 2010-11-06 10:05:54 +00:00
  • f5d7f03086 final fix for affinity, thanks mike for pointing it out. omegablast2002@yahoo.com 2010-11-06 09:19:07 +00:00
  • ce1a079646 fixed another boo boo with affinity. *facepalm* omegablast2002@yahoo.com 2010-11-06 09:04:44 +00:00
  • 21dabf94c1 Simulacrum coded now Issue: 502 omegablast2002@yahoo.com 2010-11-06 08:09:37 +00:00
  • 6c616f2741 added pdcount varible. playerdamagecount for the turn. this is for Simulacrum style cards. Issue: 502 omegablast2002@yahoo.com 2010-11-06 08:07:48 +00:00
  • ed03d2f3ef added optimizing of opponents hand if the opponent deck is listed as "easy". slight optimize if listed as "normal" none if listed as "hard" this provides slightly more challange from even poorly constructed Ai decks. taught Ai to pump creatures during combat, and more so if its heading directly at player, taught Ai that its better to use "becomes" and "transforms" during first main. this allow its to actually attack with the manlands ect. omegablast2002@yahoo.com 2010-11-06 06:59:43 +00:00
  • 0c34d7a04f removed dead code reformatted statements removed unnecessary debug statements fixed a few floating point warnings techdragon.nguyen@gmail.com 2010-11-06 03:49:15 +00:00
  • 8908e86857 removed some compiler warnings changed variables to float where appropriate techdragon.nguyen@gmail.com 2010-11-05 08:07:50 +00:00
  • 91cf0c8d37 Added missing files Xawotihs 2010-11-05 07:26:01 +00:00
  • 1bde7b1dea Make it at least compile ... Xawotihs 2010-11-05 07:20:01 +00:00
  • 842596d4fc fixed sun titan and primeval titan card definitions. ** Sun Titan: missing exclusion of instants and sorceries for special ability ** Primeval titan: fixed token placement so that tokens went into exile and not the graveyard techdragon.nguyen@gmail.com 2010-11-04 09:37:25 +00:00
  • 2d9c2b3341 removed extra "." from TextScroller text as reported in forums following up on wrenczes cleanup, changing ints to floats fixing calculations such as ( 16.0 / <some float>) to ( 16.0f / <some float>) to remove compiler warnings. techdragon.nguyen@gmail.com 2010-11-04 09:18:12 +00:00
  • ab49a0c6e1 Added new files to the VS2010 sln; Fixed a bunch of int to float warnings. wrenczes@gmail.com 2010-11-04 04:33:04 +00:00
  • 41e95ccfc0 reverted unintentional exclude. techdragon.nguyen@gmail.com 2010-11-03 16:50:40 +00:00
  • dd163c8807 ***Note*** please copy "DeckEditorMenuBackdrop.png" into your PSP folder. Otherwise you will have a crash when you start up! techdragon.nguyen@gmail.com 2010-11-03 16:49:39 +00:00
  • b7a2196878 fixed signed vs unsigned comparison that caused psp build to fail techdragon.nguyen@gmail.com 2010-11-03 16:16:53 +00:00
  • 4a3d7faf0a added Reward and Expiration to task list moved text scroller into DeckMenu class since it is specific to DeckMenu and not GameStateDuel added new util function "wordWrap" techdragon.nguyen@gmail.com 2010-11-03 00:15:12 +00:00
  • 685626128a Minor refactor of AACloner::resolve() - two code paths were complete duplicates except for the MTGCard*. wrenczes@gmail.com 2010-11-02 09:26:37 +00:00
  • eef54c259b Fixed a compile warning treated as an error on psp - switched an int loop var to size_t. wrenczes@gmail.com 2010-11-02 07:05:04 +00:00
  • 8cb0cf1dae Fixed a crash in the vertical text scroller. Mike, pls review. wrenczes@gmail.com 2010-11-02 05:50:07 +00:00
  • 4288e7c236 Normalizing line endings to Unix style, per coding guidelines. wrenczes@gmail.com 2010-11-02 05:29:20 +00:00
  • 2d30dece25 Sigh - revert out changes relating to my boost::shared_ptr experiments. (Did I mention I hate AnkhSvn? Why does it auto-select files in other changelists?? ) wrenczes@gmail.com 2010-11-02 04:31:10 +00:00
  • 1325fff26b Fixed the vs2010 solution - included newly added files to the project. wrenczes@gmail.com 2010-11-02 04:28:32 +00:00
  • 5799ebb0e2 Same actualWidth/Height changes for QTmain. wrenczes 2010-11-02 04:08:05 +00:00
  • 858950fb9d Incremental fix on my Navigator work - switched out global to JGE vars actualWidth/Height to be real accessible members of the JRenderer instance, so that we can actually access what the real display width is from within the MTG project. This makes the fix for enchantment zone targetting work when the window is resized on Win32. wrenczes 2010-11-02 04:07:25 +00:00
  • f472c48a8a fixed avatar image issue when selecting ai decks outside of the default 100 ai decks. installed a horizontal text scroller for the deck selection screens in normal play TODO:-> Need to make it smoother transition. It currently just replaces the text with the new text. techdragon.nguyen@gmail.com 2010-11-02 02:20:44 +00:00
  • afe52d883a Added recent new sources and headers Xawotihs 2010-11-01 23:18:55 +00:00
  • a666b8cc14 Laurent - daily build Just built this one to test new deck selection screen... very nice.... wagic.laurent 2010-11-01 21:41:16 +00:00
  • a458da051d refactored how manaredux coding works replaced literals with constants in some places. migrated some abilities out of headers and into implementation files. techdragon.nguyen@gmail.com 2010-11-01 13:04:06 +00:00
  • f0d3072091 updated VS 2008 solution file with the latest DeckMenu classes techdragon.nguyen@gmail.com 2010-11-01 11:32:37 +00:00
  • 911189da3d added DeckMenu and DeckMenuItem to the object list. techdragon.nguyen@gmail.com 2010-11-01 11:01:08 +00:00
  • 149b9efd9f fixed rename bug. rename state was not initialized. techdragon.nguyen@gmail.com 2010-11-01 10:56:20 +00:00
  • 6c1497bbd5 Revamped Deck Selection Screen using abrasax's design as a template. TODO: change literals to use constants, refactor the rendering code for the menu to have be leaner. add text scroller to list all the tasks. * 1st implementation will list all the tasks.dat * 2nd round will try to get the scroller to only display relevant tasks to ai techdragon.nguyen@gmail.com 2010-11-01 08:22:55 +00:00
  • 63eca8ebfe fresh EBOOT.PBP omegablast2002@yahoo.com 2010-10-31 19:02:33 +00:00
  • 2640fc8280 fixed a bug where affinity was not counting when cards were being bounced back to your hand. omegablast2002@yahoo.com 2010-10-31 17:24:49 +00:00
  • e463be5ad0 updated level up creatures to remove level= and replace with auto=maxlevel:number omegablast2002@yahoo.com 2010-10-31 17:22:37 +00:00
  • 150c5f4c99 turned the "ai hint" for level up creatures into an MTGAbility. this fixes a bug(?) that had high priority and maintains same effect as before. removed all traces of the "bugged(?) hint" from CardPrimitive. Issue: 498 omegablast2002@yahoo.com 2010-10-31 17:19:20 +00:00
  • 777098f763 fixed a bug where CHANGELING was not giving all creature subtypes. Changelings now set creature types in MTGCardInstance::initMTGCI moved removed it from the setType function of cardprimitive. Issue: 501 omegablast2002@yahoo.com 2010-10-31 16:55:05 +00:00
  • 4cfb266d14 code cleanup: removed commented out code. techdragon.nguyen@gmail.com 2010-10-31 10:12:20 +00:00
  • d125c245b3 Fixed following cards reported in the bug section: Chainer, Dementia Master, Corpsehatch, Golem Artisan, Imps' Taunt, Samurai of the Pale Curtain, Summoning Station Add missing text of following duel land: Blackcleave Cliffs, Copperline Gorge, Darkslick Shores, Razorverge Thicket, Seachrome Coast guzhenjie1@gmail.com 2010-10-31 10:11:33 +00:00
  • 6fbbb22e96 Erwan - adding missing CardSelectorSingleton files in VC2008 Project. Fixes compilation in VC2008 wagic.the.homebrew@gmail.com 2010-10-31 09:36:20 +00:00
  • 5a1e8e6ffe More reorganization work around CardSelector and the singleton pattern. Broke the source for the singleton into its own separate source file, to keep things clean. Also broke apart a circular header dependency: CardSelector defines and uses a SelectorZone, which is a member inside of CardView. CardView in turn is used heavily by CardSelector. Instead SelectorZone is now defined within CardView (where it's set & controlled anyway). wrenczes@gmail.com 2010-10-31 07:50:53 +00:00
  • dfb9d76829 J : * Fix a broken argument jean.chalard 2010-10-31 07:12:04 +00:00
  • f847bff1d4 Erwan - adding a test for issue 501 (changeling creatures do not get correct creature types) wagic.the.homebrew@gmail.com 2010-10-31 03:19:25 +00:00
  • ab37002fd7 modified text for "Save as AI deck" option added descriptions for editor menu items code clean up. techdragon.nguyen@gmail.com 2010-10-30 06:46:58 +00:00
  • a88ea7cb54 Removed some redundant #ifdef win32 includes. (This should have been part of my previous precompiled header changes.) wrenczes@gmail.com 2010-10-30 05:40:52 +00:00
  • fadd36c0c4 More type conversion warning cleanup; some minor refactoring in the phase bar while I was cleaning up the warnings. wrenczes 2010-10-28 06:57:34 +00:00
  • 98627d96ba fixed minor bug with Ai deck saving routine. fixed psp compilation, changed use of char* to ostringstream for menu text. techdragon.nguyen@gmail.com 2010-10-27 17:26:32 +00:00
  • 7a13f562c7 fixed "ink-eyes,servent of oni" coding. omegablast2002@yahoo.com 2010-10-27 15:17:17 +00:00
  • cd3ad9b9fd fixed menu size and text information for when saving deck as an AI deck. techdragon.nguyen@gmail.com 2010-10-27 11:24:49 +00:00
  • 28d3b9b9a9 fixes ai deck saving bug pointed out by Zethfox. TODO: fix text to the right of the box when saving ai deck. techdragon.nguyen@gmail.com 2010-10-27 03:00:39 +00:00
  • 56ba37feec fixed errors reported by 840126 http://wololo.net/forum/viewtopic.php?f=4&p=17769&sid=b5337dd78cbad56a7c4ec93ccf4a3b71#p17769 thank you! omegablast2002@yahoo.com 2010-10-25 17:33:58 +00:00
  • de01d5216d fresh eboot. omegablast2002@yahoo.com 2010-10-25 14:44:54 +00:00
  • 73b7e8d361 adding a test to insure that a <1 aslongas actually remains on the field if the considiation is false. omegablast2002@yahoo.com 2010-10-25 14:42:53 +00:00
  • fbd5cffbbd taught told Ai bushido is a good thing. laid ground for Foreach lesson for Ai :) fixed yet another reported bug with aslongas. gave becomes( a better menu name system for the manlands to use. omegablast2002@yahoo.com 2010-10-25 14:41:09 +00:00
  • 142dfab57c changed 3 creatures that were incorrectly using "clone" instead of "token(thier id number)" omegablast2002@yahoo.com 2010-10-25 14:37:16 +00:00
  • d358f14eed reverting change. thought the card was a black permenant. techdragon.nguyen@gmail.com 2010-10-24 19:14:42 +00:00
  • 219fdbf4f8 test broke due to omission of response to second counter request, if the test is for 1 counter, it needs to cancel the other counter request. So please test each change individually as well as part of the entire suite. If there are differences, than there is something fundamentally wrong with the suite. techdragon.nguyen@gmail.com 2010-10-24 19:00:56 +00:00
  • 4e6cd4309c changed bloodhall ooze test BACK to the way it was, please read cards before commiting a test change, also, re-run test suite when you make changes to test. omegablast2002@yahoo.com 2010-10-24 18:36:13 +00:00
  • ddc07a4e40 removed duplicate tests. these were prefixed with trigger_ instead of @ techdragon.nguyen@gmail.com 2010-10-24 17:25:02 +00:00
  • ad4543b968 fixed test. missing an assignment of a counter and end condition was incorrect. life should be 17 not 18 since ooze gets two counters it is a 3/3 monster not 2/2. The test was stalling on the interrupt screen for the second counter. techdragon.nguyen@gmail.com 2010-10-24 17:23:19 +00:00
  • 60ef07a025 Added basic Japanese font support. linshier 2010-10-24 07:56:28 +00:00
  • 0ce36747a7 Fixed a compiling error for GCC-4.4.5 linshier 2010-10-24 07:34:12 +00:00
  • eb043eba5d Fixed Makefile for Linux linshier 2010-10-24 07:20:52 +00:00
  • e74c0fcc7c Moved a few more common shared includes into the precompiled header. wrenczes@gmail.com 2010-10-24 06:55:40 +00:00
  • 8f7e4850ba Apply the same precompiler modifications to the VS2010 solution. Also turned off the C++ code analysis entirely for the debug target. Old build time: 5 minutes. New build time: 30 seconds. (note that the VS2010 code analysis slows things down considerably - but it also shows that one major bottleneck is AllAbilities.h, as it's included multiple times. That file should be refactored asap.) wrenczes@gmail.com 2010-10-24 06:29:20 +00:00
  • d5f3e4cfea Enabled precompiled headers for the build. This cuts the win compile time in debug by at least half on my laptop; on the psp compile, it shaves it down by ~ 45 seconds. I only did a cursory inspection of what to add to PrecompiledHeader.h, there's probably more that we can throw in there for more incremental speed improvements. wrenczes 2010-10-24 05:55:24 +00:00
  • c83a4b8d19 fresh eboot. sorry about the other one. omegablast2002@yahoo.com 2010-10-23 23:57:01 +00:00
  • 8cb1f0cc7c moved the level varible from MTGcard to MTGprimitive. omegablast2002@yahoo.com 2010-10-23 23:48:02 +00:00
  • d7f58285f4 missed a couple levelup creatures omegablast2002@yahoo.com 2010-10-23 22:52:25 +00:00
  • 5ee1a695ae fresh daily omegablast2002@yahoo.com 2010-10-23 22:36:20 +00:00