Pacman Torben Petré
Loading...
Searching...
No Matches
WallModel.h
Go to the documentation of this file.
1#ifndef PACMAN_WALLMODEL_H
2#define PACMAN_WALLMODEL_H
3
4#include "EntityModel.h"
5
6
7namespace logic {
8 class WallModel final : public EntityModel {
9 public:
21 explicit WallModel(float normalizedX, float normalizedY, bool isDoor);
22
23
39 [[nodiscard]] bool isDoor() const { return door; };
40
41 private:
42 bool door;
43 };
44}
45
46
47
48#endif //PACMAN_WALLMODEL_H
EntityModel(float normalizedX, float normalizedY)
Base class for entities.
Definition EntityModel.cpp:7
WallModel(float normalizedX, float normalizedY, bool isDoor)
Constructs a WallModel instance.
Definition WallModel.cpp:6
bool isDoor() const
Returns whether this wall piece is a door. Doors are walls that can be passed through by ghosts under...
Definition WallModel.h:39
Definition Difficulty.h:6