instead of 2d points and the minimum height.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11125 178a84e3-b1eb-0310-8ba1-8eac791a3b58
bezier curves to allow smooth (i.e. constant speed) travel along
the curve.
This is WIP. Known bug: the kart jumps at the beginning and
end of the cannon animation.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11122 178a84e3-b1eb-0310-8ba1-8eac791a3b58
Needed a check when destroying that the world wasn't being destroyed as well.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11120 178a84e3-b1eb-0310-8ba1-8eac791a3b58
To fix it, I copied what happens in explosion animation: reset the camera to
normal when the animation gets removed (destroyed).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11118 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2) Disabled terrain particles when any kind of kart animation is
shown (and not only when a rescue was done).
3) Minor cosmetic changes.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11114 178a84e3-b1eb-0310-8ba1-8eac791a3b58
Stars object was being created before data was loaded in. Moving it
to Kart::init() instead. (::loadData has to be called first)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11107 178a84e3-b1eb-0310-8ba1-8eac791a3b58
used on the left side of an assignment.
Also fixed coding style and added documentation.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11106 178a84e3-b1eb-0310-8ba1-8eac791a3b58
while being rescued (and similar problems would have been
with rescue while an explosion is shown).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11103 178a84e3-b1eb-0310-8ba1-8eac791a3b58
animation would be called from inside the constructor
of the kart animation, at which time virtual functions
are not available yet.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11102 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2) Only print warning about empty curves in debug mode.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11101 178a84e3-b1eb-0310-8ba1-8eac791a3b58
of irr::core::vector2df (in preparation to support curves).
2) Re-added support for individual start and end time for
each individual curve of an IPO (and not only for all curves
together, which results in incorrect behaviour if not all
individual curves have the same length).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11099 178a84e3-b1eb-0310-8ba1-8eac791a3b58
* Only adding for standard races (normal race + time trial), didn't make as
much sense elsewhere.
* Places still active players at the back of the final result and gives
them penalty time.
* Add button to race pause dialog, temporarily using options_ui.png.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11093 178a84e3-b1eb-0310-8ba1-8eac791a3b58
instead of individually on each IPO (besides removing
redundancy it keeps the IPOs in synch, since it is now
guaranteed that they cycle all at the same time).
2) Started to add length computations for IPOs, but this
code is not yet used.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11082 178a84e3-b1eb-0310-8ba1-8eac791a3b58
added getTerrainInfo() function instead and dynamic_casts.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11081 178a84e3-b1eb-0310-8ba1-8eac791a3b58
requirements, no karts are created yet, so printing the kart id
causes a crash.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11079 178a84e3-b1eb-0310-8ba1-8eac791a3b58
using a fixed object in the kart, now each animation
(rescue, explosion, canon) has its own object and
implementation using a common interface. This
simplifies AbstractKartInterface, and makes it
easier to add new functionailty.
Instead of using: kart->rescue(...), or kart->explode(...)
you use new ExplosionAnimation(kart, ...) etc. Memory
handling is done by the object (and abstract kart).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11070 178a84e3-b1eb-0310-8ba1-8eac791a3b58