[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Camino-devel] camino/src/client Game.cpp Game.h
From: |
Pascal Audoux |
Subject: |
[Camino-devel] camino/src/client Game.cpp Game.h |
Date: |
Wed, 29 Jan 2003 17:22:48 -0500 |
CVSROOT: /cvsroot/camino
Module name: camino
Changes by: Pascal Audoux <address@hidden> 03/01/29 17:22:48
Modified files:
src/client : Game.cpp Game.h
Log message:
handles signals from TilePresentation and ActionList*
(especially 'undo')
Patches:
Index: camino/src/client/Game.cpp
diff -u camino/src/client/Game.cpp:1.9 camino/src/client/Game.cpp:1.10
--- camino/src/client/Game.cpp:1.9 Wed Jan 29 14:42:03 2003
+++ camino/src/client/Game.cpp Wed Jan 29 17:22:47 2003
@@ -2,7 +2,7 @@
**
** Camino
**
-** Version : $Id: Game.cpp,v 1.9 2003/01/29 19:42:03 Audoux Exp $
+** Version : $Id: Game.cpp,v 1.10 2003/01/29 22:22:47 Audoux Exp $
**
** Author(s) : Philippe Fremy, Pascal Audoux
** Creation : 15/01/2003
@@ -62,6 +62,12 @@
connect( _chat, SIGNAL( sig_message( const QString & ) ), SLOT(
slot_message( const QString & ) ) );
connect( _engine, SIGNAL( sig_message( const QString & ) ), SLOT(
slot_serverMessage( const QString & ) ) );
+
+ connect( _presentation, SIGNAL( sig_tile( int ) ), SLOT( slot_tile( int
) ) );
+ connect( _actions, SIGNAL( sig_play() ), SLOT( slot_play() ) );
+ connect( _actions, SIGNAL( sig_complete() ), SLOT( slot_complete() ) );
+ connect( _actions, SIGNAL( sig_trash() ), SLOT( slot_trash() ) );
+ connect( _actions, SIGNAL( sig_undo() ), SLOT( slot_undo() ) );
}
Game::~Game()
@@ -95,4 +101,28 @@
_chat->newMessage( msg );
}
+void Game::slot_tile( int tile )
+{
+
+}
+
+void Game::slot_play()
+{
+
+}
+
+void Game::slot_complete()
+{
+
+}
+
+void Game::slot_trash()
+{
+
+}
+
+void Game::slot_undo()
+{
+ _engine->sendUndo();
+}
Index: camino/src/client/Game.h
diff -u camino/src/client/Game.h:1.7 camino/src/client/Game.h:1.8
--- camino/src/client/Game.h:1.7 Wed Jan 29 14:42:03 2003
+++ camino/src/client/Game.h Wed Jan 29 17:22:47 2003
@@ -5,7 +5,7 @@
** Game.h
** Main widget of the game
**
-** Version : $Id: Game.h,v 1.7 2003/01/29 19:42:03 Audoux Exp $
+** Version : $Id: Game.h,v 1.8 2003/01/29 22:22:47 Audoux Exp $
** Author(s) : Philippe Fremy, Pascal Audoux
** Creation : 15/01/2003
** Copyright: Pascal Audoux, Philippe Fremy 2003
@@ -63,6 +63,13 @@
void slot_message( const QString & msg );
void slot_serverMessage( const QString & msg );
+
+ void slot_tile( int tile );
+
+ void slot_play();
+ void slot_complete();
+ void slot_trash();
+ void slot_undo();
protected:
ActionList * _actions;