mirror of
https://github.com/dylanbenzi/pacmen-sfml.git
synced 2026-11-27 00:17:01 +00:00
add ghost specific targeting functions
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
||||
#include "Blinky.h"
|
||||
|
||||
void Blinky::setTargetTile() {
|
||||
void Blinky::setTargetTile(Entity& pacman) {
|
||||
|
||||
};
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@
|
||||
|
||||
class Blinky : public Ghost {
|
||||
public:
|
||||
void setTargetTile() override;
|
||||
void setTargetTile(Entity& pacman);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@
|
||||
|
||||
class Clyde : public Ghost {
|
||||
public:
|
||||
void setTargetTile() override;
|
||||
void setTargetTile(Entity& pacman);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
|
||||
class Ghost : public Entity {
|
||||
public:
|
||||
virtual void setTargetTile() = 0;
|
||||
protected:
|
||||
sf::Vector2i targetTile;
|
||||
};
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@
|
||||
|
||||
class Inky : public Ghost {
|
||||
public:
|
||||
void setTargetTile() override;
|
||||
void setTargetTile(Entity& pacman, Entity& blinky);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@
|
||||
|
||||
class Pinky : public Ghost {
|
||||
public:
|
||||
void setTargetTile() override;
|
||||
void setTargetTile(Entity& pacman);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user