aboutsummaryrefslogtreecommitdiff
path: root/Simulation/Pellet.hpp
diff options
context:
space:
mode:
authorPaul Oliver <contact@pauloliver.dev>2024-02-29 19:27:35 +0100
committerPaul Oliver <contact@pauloliver.dev>2024-02-29 19:27:49 +0100
commit17909d029c6a8872b2fddf4e171d7925bbbe9c5c (patch)
treecbb08af84cd68d24acc362d593a2048b0fa79689 /Simulation/Pellet.hpp
Initial commitHEADmaster
Diffstat (limited to 'Simulation/Pellet.hpp')
-rw-r--r--Simulation/Pellet.hpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/Simulation/Pellet.hpp b/Simulation/Pellet.hpp
new file mode 100644
index 0000000..f3c31f8
--- /dev/null
+++ b/Simulation/Pellet.hpp
@@ -0,0 +1,20 @@
+#ifndef __PELLET_HPP__
+#define __PELLET_HPP__
+
+#include "Entity.hpp"
+
+class Pellet : public Entity
+{
+public:
+ void startup(SimBase *sim);
+ void update();
+ void draw();
+
+ bool isCreated() const { return body ? true : false; }
+ bool toBeDestroyed = false;
+
+private:
+ void destroy();
+};
+
+#endif // __PELLET_HPP__