[Added] Enemy player detection and shooting, [Moved] Lots of entity code to cpp files to avoid circular dependencies

This commit is contained in:
Ninjaws
2024-12-17 20:08:35 +01:00
parent e8c78770b5
commit 2400b0500a
21 changed files with 820 additions and 701 deletions
+18 -16
View File
@@ -1,20 +1,22 @@
// #ifndef EBULLET_H
// #define EBULLET_H
#ifndef EBULLET_H
#define EBULLET_H
// #include "Bullet.h"
// #include <iostream>
#include "services/AssetService.h"
#include "entities/Bullet.h"
#include <cstdint>
// class EBullet : public Bullet {
// public:
class EBullet : public Bullet
{
public:
EBullet() {}
EBullet(Vector2 pos, float angle) : Bullet(pos, angle)
{
this->color = RED;
}
// EBullet() {}
// ~EBullet() {}
private:
uint8_t damage = 1;
void objCollision() override;
};
// void detectCollision() override {
// std::cout << "Enemy bullets" << std::endl;
// }
// private:
// };
// #endif
#endif