From 4f88849caf6533d965849952c9ea153fd8c518c5 Mon Sep 17 00:00:00 2001 From: totycro Date: Sat, 9 Apr 2011 19:20:13 +0200 Subject: first version of multiplayer --- pacman-c++/mainwidget.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pacman-c++/mainwidget.h') diff --git a/pacman-c++/mainwidget.h b/pacman-c++/mainwidget.h index 6adc876..eaa8be0 100644 --- a/pacman-c++/mainwidget.h +++ b/pacman-c++/mainwidget.h @@ -6,6 +6,7 @@ #include "pixmapitem.h" #include #include +#include class Actor; @@ -29,6 +30,7 @@ private: void createMenu(); void updateScore(); bool isRunning(); + bool connectToServer(); private slots: void startGame(); @@ -47,6 +49,8 @@ private: // game running bool m_running; + + QTcpSocket *m_socket; }; #endif // MAINWIDGET_H -- cgit v1.2.3