location) support. ATM only linear interpolation of the position
is used (i.e. no rotation).
2) To be consistend renamed 'forceRescue' to 'rescue',
'handleExplosion' to 'explode' (and added shootTo for the canon).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11021 178a84e3-b1eb-0310-8ba1-8eac791a3b58
* Make it default to a track not being in reverse to not break
older .grandprix files.
* Make sure a track really _is_ reversible to not give the .grandprix editor
possible extra issues.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11020 178a84e3-b1eb-0310-8ba1-8eac791a3b58
Fixes part of #503 (and #599 completely).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11019 178a84e3-b1eb-0310-8ba1-8eac791a3b58
In light of #28, the GP start order option is probably more at home in a user's
configuration. While at it, also add an option to keep the player always last.
This is more of a challenge for the player than just reverse mode since your
direct opponents _will_ be at the forefront while you have to play catch up.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11017 178a84e3-b1eb-0310-8ba1-8eac791a3b58
Did a GP where points didn't matter (only time) and noticed the
sorting didn't work correctly at the start of a race. Expanded
the operator< to account for time when points are equal.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11016 178a84e3-b1eb-0310-8ba1-8eac791a3b58
Also change the #define in kart_animation.hpp's header in accordance
with coding style and the name change in r11012.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11013 178a84e3-b1eb-0310-8ba1-8eac791a3b58
to have a better name for this class that will also
support a 'canon'/teleporter animation.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11012 178a84e3-b1eb-0310-8ba1-8eac791a3b58
Now a certain number of unique collisions in
a certain amount of time triggers auto rescue
(3 rescues in 3 seconds). This should fix
#576. The old handling is still left in place
(in case that some other rescues are better
caught by that code).
2) Removed unused m_collided variable (and related
stuff).
3) Fixed the 'crashed' callback functions in the
controller (which didn't work anymore, since
parameters were changed: kart called crash(),
but the AI controller only had crashed(Kart*),
so the empty dummy function in controller was
called).
4) Made nearly all virtual functions in Controller
pure, so that problems similar to 3) are
hopefully picked up at compile time.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11011 178a84e3-b1eb-0310-8ba1-8eac791a3b58
Fixed memory leak by only adding the physical body
for exact shapes once.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11009 178a84e3-b1eb-0310-8ba1-8eac791a3b58
The solution isn't perfect. Accomodating for all 20 karts often
made things _too_ small, so I added a (somewhat arbitrary) treshold.
Also correct some doxygen/I18N comments while in that file.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11005 178a84e3-b1eb-0310-8ba1-8eac791a3b58
a kart - track collision: AI karts will now steer towards
the center of the track while being pushed back. While
this does not fully fix#576, it improves the situation
in many cases.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11004 178a84e3-b1eb-0310-8ba1-8eac791a3b58
de-couple kart implementation and its interface. This
significantly reduces compile time when changing kart.hpp,
but is at this stage still work in progress.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10997 178a84e3-b1eb-0310-8ba1-8eac791a3b58
Calling updateHighScores on every click on the reverse checkbox was a bit
optimistic, add a check that there are even highscores to show.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10996 178a84e3-b1eb-0310-8ba1-8eac791a3b58