Pacman Torben Petré
Loading...
Searching...
No Matches
CoinModel.h
Go to the documentation of this file.
1//
2// Created by toroe on 28/11/2025.
3//
4
5#ifndef PACMAN_COINMODEL_H
6#define PACMAN_COINMODEL_H
7#include "EntityModel.h"
8
9
10namespace logic {
11
12 class CoinModel final : public CollectibleEntityModel {
13 public:
19 explicit CoinModel(float normalizedX, float normalizedY);
20
21
27 [[nodiscard]] Events collect() override;
28 };
29}
30
31
32#endif //PACMAN_COINMODEL_H
CoinModel(float normalizedX, float normalizedY)
Constructs a Coin model. Coins can be picked up by Pacman.
Definition CoinModel.cpp:6
Events collect() override
To be called when Pacman interacts with this Coin. Will notify its observers.
Definition CoinModel.cpp:9
CollectibleEntityModel(float normalizedX, float normalizedY)
Subclass of EntityModel to be used by collectible entities.
Definition EntityModel.cpp:19
Definition Difficulty.h:6
Events
Definition Observer.h:14