diff options
Diffstat (limited to 'pacman-c++/sceneholder.cpp')
| -rw-r--r-- | pacman-c++/sceneholder.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pacman-c++/sceneholder.cpp b/pacman-c++/sceneholder.cpp index 578b0df..dace711 100644 --- a/pacman-c++/sceneholder.cpp +++ b/pacman-c++/sceneholder.cpp | |||
| @@ -197,6 +197,16 @@ void SceneHolder::decrementPoints() | |||
| 197 | --m_pointsLeft; | 197 | --m_pointsLeft; |
| 198 | } | 198 | } |
| 199 | 199 | ||
| 200 | void SceneHolder::setEatingOrder(QList<Color::Color> &order) | ||
| 201 | { | ||
| 202 | m_eatingorder = order; | ||
| 203 | } | ||
| 204 | |||
| 205 | QList<Color::Color> &SceneHolder::eatingOrder() | ||
| 206 | { | ||
| 207 | return m_eatingorder; | ||
| 208 | } | ||
| 209 | |||
| 200 | QPoint SceneHolder::mapPositionToCoord(unsigned int x, unsigned int y) | 210 | QPoint SceneHolder::mapPositionToCoord(unsigned int x, unsigned int y) |
| 201 | { | 211 | { |
| 202 | return QPoint(x * Constants::field_size.width, y * Constants::field_size.height); | 212 | return QPoint(x * Constants::field_size.width, y * Constants::field_size.height); |
