aboutsummaryrefslogtreecommitdiffstats
path: root/src/projectile.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/projectile.hpp')
-rw-r--r--src/projectile.hpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/projectile.hpp b/src/projectile.hpp
index e25e5f4..3c0a1b6 100644
--- a/src/projectile.hpp
+++ b/src/projectile.hpp
@@ -3,13 +3,11 @@
#include <raylib.h>
-class Projectile {
- Vector2 const& direction;
- Vector2 const& position;
-
- public:
- Projectile(Vector2 const& direction, Vector2 const& position);
- ~Projectile();
-};
+typedef struct Projectile {
+ int posX, posY;
+ Vector2 dir;
+ float radius;
+ float damage;
+} Projectile;
#endif /* PROJECTILE_H */