diff --git a/src/Makefile.am b/src/Makefile.am index 5bbcb8630..48434e4f5 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -12,6 +12,14 @@ supertuxkart_SOURCES = \ main.cpp \ main_loop.cpp \ main_loop.hpp \ + animations/animation_base.hpp \ + animations/animation_base.cpp \ + animations/animation_manager.cpp \ + animations/animation_manager.hpp \ + animations/billboard_animation.cpp \ + animations/billboard_animation.hpp \ + animations/three_d_animation.cpp \ + animations/three_d_animation.hpp \ audio/music.hpp \ audio/music_information.cpp \ audio/music_information.hpp \ diff --git a/src/ide/vc9/supertuxkart.vcproj b/src/ide/vc9/supertuxkart.vcproj index c752a6b90..f43b51af8 100644 --- a/src/ide/vc9/supertuxkart.vcproj +++ b/src/ide/vc9/supertuxkart.vcproj @@ -701,6 +701,26 @@ > + + + + + + + + + + + + + + + + + + + + getNode("animations"); + if(xml_node) + { + m_animation_manager = new AnimationManager(*xml_node); + } // Set the correct paths m_screenshot = file_manager->getTrackFile(m_screenshot, getIdent()); delete root; diff --git a/src/tracks/track.hpp b/src/tracks/track.hpp index 0e8f23c90..956427397 100644 --- a/src/tracks/track.hpp +++ b/src/tracks/track.hpp @@ -46,6 +46,7 @@ class MovingTexture; class XMLNode; class PhysicalObject; class BezierCurve; +class AnimationManager; class Track { @@ -101,6 +102,9 @@ private: /** List of all bezier curves in the track - for e.g. camera, ... */ std::vector m_all_curves; + /** Animation manager. */ + AnimationManager *m_animation_manager; + void loadCurves(const XMLNode &node); void handleAnimatedTextures(scene::ISceneNode *node, const XMLNode &xml);