2021-07-28 13:28:36 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "Ghost.hpp"
|
|
|
|
|
|
|
|
namespace pacman {
|
|
|
|
|
2021-07-28 15:01:22 +00:00
|
|
|
class Pinky final : public Ghost {
|
2021-07-28 13:28:36 +00:00
|
|
|
public:
|
2021-10-14 10:31:45 +00:00
|
|
|
Pinky();
|
2021-09-23 12:57:53 +00:00
|
|
|
void setTarget(GridPosition pacManPos, Direction pacManDir);
|
2021-07-28 14:39:27 +00:00
|
|
|
|
|
|
|
protected:
|
2021-09-23 12:57:53 +00:00
|
|
|
double speed() const override;
|
2021-07-28 14:20:19 +00:00
|
|
|
Position initialPosition() const override;
|
2021-07-28 14:39:27 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
Position scatterTarget() const;
|
2021-07-28 13:28:36 +00:00
|
|
|
};
|
|
|
|
|
2021-07-28 14:20:19 +00:00
|
|
|
} // namespace pacman
|