mirror of
https://github.com/dylanbenzi/pacmen-sfml.git
synced 2026-11-27 08:26:59 +00:00
add ghost specific targeting functions
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
#include "Blinky.h"
|
#include "Blinky.h"
|
||||||
|
|
||||||
void Blinky::setTargetTile() {
|
void Blinky::setTargetTile(Entity& pacman) {
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
+1
-1
@@ -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
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
class Clyde : public Ghost {
|
class Clyde : public Ghost {
|
||||||
public:
|
public:
|
||||||
void setTargetTile() override;
|
void setTargetTile(Entity& pacman);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -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
@@ -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
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
class Pinky : public Ghost {
|
class Pinky : public Ghost {
|
||||||
public:
|
public:
|
||||||
void setTargetTile() override;
|
void setTargetTile(Entity& pacman);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user