camino-devel
[Top][All Lists]
Advanced

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

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


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

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

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

Log message:
        can specify type in constructor

Patches:
Index: camino/src/common/Tile.cpp
diff -u camino/src/common/Tile.cpp:1.3 camino/src/common/Tile.cpp:1.4
--- camino/src/common/Tile.cpp:1.3      Sun Jan 26 04:48:05 2003
+++ camino/src/common/Tile.cpp  Tue Feb 18 18:12:07 2003
@@ -2,7 +2,7 @@
 **
 ** Camino
 **
-** Version : $Id: Tile.cpp,v 1.3 2003/01/26 09:48:05 Audoux Exp $
+** Version : $Id: Tile.cpp,v 1.4 2003/02/18 23:12:07 pfremy Exp $
 **
 ** Author(s) : Philippe Fremy, Pascal Audoux
 ** Creation : 14/01/2003
@@ -28,11 +28,11 @@
 #include "Tile.h"
 
 /** add comments here */
-Tile::Tile()
+Tile::Tile( TileType t )
 {
        _row = -1;
        _col = -1;
-       _type = TILE_UNKNOWN;
+       _type = t;
        _rotation = 0;
        _isRotationKnown = false;
 }
Index: camino/src/common/Tile.h
diff -u camino/src/common/Tile.h:1.3 camino/src/common/Tile.h:1.4
--- camino/src/common/Tile.h:1.3        Sun Jan 26 04:48:05 2003
+++ camino/src/common/Tile.h    Tue Feb 18 18:12:07 2003
@@ -5,7 +5,7 @@
 ** Tile.h
 ** Manage a tile on the board game
 **
-** Version : $Id: Tile.h,v 1.3 2003/01/26 09:48:05 Audoux Exp $
+** Version : $Id: Tile.h,v 1.4 2003/02/18 23:12:07 pfremy Exp $
 ** Author(s) : Philippe Fremy, Pascal Audoux
 ** Creation : 16/01/2003
 ** Copyright: Pascal Audoux, Philippe Fremy 2003
@@ -43,9 +43,6 @@
 {
 
 public:
-       /** Constructor */
-       Tile();
-
        enum TileType {
                TILE_UNKNOWN,
                TILE_ROAD_STRAIGHT,
@@ -63,6 +60,10 @@
                TILE_RIVER_TURN,
                TILE_PLAIN
        };
+
+       /** Constructor */
+       Tile( TileType t = TILE_UNKNOWN);
+
 
        TileType getType() { return _type; }
 




reply via email to

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