From 85b09864f6d489e8c998e9f172d25079d572c602 Mon Sep 17 00:00:00 2001 From: manuel Date: Mon, 18 Apr 2011 19:47:34 +0200 Subject: - add actor.canEat(other) to check if actor can eat other (note: that doesn't mean that other can eat actor!!) - server now generated and sends the colorlist to the server in the first map update packet - add a better AI --- pacman-c++/sceneholder.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'pacman-c++/sceneholder.cpp') 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() --m_pointsLeft; } +void SceneHolder::setEatingOrder(QList &order) +{ + m_eatingorder = order; +} + +QList &SceneHolder::eatingOrder() +{ + return m_eatingorder; +} + QPoint SceneHolder::mapPositionToCoord(unsigned int x, unsigned int y) { return QPoint(x * Constants::field_size.width, y * Constants::field_size.height); -- cgit v1.2.3