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" #include "Blinky.h"
void Blinky::setTargetTile() { void Blinky::setTargetTile(Entity& pacman) {
}; };
+1 -1
View File
@@ -5,7 +5,7 @@
class Blinky : public Ghost { class Blinky : public Ghost {
public: public:
void setTargetTile() override; void setTargetTile(Entity& pacman);
}; };
#endif #endif
+1 -1
View File
@@ -5,7 +5,7 @@
class Clyde : public Ghost { class Clyde : public Ghost {
public: public:
void setTargetTile() override; void setTargetTile(Entity& pacman);
}; };
#endif #endif
-1
View File
@@ -6,7 +6,6 @@
class Ghost : public Entity { class Ghost : public Entity {
public: public:
virtual void setTargetTile() = 0;
protected: protected:
sf::Vector2i targetTile; sf::Vector2i targetTile;
}; };
+1 -1
View File
@@ -5,7 +5,7 @@
class Inky : public Ghost { class Inky : public Ghost {
public: public:
void setTargetTile() override; void setTargetTile(Entity& pacman, Entity& blinky);
}; };
#endif #endif
+1 -1
View File
@@ -5,7 +5,7 @@
class Pinky : public Ghost { class Pinky : public Ghost {
public: public:
void setTargetTile() override; void setTargetTile(Entity& pacman);
}; };
#endif #endif