]> git.localhorst.tv Git - blank.git/blobdiff - src/ui/InteractiveManipulator.hpp
split input handling
[blank.git] / src / ui / InteractiveManipulator.hpp
diff --git a/src/ui/InteractiveManipulator.hpp b/src/ui/InteractiveManipulator.hpp
new file mode 100644 (file)
index 0000000..6975d9e
--- /dev/null
@@ -0,0 +1,33 @@
+#ifndef BLANK_UI_INTERACTIVEMANIPULATOR_HPP_
+#define BLANK_UI_INTERACTIVEMANIPULATOR_HPP_
+
+#include "../world/WorldManipulator.hpp"
+
+#include "../audio/Sound.hpp"
+
+
+namespace blank {
+
+class Audio;
+class Entity;
+class Environment;
+
+class InteractiveManipulator
+: public WorldManipulator {
+
+public:
+       explicit InteractiveManipulator(Environment &, Entity &);
+
+       void SetBlock(Chunk &, int, const Block &) override;
+
+private:
+       Entity &player;
+       Audio &audio;
+       Sound place_sound;
+       Sound remove_sound;
+
+};
+
+}
+
+#endif