summaryrefslogtreecommitdiffstats
path: root/pokemod/Rules.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [FIX] Moving stuff for the move to the new name, Sigma Game Engine (sigen ↵Ben Boeckel2008-09-051-438/+0
| | | | | | for short) git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@249 6ecfd1a5-f3ed-3746-8530-beee90d26b22
* [FIX] Script to make a tarball now defaults to HEAD for the revisionBen Boeckel2008-08-181-46/+46
| | | | | | | | | [FIX] Enumeration types used to help remove some checks [FIX] Macro code moved to static members of Object (not all though) [FIX] Scripting wrappers now share information by keeping track of already-created instances of the wrapper [FIX] Scripting methods are now Q_SCRIPTABLE and not slots git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@239 6ecfd1a5-f3ed-3746-8530-beee90d26b22
* [FIX] Cleaned up the RC fileBen Boeckel2008-08-041-40/+20
| | | | | | | | | | | | [FIX] Script editing is getting there (still a little weird...) [FIX] Cleaned up the main file a bit [FIX] Added the Skin class [FIX] All sprites and skins are internally linked now [FIX] No more image restraints (tiles are still enforced so that map editing works) [FIX] Cleaned up checking for valid values when setting in pokemod [FIX] Removed FileDialog files git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@233 6ecfd1a5-f3ed-3746-8530-beee90d26b22
* [ADD] Added XMLGUI file for pokemodrBen Boeckel2008-08-021-4/+4
| | | | | | | | | [FIX] Pokemodr is now a KXmlGuiWindow (working on KatePart fixes) [FIX] Started Doxygen stuff [FIX] Object names of Pokemod classes are now determined using metaObject [FIX] Updated to use KDE 4.1 git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@232 6ecfd1a5-f3ed-3746-8530-beee90d26b22
* [FIX] Fixes to NatureBen Boeckel2008-07-021-79/+1
| | | | | | | | [FIX] Added AI levels to Trainer [FIX] Happiness and Pokérus no longer needed (scripts should handle them) [FIX] Rules widget dropped the tabs to fix the KIntNumInputs git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@222 6ecfd1a5-f3ed-3746-8530-beee90d26b22
* [FIX] Replaced Point with QPoint (less duplicate code)Ben Boeckel2008-06-301-0/+14
| | | | | | | | | | [FIX] Fraction and Point widgets are more compact [FIX] Fleshed out more of the TeamMember [FIX] Map tilemap editor now expands to fill all available area [FIX] Added priority values to abilities and moves [FIX] Added option for ATB-like battle rounds git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@217 6ecfd1a5-f3ed-3746-8530-beee90d26b22
* [FIX] Macros fixed and ID can't be set outside of constructorsBen Boeckel2008-06-281-1/+2
| | | | | | [FIX] Map flyWarp no longer raises and error by default git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@216 6ecfd1a5-f3ed-3746-8530-beee90d26b22
* [FIX] Validation works in PokémodrBen Boeckel2008-06-191-20/+3
| | | | | | | | | [FIX] Macros moved to their own file [FIX] Macros for subclasses added [FIX] Key shortcuts added to context menu items [FIX] Rules had a redundant field git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@212 6ecfd1a5-f3ed-3746-8530-beee90d26b22
* [FIX] Fractions can now be polled for chancesBen Boeckel2008-06-181-20/+0
| | | | | | | | | [FIX] Added some stuff to TeamMember to be usable [FIX] Arena is no longer static [FIX] Rules no longer needs to know maxDV (depends on whether the special DV is split) [FIX] Hat no longer seeds the RNG; it's the apps job git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@209 6ecfd1a5-f3ed-3746-8530-beee90d26b22
* [FIX] All modules now use their own namespaceBen Boeckel2008-06-091-67/+67
| | | | git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@201 6ecfd1a5-f3ed-3746-8530-beee90d26b22
* [FIX] Modified Rules a bitBen Boeckel2008-06-021-37/+71
| | | | | | | | | [FIX] Updated Rules widget to match up with Rules [FIX] Reorganized the Rules widget [FIX] Using KStandardDirs rather than hardcoded ones [FIX] Cleaned up some minor things with KListWidgets git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@188 6ecfd1a5-f3ed-3746-8530-beee90d26b22
* [FIX] Scrapped effects and such for scripts (going to use Kross) in pokemodBen Boeckel2008-05-231-2/+1
| | | | git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@166 6ecfd1a5-f3ed-3746-8530-beee90d26b22
* [FIX] Classes in pokemod will no longer emit a changed signal if not ↵Ben Boeckel2008-05-211-56/+29
| | | | | | | | | | actually changed [FIX] Logic error with checking to see if certain GUI elements need resetting [FIX] Using activated rather than currentIndexChanged signals for combo boxes [FIX] Qt bugs now irrelevant git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@161 6ecfd1a5-f3ed-3746-8530-beee90d26b22
* [FIX] Refactored out connections made within widgetsBen Boeckel2008-05-151-1/+28
| | | | | | | [FIX] Flag, Fractiona, and Point widgets fixed to only emit signals when actually changed [FIX] Pokemod classes now emit signals git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@138 6ecfd1a5-f3ed-3746-8530-beee90d26b22
* [ADD] Added an option for letting the player not choose the switch style of ↵Ben Boeckel2008-05-131-0/+14
| | | | | | | | battling [ADD] Types can now be immune to weather effects git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@127 6ecfd1a5-f3ed-3746-8530-beee90d26b22
* [FIX] pokemod now uses signals/slots for errors and warningsBen Boeckel2008-05-031-19/+18
| | | | git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@120 6ecfd1a5-f3ed-3746-8530-beee90d26b22
* [FIX] Exceptions no longer used in pokemodBen Boeckel2008-05-021-78/+85
| | | | | | | [DEL] Exception and BugCatcher are no longer needed [ADD] Object.cpp added git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@119 6ecfd1a5-f3ed-3746-8530-beee90d26b22
* [FIX] Pokemod objects now know about parentsBen Boeckel2008-04-271-57/+58
| | | | | | | | [FIX] Project includes are now relative [FIX] Headers included for better detection of invalid headers [FIX] Validation code commented out so it can be done better git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@111 6ecfd1a5-f3ed-3746-8530-beee90d26b22
* [FIX] Fraction bounds checkingBen Boeckel2008-04-201-1/+3
| | | | git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@102 6ecfd1a5-f3ed-3746-8530-beee90d26b22
* [FIX] IndexException is more explicitBen Boeckel2008-04-191-10/+9
| | | | | | | | | [FIX] Added SizeException for image validation [FIX] QPixmaps are now verified [FIX] Classes now use error and warning rather than throwing [FIX] Deleted Object.cpp git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@100 6ecfd1a5-f3ed-3746-8530-beee90d26b22
* [FIX] Frac -> FractionBen Boeckel2008-04-171-7/+13
| | | | | | | | | | | [FIX] ImageCache and Ini removed [FIX] Fraction/Point widgets moved to pokemodr [FIX] Copy ctors made for pokemod classes [FIX] Ctors in pokemod fixed [FIX] Copyright headers fixed in pokemodr [FIX] PokeModr updated to new API and fixed in some places git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@99 6ecfd1a5-f3ed-3746-8530-beee90d26b22
* [FIX] Object::mid -> m_idBen Boeckel2008-04-151-94/+90
| | | | | | | | | [FIX] XML is now used [FIX] Images are stored in the XML file and classes rather than relying on external images [FIX] Frac no longer keeps track of its type; the class should do it [ADD] pokemod/Object.cpp git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@97 6ecfd1a5-f3ed-3746-8530-beee90d26b22
* [FIX] Member variables now use m_ prefixBen Boeckel2008-03-311-285/+294
| | | | | | [FIX] Lots of minor fixes git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@95 6ecfd1a5-f3ed-3746-8530-beee90d26b22
* [FIX] pokemod now passes pointers around instead of referencesBen Boeckel2008-02-191-14/+14
| | | | git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@61 6ecfd1a5-f3ed-3746-8530-beee90d26b22
* [FIX] Only committed general last timeBen Boeckel2008-02-011-32/+32
| | | | git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@55 6ecfd1a5-f3ed-3746-8530-beee90d26b22
* [FIX] Changelog fixedBen Boeckel2008-01-311-1/+1
| | | | | | | | | | [FIX] Warnings in pokemod gone [FIX] BoundsException thrown from Item::setPrice() [FIX] CoinLIst now has correct className [FIX] Frac needed in header for ItemEffect [ADD] CoinList, EggGroup, and Item UI logic added git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@52 6ecfd1a5-f3ed-3746-8530-beee90d26b22
* [FIX] pokemodr.ui now uses QScrollArea rather than QAbstractScrollAreaBen Boeckel2008-01-251-1/+1
| | | | | | | [FIX] Compare in Rules.cpp [FIX] PokeModrUI now saves the KConfgiGroup so preferences can be saved back git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@46 6ecfd1a5-f3ed-3746-8530-beee90d26b22
* [FIX] Frac returns a double (not an unsigned typcast to double, making 0 all ↵Ben Boeckel2008-01-251-15/+15
| | | | | | | | | | the time) [FIX] maxDV now works on 0 and 1 rather than 16 and 32 [FIX] Stuff ignored (due to other options) can't throw Exceptions in Rules anymore [FIX] UI logic fixed git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@45 6ecfd1a5-f3ed-3746-8530-beee90d26b22
* [FIX] BugCatcher now asks if the user wants to open KBugReportBen Boeckel2008-01-241-1/+1
| | | | | | | | | [FIX] Exception members are now const [FIX] map was uninitialized in Dialog validation [FIX] (un)setting Breeding in Rules [FIX] GUI now works (though with QMainWindow and QTabWidget in Rules) git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@42 6ecfd1a5-f3ed-3746-8530-beee90d26b22
* [FIX] Grammer in ChangelogBen Boeckel2008-01-231-13/+13
| | | | | | | | | | | [FIX] Made pokemod classes contain their names for later ease [ADD] PokéModr main window form [FIX] Ini and Exception includes fixed [FIX] BugCatcher bugs fixed [FIX] .pro files fixed [ADD] PokéModr main GUI almost complete git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@40 6ecfd1a5-f3ed-3746-8530-beee90d26b22
* [FIX] Some linker errors in pokemod and generalBen Boeckel2008-01-221-0/+8
| | | | | | | | [FIX] More enum char*[] to QStringList [FIX] Widgets in PokéModr gui [ADD] Rules GUI logic git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@39 6ecfd1a5-f3ed-3746-8530-beee90d26b22
* [FIX] PokeMod namespace removedBen Boeckel2008-01-211-58/+58
| | | | | | [ADD] MoveEffect editing form for PokéModr git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@38 6ecfd1a5-f3ed-3746-8530-beee90d26b22
* [FIX] pokemod compiles faster due to better placement of #includesBen Boeckel2008-01-211-0/+1
| | | | | | [FIX] Header of pokemodr/PokeModr.h git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@36 6ecfd1a5-f3ed-3746-8530-beee90d26b22
* [ADD] More GUI classes (only MoveEffect left)Ben Boeckel2008-01-211-24/+24
| | | | | | | | | [FIX] Polished up GUI classes [FIX] renamed methods get*ByID -> get*Index instead for more logical get*ByID [FIX] Renaming in pokemod to remove mention of Pokémon [FIX] minor .pro fixes (aesthetic mainly) git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@35 6ecfd1a5-f3ed-3746-8530-beee90d26b22
* [DEL] get*Num/get*Denom methods from PokemodBen Boeckel2008-01-191-10/+0
| | | | | | | [ADD] GUI classes to pokemodr [FIX] AudioCache is trashed right now, but may be salvageable git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@34 6ecfd1a5-f3ed-3746-8530-beee90d26b22
* [DEL] Removed PokeGen namespaceBen Boeckel2008-01-191-60/+60
| | | | | | | | [ADD] general/AudioCache.h completed [DEL] VERSION removed from subdir .pro files [DEL] audio/ git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@33 6ecfd1a5-f3ed-3746-8530-beee90d26b22
* [FIX] Added 2008 to copyrightsBen Boeckel2008-01-171-23/+23
| | | | | | | | | | | | [FIX] Made exceptions better [FIX] Added RBY Move Effects (as well as val1 and val2 code) [FIX] Added breaks where missed [FIX] Grammar mistakes (factored out to Exceptions) [FIX] Cleaned up Species types and egg groups handling [FIX] Cleaned up Store items handling [FIX] Cleaned up Tile details git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@31 6ecfd1a5-f3ed-3746-8530-beee90d26b22
* [ADD] Known MoveEffectsBen Boeckel2007-11-271-85/+1
| | | | | | | | | [FIX] pokegen.pro error in rpm build target [FIX] EggSpecies not needed (generic species will be used instead) [FIX] StruggleMove not needed (generic will be used instead) [FIX] TypeChart moved back to Pokemod so that Rules are completely Pokemod-neutral git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@29 6ecfd1a5-f3ed-3746-8530-beee90d26b22
* [FIX] classes more usableBen Boeckel2007-11-221-0/+577
[FIX] Matrix class [ADD] pokemod/Rules.{h, cpp} [FIX] coding style cleaned up git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@28 6ecfd1a5-f3ed-3746-8530-beee90d26b22