camino-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Camino-devel] camino/src/client Game.h Game.cpp


From: Pascal Audoux
Subject: [Camino-devel] camino/src/client Game.h Game.cpp
Date: Thu, 06 Feb 2003 15:33:59 -0500

CVSROOT:        /cvsroot/camino
Module name:    camino
Changes by:     Pascal Audoux <address@hidden>  03/02/06 15:33:59

Modified files:
        src/client     : Game.h Game.cpp 

Log message:
        slot for managing clicks on board

Patches:
Index: camino/src/client/Game.cpp
diff -u camino/src/client/Game.cpp:1.11 camino/src/client/Game.cpp:1.12
--- camino/src/client/Game.cpp:1.11     Thu Jan 30 16:44:11 2003
+++ camino/src/client/Game.cpp  Thu Feb  6 15:33:59 2003
@@ -2,7 +2,7 @@
 **
 ** Camino
 **
-** Version : $Id: Game.cpp,v 1.11 2003/01/30 21:44:11 Audoux Exp $
+** Version : $Id: Game.cpp,v 1.12 2003/02/06 20:33:59 Audoux Exp $
 **
 ** Author(s) : Philippe Fremy, Pascal Audoux
 ** Creation : 15/01/2003
@@ -27,6 +27,7 @@
 #include <qlayout.h>
 
 // application specific include files
+#include "common/log.h"
 #include "Game.h"
 #include "client/ActionList.h"
 #include "client/BoardCanvas.h"
@@ -69,6 +70,8 @@
        connect( _actions, SIGNAL( sig_complete() ), SLOT( slot_complete() ) );
        connect( _actions, SIGNAL( sig_trash() ), SLOT( slot_trash() ) );
        connect( _actions, SIGNAL( sig_undo() ), SLOT( slot_undo() ) );
+
+       connect( boardView, SIGNAL( sig_tile( int, int ) ), SLOT( slot_tile( 
int, int ) ) );
 }
 
 Game::~Game()
@@ -130,5 +133,10 @@
 void Game::slot_undo()
 {
        _engine->sendUndo();
+}
+
+void Game::slot_tile( int row, int col )
+{
+       printf( "%d %d\n", row, col );
 }
 
Index: camino/src/client/Game.h
diff -u camino/src/client/Game.h:1.9 camino/src/client/Game.h:1.10
--- camino/src/client/Game.h:1.9        Thu Jan 30 16:44:11 2003
+++ camino/src/client/Game.h    Thu Feb  6 15:33:59 2003
@@ -5,7 +5,7 @@
 ** Game.h
 ** Main widget of the game
 **
-** Version : $Id: Game.h,v 1.9 2003/01/30 21:44:11 Audoux Exp $
+** Version : $Id: Game.h,v 1.10 2003/02/06 20:33:59 Audoux Exp $
 ** Author(s) : Philippe Fremy, Pascal Audoux
 ** Creation : 15/01/2003
 ** Copyright: Pascal Audoux, Philippe Fremy 2003
@@ -67,6 +67,8 @@
        void slot_serverMessage( const QString & msg );
 
        void slot_tile( int tile );
+
+       void slot_tile( int row, int col );
 
        void slot_play();
        void slot_complete();




reply via email to

[Prev in Thread] Current Thread [Next in Thread]