auria
6e4cee9341
Includes cleanup; especially avoid including in headers, creating implicit dependencies and horrible chains of recursive includes. Avoid iostream when possible because this header is not small
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8749 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-29 19:52:24 +00:00
auria
357af5a27d
More work on 'thou shalt not include irrlicht.h everywhere carelessly'
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8663 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-22 19:29:52 +00:00
auria
c35b36db3a
Fixed memory leak
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8652 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-21 22:35:38 +00:00
hikerstk
3f141e2010
Fixed ticket #134 : challenges would stay in the langauge with which STK
...
was started up, ignoring a language switch via the UI.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8204 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-03 23:34:26 +00:00
auria
205da43747
Fixed locking broken on first launch
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7783 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-02 01:49:18 +00:00
auria
6df90a2a75
Fixed strings
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7743 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-20 23:14:26 +00:00
hikerstk
4acd295a0f
Fixed compiler warning.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7717 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-16 22:03:12 +00:00
hikerstk
6bfedf8327
Cosmetic changes to follow our style guide.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7716 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-16 21:18:02 +00:00
hikerstk
ac956fdcb1
Cosmetic changes: moved minor structs into a class, added &,
...
renamed members to use m_ etc.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7713 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-16 08:45:26 +00:00
hikerstk
7b09afcb24
Added version number to challenges (I replaced all Challenge
...
declarations with ChallengeData - I don't see a good
reason to keep both classes).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7610 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-04 10:53:58 +00:00
hikerstk
4d8b8e5dea
Renamed ptr_vector to PtrVector so that is follows
...
our naming convention, also changed contentsVector
to m_contents_vector, and removed unused add method
(which is using an iterator, which would not work
when using aligned_arrays on windows anyway).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7602 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-03 22:20:53 +00:00
auria
009960fc8a
Clean up call to fribidi, add capabilities to insert values to the _ macro
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7508 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-23 23:39:10 +00:00
mbjornstk
015443f582
Set props as per SVN-CONFIG for .[ch]pp, AKA SVN props clean up day. :)
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7493 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-21 01:54:38 +00:00
magned
18b3c91954
Move all challenge files into one directory. Please tell if any problems occur.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7320 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-07 01:16:15 +00:00
auria
fa8b2a8ed6
Improve documentation of race manager; this is one huge class so having good doxygen docs is important. Also clarify difference between setNumPlayers and setNumLocalPlayers; replace many calls to setNumPlayers with calls to setNumLocalPlayers, since setNumPlayers is called by the network manager already and as such calls to setNumPlayers had no effect (the same method was called again later) and were just confusing
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7236 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-03 20:17:44 +00:00
auria
27d75d2414
Correct code duplication (and FIXMEs) in challenges manager
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7232 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-03 18:55:01 +00:00
auria
74c0c19688
Slightly improved confusing error message
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7210 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-01 21:29:55 +00:00
auria
7a6fbbde51
Nitro target line remains on restart. Important everyone : if you find a sequence of events that causes the nitro line to remain when it shouldn't, tell me, it's hard to think of every possible case
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7201 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-31 02:24:44 +00:00
hikerstk
83a9993f68
Bugfix: difficulty was not tested in non GP challenges.
...
Also accept higher difficulties in challenges.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7128 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-21 06:10:28 +00:00
hikerstk
8ecee44a35
Renamed getConfigFile to getDataFile (since getConfigFile
...
would actually not return a directory under getConfigDir).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7041 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-16 21:59:06 +00:00
auria
65d2fff63c
Fixed more leaks
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6963 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-12 01:25:47 +00:00
auria
5fe492dd70
Write chal;enges file when none is found
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6684 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-21 21:59:49 +00:00
auria
cb78ded2ed
Tidy up logging + other minor fixes
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6647 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-19 17:19:13 +00:00
hikerstk
4959703ec3
Remove compiler warning.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6636 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-18 05:54:14 +00:00
auria
2ceb82e33c
More sanity checks with challenges + avoid crashing at all costs when bad challenges are found
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6634 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-18 02:38:06 +00:00
hikerstk
c13933a792
Added more NoCopy.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5922 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-08 11:39:19 +00:00
auria
803c25475f
Bugfix : don't show challenges that rely on a broken GP
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5408 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-07 17:49:04 +00:00
auria
2810193fb2
Lots of small changes to make the output Doxygen file much more useful
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5249 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-04-23 20:36:13 +00:00
auria
2a06f7b2c0
Cleaned up no more useful TODOs
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5106 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-31 23:22:26 +00:00
auria
fafed60136
Bugfix : adding depend-on="" in a challenge file would cause the challenge to be unplayable
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4961 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-08 18:50:05 +00:00
auria
56ad4bbec9
Removed unused class member that was misleading
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4960 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-08 18:42:28 +00:00
auria
0623cce462
Fixed crash at the end of a GP if there is a challenge associated to it. Also, it is now detected properly when you unlock a feature by winnign a GP (however the chest scene doesn't yet apepar)
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4954 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-07 18:42:04 +00:00
auria
5d127c878c
Removed unused constant, fixed compile error in switch
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4933 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-05 02:41:10 +00:00
auria
bdd985c88a
Can now unlock game modes too. Centralized a couple mode-related stuff to make code cleaner with new changes. Made challenges more robust, fixes a couple crashes that could happen because errors went undetected
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4929 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-05 01:28:23 +00:00
auria
f8257e4165
Minor string fixes
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4897 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-02 01:29:35 +00:00
auria
8d2d755490
Solving a challenge will now actually show the features you unlocked. Adapted the feature unlocked screen to be able to show many unlocked features at once. Show unlocked text in feature screen.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4896 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-02 01:25:29 +00:00
auria
8d0827dcd0
Perform sanity checks when loading challenges
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4872 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-28 01:06:41 +00:00
auria
6f278f6d1e
Started implementing clicking on a challenge to start it
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4870 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-28 00:52:41 +00:00
auria
11b0f5b226
Removed unnecessary includes
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4740 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-16 00:49:05 +00:00
auria
93cc5209f7
Converted sound effects file to XML. Along the way, refactored the audio code to be more flexible. before, when a sound changed, you needed to edit the config file of STK, edit the enum in the header, edit the loader in the .cpp... was annoying. Now you only need to edit the config file.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4728 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-15 19:17:35 +00:00
hikerstk
da3de6d131
Big code refactoring: instead of having auto_kart, player_kart, the karts
...
now use a 'controller' object which is responsible for its steering, e.g.
a default_ai_controller, player_controller etc. This makes it easier to
switch a player kart to use a end-of-race computer controller to drive
the kart once the race is finished (though that's not implemented yet).
I expect some bugs with restarting race, and perhaps end of race
behaviour at this stage.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4714 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-15 00:54:28 +00:00
auria
7a2d4a2a0e
Removed a FIXME that's not relevant anymore
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4713 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-15 00:47:59 +00:00
hikerstk
328373289a
1) Moved access to world object from race_manager to static functions in
...
world.
2) Removed more dujplicated/unnecessary functions from race_manager
(getPlayerKart, getTrack).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4682 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-11 07:11:52 +00:00
hikerstk
c6bf95a64c
Started to remove the various kart lists in various objects.
...
1) Removed getKart from RaceManager.
2) Renamged RaceManager::getNumKarts() to getNumberOfKarts.
This function should only be called when the world
does not exist (or is not yet initialised). In all
other cases world::getNumKarts() should be called.
3) Improved several 'const' functions.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4676 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-10 11:40:33 +00:00
auria
f78001c7b2
Misc nitpicking
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4675 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-10 02:11:56 +00:00
hikerstk
3d7c364eaa
Avoid warning with visual studio.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4492 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-01-19 23:11:09 +00:00
auria
bf40d0191e
Don't abort STK when there's a bogus challenge file (e.g. a LISP file left from 0.6)
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4472 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-01-15 19:01:45 +00:00
hikerstk
cf0e69b48f
Removed #include of kart and player_kart from world.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4424 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-01-10 23:12:29 +00:00
auria
7d1c82d73c
Fixed a lot of translation crap related to XML, hacky challenge files, no GUI, etc...
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4342 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-12-22 21:57:15 +00:00
auria
72c2b7a021
Made explosions better-looking. Fade-out affector still seems buggy; at one point it worked, now no more
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4337 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-12-22 20:03:12 +00:00