[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Camino-devel] camino/src/client Game-recv.cpp
From: |
Pascal Audoux |
Subject: |
[Camino-devel] camino/src/client Game-recv.cpp |
Date: |
Sat, 08 Mar 2003 15:17:26 -0500 |
CVSROOT: /cvsroot/camino
Module name: camino
Changes by: Pascal Audoux <address@hidden> 03/03/08 15:17:26
Modified files:
src/client : Game-recv.cpp
Log message:
update state of client
Patches:
Index: camino/src/client/Game-recv.cpp
diff -u camino/src/client/Game-recv.cpp:1.1 camino/src/client/Game-recv.cpp:1.2
--- camino/src/client/Game-recv.cpp:1.1 Tue Mar 4 16:29:35 2003
+++ camino/src/client/Game-recv.cpp Sat Mar 8 15:17:25 2003
@@ -2,7 +2,7 @@
**
** Camino
**
-** Version : $Id: Game-recv.cpp,v 1.1 2003/03/04 21:29:35 Audoux Exp $
+** Version : $Id: Game-recv.cpp,v 1.2 2003/03/08 20:17:25 Audoux Exp $
**
** Author(s) : Philippe Fremy, Pascal Audoux
** Creation : 04/03/2003
@@ -76,9 +76,17 @@
if (_playerName == playerName) {
qDebug("Game::recvActivePlayer - player activated");
_playerActive = true;
+ if( ( _state == StateNotConnected )
+ || ( _state == StateWaitStart )
+ || ( _state == StateWaitTurn ) ) {
+ _state = StatePlay;
+ }
// do something
} else {
_playerActive = false;
+ if( _state == StatePlay ) {
+ _state = StateWaitTurn;
+ }
}
displayServerMsg( playerName + " is now the active player" );
}
- [Camino-devel] camino/src/client Game-recv.cpp,
Pascal Audoux <=