Pacman Torben Petré
Loading...
Searching...
No Matches
FruitModel.h
Go to the documentation of this file.
1#ifndef FRUITMODEL_H
2#define FRUITMODEL_H
3#include "EntityModel.h"
4
5
6namespace logic {
7
8 class FruitModel final : public CollectibleEntityModel {
9 public:
16 explicit FruitModel(float normalizedX, float normalizedY);
17
23 [[nodiscard]] Events collect() override;
24 };
25}
26
27
28
29
30#endif //FRUITMODEL_H
CollectibleEntityModel(float normalizedX, float normalizedY)
Subclass of EntityModel to be used by collectible entities.
Definition EntityModel.cpp:19
FruitModel(float normalizedX, float normalizedY)
Constructs a Fruit model. Fruit can be eaten by Pacman which initiates the Ghosts frightened mode.
Definition FruitModel.cpp:6
Events collect() override
To be called when Pacman interacts with this Fruit. Will notify its observers.
Definition FruitModel.cpp:9
Definition Difficulty.h:6
Events
Definition Observer.h:14