summaryrefslogtreecommitdiff
path: root/game/scenary/plant.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-04-10 14:33:54 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2023-04-10 14:33:54 +0100
commite428f2145ac3b05345d42e3518a22d429ad0970e (patch)
treee5b7cf88e9978413ff701467242a43ac4d83bdd3 /game/scenary/plant.h
parentoperator* collection helper reserves target space when possible (diff)
downloadilt-e428f2145ac3b05345d42e3518a22d429ad0970e.tar.bz2
ilt-e428f2145ac3b05345d42e3518a22d429ad0970e.tar.xz
ilt-e428f2145ac3b05345d42e3518a22d429ad0970e.zip
Add the plant/foliage game item concepts
Diffstat (limited to 'game/scenary/plant.h')
-rw-r--r--game/scenary/plant.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/game/scenary/plant.h b/game/scenary/plant.h
new file mode 100644
index 0000000..7f964eb
--- /dev/null
+++ b/game/scenary/plant.h
@@ -0,0 +1,16 @@
+#pragma once
+
+#include "foliage.h"
+#include "gfx/renderable.h"
+#include "location.hpp"
+
+class Plant : public Renderable {
+ std::shared_ptr<const Foliage> type;
+ Location position;
+
+ void render(const SceneShader & shader) const override;
+ void shadows(const ShadowMapper & shadowMapper) const override;
+
+public:
+ Plant(std::shared_ptr<const Foliage> type, Location position) : type(std::move(type)), position(position) { }
+};