add ghost specific targeting functions

This commit is contained in:
2025-11-13 14:48:35 -05:00
parent 0bbe00fe01
commit 20eb36945b
6 changed files with 5 additions and 6 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
#include "Blinky.h"
void Blinky::setTargetTile() {
void Blinky::setTargetTile(Entity& pacman) {
};
+1 -1
View File
@@ -5,7 +5,7 @@
class Blinky : public Ghost {
public:
void setTargetTile() override;
void setTargetTile(Entity& pacman);
};
#endif
+1 -1
View File
@@ -5,7 +5,7 @@
class Clyde : public Ghost {
public:
void setTargetTile() override;
void setTargetTile(Entity& pacman);
};
#endif
-1
View File
@@ -6,7 +6,6 @@
class Ghost : public Entity {
public:
virtual void setTargetTile() = 0;
protected:
sf::Vector2i targetTile;
};
+1 -1
View File
@@ -5,7 +5,7 @@
class Inky : public Ghost {
public:
void setTargetTile() override;
void setTargetTile(Entity& pacman, Entity& blinky);
};
#endif
+1 -1
View File
@@ -5,7 +5,7 @@
class Pinky : public Ghost {
public:
void setTargetTile() override;
void setTargetTile(Entity& pacman);
};
#endif