X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fbadguy%2Fmole_rock.cpp;h=1c05ef0d2f282714386bc32f4ab769f15ea3a6ac;hb=2ad3ecbc14b77d373c796ad04d6389489666cc01;hp=fb0135eef0ed960184811b743469a32c2ad0abdd;hpb=65a0b6f7ec1123cff959e13e1a4919dc70fe4e85;p=supertux.git diff --git a/src/badguy/mole_rock.cpp b/src/badguy/mole_rock.cpp index fb0135eef..1c05ef0d2 100644 --- a/src/badguy/mole_rock.cpp +++ b/src/badguy/mole_rock.cpp @@ -22,12 +22,17 @@ #include "mole_rock.hpp" +#include "lisp/writer.hpp" +#include "object_factory.hpp" +#include "audio/sound_manager.hpp" +#include "sprite/sprite.hpp" + MoleRock::MoleRock(const lisp::Lisp& reader) : BadGuy(reader, "images/creatures/mole/mole_rock.sprite", LAYER_TILES - 2), parent(0), initial_velocity(Vector(0, -400)) { physic.enable_gravity(true); countMe = false; - sound_manager->preload("sounds/fall.wav"); + sound_manager->preload("sounds/darthit.wav"); sound_manager->preload("sounds/stomp.wav"); } @@ -36,14 +41,14 @@ MoleRock::MoleRock(const Vector& pos, const Vector& velocity, const BadGuy* pare { physic.enable_gravity(true); countMe = false; - sound_manager->preload("sounds/fall.wav"); + sound_manager->preload("sounds/darthit.wav"); sound_manager->preload("sounds/stomp.wav"); } MoleRock::MoleRock(const MoleRock& other) : BadGuy(other), parent(other.parent), initial_velocity(Vector(0, -400)) { - sound_manager->preload("sounds/fall.wav"); + sound_manager->preload("sounds/darthit.wav"); sound_manager->preload("sounds/stomp.wav"); }