From aa872f4f35890027e65c930cc9cc603b5db22906 Mon Sep 17 00:00:00 2001 From: salaaad2 Date: Sat, 22 Jan 2022 07:39:54 +0100 Subject: Weapons: amazing job adding another weapon salade ! outstanding --- src/projectile.hpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'src/projectile.hpp') 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 -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 */ -- cgit v1.2.3