2021-07-28 13:28:36 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "Ghost.hpp"
|
|
|
|
|
|
|
|
namespace pacman {
|
|
|
|
|
2021-07-28 15:01:22 +00:00
|
|
|
class Blinky final : public Ghost {
|
2021-07-28 13:28:36 +00:00
|
|
|
public:
|
2021-07-28 14:39:27 +00:00
|
|
|
Blinky();
|
2021-09-23 12:57:53 +00:00
|
|
|
void setTarget(Position pacManPos);
|
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
|