camino-devel
[Top][All Lists]
Advanced

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

[Camino-devel] camino/src/common MsgCoder.h MsgCoder.cpp


From: Philippe Fremy
Subject: [Camino-devel] camino/src/common MsgCoder.h MsgCoder.cpp
Date: Tue, 18 Feb 2003 18:13:22 -0500

CVSROOT:        /cvsroot/camino
Module name:    camino
Changes by:     Philippe Fremy <address@hidden> 03/02/18 18:13:22

Modified files:
        src/common     : MsgCoder.h MsgCoder.cpp 

Log message:
        can now send a full tile move

Patches:
Index: camino/src/common/MsgCoder.cpp
diff -u camino/src/common/MsgCoder.cpp:1.9 camino/src/common/MsgCoder.cpp:1.10
--- camino/src/common/MsgCoder.cpp:1.9  Tue Feb 18 16:27:46 2003
+++ camino/src/common/MsgCoder.cpp      Tue Feb 18 18:13:21 2003
@@ -2,7 +2,7 @@
 **
 ** Camino
 **
-** Version : $Id: MsgCoder.cpp,v 1.9 2003/02/18 21:27:46 pfremy Exp $
+** Version : $Id: MsgCoder.cpp,v 1.10 2003/02/18 23:13:21 pfremy Exp $
 **
 ** Author(s) : Philippe Fremy, Pascal Audoux
 ** Creation : 14/01/2003
@@ -96,9 +96,10 @@
        *this << ActivePlayer << 0;
        device()->flush();
 }
-void MsgCoder::sendPlayerPlaysAMove()
+void MsgCoder::sendPlayerPlaysAMove( Tile * tile )
 {
-       *this << PlayerPlaysAMove << 0;
+       *this << PlayerPlaysAMove << 0 << tile->getRotation() 
+                       << tile->getRow() << tile->getCol();
        device()->flush();
 }
 void MsgCoder::sendMoveRejected()
Index: camino/src/common/MsgCoder.h
diff -u camino/src/common/MsgCoder.h:1.9 camino/src/common/MsgCoder.h:1.10
--- camino/src/common/MsgCoder.h:1.9    Tue Feb 18 13:43:20 2003
+++ camino/src/common/MsgCoder.h        Tue Feb 18 18:13:21 2003
@@ -3,7 +3,7 @@
 ** Camino
 **
 **
-** Version : $Id: MsgCoder.h,v 1.9 2003/02/18 18:43:20 pfremy Exp $
+** Version : $Id: MsgCoder.h,v 1.10 2003/02/18 23:13:21 pfremy Exp $
 ** Author(s) : Philippe Fremy, Pascal Audoux
 ** Creation : 14/01/2003
 ** Copyright: Pascal Audoux, Philippe Fremy 2003
@@ -117,7 +117,7 @@
        void sendTeamsComposition();
        void sendTilesForYou();
        void sendActivePlayer();
-       void sendPlayerPlaysAMove();
+       void sendPlayerPlaysAMove( Tile * tile );
        void sendMoveRejected();
        void sendUpdateBoard();
 




reply via email to

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