summaryrefslogtreecommitdiffstats
path: root/pacman-c++/sceneholder.cpp
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2011-04-18 19:47:34 +0200
committermanuel <manuel@mausz.at>2011-04-18 19:47:34 +0200
commit85b09864f6d489e8c998e9f172d25079d572c602 (patch)
treea6e38da5dc828810b21045d0ac1e4babcf198825 /pacman-c++/sceneholder.cpp
parente373442901064d07791c9739daa380acb1dfbb8c (diff)
downloadfoop-85b09864f6d489e8c998e9f172d25079d572c602.tar.gz
foop-85b09864f6d489e8c998e9f172d25079d572c602.tar.bz2
foop-85b09864f6d489e8c998e9f172d25079d572c602.zip
- 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
Diffstat (limited to 'pacman-c++/sceneholder.cpp')
-rw-r--r--pacman-c++/sceneholder.cpp10
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
200void SceneHolder::setEatingOrder(QList<Color::Color> &order)
201{
202 m_eatingorder = order;
203}
204
205QList<Color::Color> &SceneHolder::eatingOrder()
206{
207 return m_eatingorder;
208}
209
200QPoint SceneHolder::mapPositionToCoord(unsigned int x, unsigned int y) 210QPoint 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);