diff options
Diffstat (limited to 'src/projectile.hpp')
-rw-r--r-- | src/projectile.hpp | 14 |
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 */ |