From 65195fdab6262d31056c74f922376de3b009943c Mon Sep 17 00:00:00 2001 From: manuel Date: Sun, 17 Apr 2011 19:19:56 +0200 Subject: a bigger commit again: - fix pacman movement. now more like real pacman (again). e.g. if you press a direction-key again: the pacman will move in that direction as soon as possible and no repeated keypress is needed - add random colorized blocks (without dieing yet) - add cmdline-option: --nocolorblocks to disable that --- pacman-c++/server.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pacman-c++/server.h') diff --git a/pacman-c++/server.h b/pacman-c++/server.h index 0f2879d..a50cfe3 100644 --- a/pacman-c++/server.h +++ b/pacman-c++/server.h @@ -35,6 +35,7 @@ protected: void sendUpdate(Transmission::map_t map); QPoint addRandomPoint(Transmission::map_t map, Transmission::field_t type = Transmission::bonuspoint); + void colorizeBlocks(Transmission::map_t map); protected: QMap m_clientConnections; @@ -45,6 +46,11 @@ protected: /* allocate as member variable as this packet is large and used often */ ProtoBuf::MapUpdate m_updatepacket; + /* list of blocks */ + QList m_blocks; + /* currently colored blocks + tickcount before they will turn to non-colored back */ + QMap m_coloredBlocks; + QHostAddress m_bindaddress; unsigned int m_port; unsigned int m_maxplayers; -- cgit v1.2.3