pacman/lib/include/Inky.hpp

21 lines
355 B
C++
Raw Normal View History

2021-07-28 13:28:36 +00:00
#pragma once
#include "Ghost.hpp"
namespace pacman {
2021-07-28 15:01:22 +00:00
class Inky final : public Ghost {
2021-07-28 13:28:36 +00:00
public:
2021-10-14 10:31:45 +00:00
Inky();
void setTarget(GridPosition pacManPos, Direction pacManDir, GridPosition blinkyPos);
protected:
double speed() const override;
Position initialPosition() const override;
private:
Position scatterTarget() const;
2021-07-28 13:28:36 +00:00
};
} // namespace pacman