eliot-dev
[Top][All Lists]
Advanced

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

[Eliot-dev] Changes to eliot/game/board.cpp [antoine-1]


From: eliot-dev
Subject: [Eliot-dev] Changes to eliot/game/board.cpp [antoine-1]
Date: Sun, 23 Oct 2005 16:58:43 -0400

Index: eliot/game/board.cpp
diff -u eliot/game/board.cpp:1.7.2.1 eliot/game/board.cpp:1.7.2.2
--- eliot/game/board.cpp:1.7.2.1        Sun Oct 23 17:16:23 2005
+++ eliot/game/board.cpp        Sun Oct 23 20:58:19 2005
@@ -3,8 +3,6 @@
  * Authors: Antoine Fraboulet <address@hidden>
  *          Olivier Teuliere  <address@hidden>
  *
- * $Id: board.cpp,v 1.7.2.1 2005/10/23 17:16:23 afrab Exp $
- *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
@@ -160,7 +158,7 @@
 
     row = iRound.getRow();
     col = iRound.getCol();
-    if (iRound.getDir() == HORIZONTAL)
+    if (iRound.getDir() == Coord::HORIZONTAL)
     {
         for (int i = 0; i < iRound.getWordLen(); i++)
         {
@@ -201,7 +199,7 @@
 
     row = iRound.getRow();
     col = iRound.getCol();
-    if (iRound.getDir() == HORIZONTAL)
+    if (iRound.getDir() == Coord::HORIZONTAL)
     {
         for (int i = 0; i < iRound.getWordLen(); i++)
         {
@@ -319,7 +317,7 @@
     if (isolated && !firstturn)
         return 5;
     /* The first word must be horizontal */
-    if (firstturn && iRound.getDir() == VERTICAL)
+    if (firstturn && iRound.getDir() == Coord::VERTICAL)
         return 6;
     /* The first word must cover the H8 square */
     if (firstturn
@@ -339,7 +337,7 @@
 
 int Board::checkRound(Round &iRound, bool firstturn)
 {
-    if (iRound.getDir() == HORIZONTAL)
+    if (iRound.getDir() == Coord::HORIZONTAL)
         return checkRoundAux(m_tilesRow, m_crossRow,
                              m_pointRow, m_jokerRow,
                              iRound, firstturn);
@@ -374,7 +372,7 @@
 
     row = iRound.getRow();
     col = iRound.getCol();
-    if (iRound.getDir() == HORIZONTAL)
+    if (iRound.getDir() == Coord::HORIZONTAL)
     {
         for (int i = 0; i < iRound.getWordLen(); i++)
         {




reply via email to

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