diff options
Diffstat (limited to 'pacman-c++/gameentity.cpp')
| -rw-r--r-- | pacman-c++/gameentity.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/pacman-c++/gameentity.cpp b/pacman-c++/gameentity.cpp index 8711ebe..9dc72ec 100644 --- a/pacman-c++/gameentity.cpp +++ b/pacman-c++/gameentity.cpp | |||
| @@ -1,6 +1,9 @@ | |||
| 1 | #include "gameentity.h" | 1 | #include "gameentity.h" |
| 2 | 2 | ||
| 3 | GameEntity::GameEntity() | 3 | GameEntity::GameEntity(Color::Color color, QGraphicsItem *parent) |
| 4 | : m_eaten(false) | 4 | : PixmapItem(parent), m_eaten(false), m_color(color) |
| 5 | { | 5 | {} |
| 6 | } | 6 | |
| 7 | GameEntity::GameEntity(QGraphicsItem *parent) | ||
| 8 | : PixmapItem(parent), m_eaten(false), m_color(Color::none) | ||
| 9 | {} | ||
