eliot-dev
[Top][All Lists]
Advanced

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

[Eliot-dev] Changes to eliot/game/round.h


From: eliot-dev
Subject: [Eliot-dev] Changes to eliot/game/round.h
Date: Sat, 05 Nov 2005 08:57:03 -0500

Index: eliot/game/round.h
diff -u eliot/game/round.h:1.8 eliot/game/round.h:1.9
--- eliot/game/round.h:1.8      Sat Nov  5 11:01:58 2005
+++ eliot/game/round.h  Sat Nov  5 13:56:59 2005
@@ -71,18 +71,14 @@
     bool isPlayedFromRack(int iIndex) const;
     const Tile& getTile  (int iIndex) const;
     int getWordLen() const;
-    int getPoints()  const      { return m_points; }
-    int getBonus()   const      { return m_bonus; }
+    int getPoints()  const        { return m_points; }
+    int getBonus()   const        { return m_bonus; }
 
     /*************************
      * Coordinates
      *************************/
-    int getRow() const                 { return m_coord.getRow(); }
-    int getCol() const                 { return m_coord.getCol(); }
-    Coord::Direction getDir() const    { return m_coord.getDir(); }
-    void setRow(int iRow)              { m_coord.setRow(iRow); }
-    void setCol(int iCol)              { m_coord.setCol(iCol); }
-    void setDir(Coord::Direction iDir) { m_coord.setDir(iDir); }
+    const Coord& getCoord() const { return m_coord; }
+    Coord& accessCoord()          { return m_coord; }
 
 private:
     vector<Tile> m_word;




reply via email to

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