X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fbadguy%2Fmole_rock.cpp;h=1c05ef0d2f282714386bc32f4ab769f15ea3a6ac;hb=2ad3ecbc14b77d373c796ad04d6389489666cc01;hp=bf918706a9eb8dca8698216925c78646fc0414d1;hpb=38105c22495d9439b30221732dd5d7b89f328a0c;p=supertux.git diff --git a/src/badguy/mole_rock.cpp b/src/badguy/mole_rock.cpp index bf918706a..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"); } @@ -65,8 +70,8 @@ void MoleRock::write(lisp::Writer& writer) { writer.start_list("mole_rock"); - writer.write_float("x", start_position.x); - writer.write_float("y", start_position.y); + writer.write("x", start_position.x); + writer.write("y", start_position.y); writer.end_list("mole_rock"); }