eliot-dev
[Top][All Lists]
Advanced

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

[Eliot-dev] Changes to eliot/game/training.h [antoine-1]


From: eliot-dev
Subject: [Eliot-dev] Changes to eliot/game/training.h [antoine-1]
Date: Sun, 23 Oct 2005 16:59:19 -0400

Index: eliot/game/training.h
diff -u eliot/game/training.h:1.10.2.2 eliot/game/training.h:1.10.2.3
--- eliot/game/training.h:1.10.2.2      Sun Oct 23 18:38:18 2005
+++ eliot/game/training.h       Sun Oct 23 20:58:20 2005
@@ -18,8 +18,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  *****************************************************************************/
 
-/* $Id: training.h,v 1.10.2.2 2005/10/23 18:38:18 afrab Exp $ */
-
 #ifndef _TRAINING_H_
 #define _TRAINING_H_
 
@@ -46,16 +44,17 @@
     /*************************
      * Game handling
      *************************/
-    
-    /// play a round on the board
-    virtual int play(int player, Round& round);
+
+    /// Play a round on the board
+    virtual int play(int player, Round& oRound);
     virtual int back();
+    using Game::back;
 
-    /// search for the best possibilities
+    /// Search for the best possibilities
     void search();
     const Results& getResults() const { return m_results; }
 
-    /// play result 'n'
+    /// Play result 'n'
     int  playResult(int);
 
     /// Place a temporary word on the board for preview purpose
@@ -65,9 +64,9 @@
     void removeTestPlay();
 
     /// Get the temporary word
-    std::string getTestPlayWord();
-    
-    int setRack(PlayedRack::set_rack_mode mode, bool check, std::string rack);
+    std::string getTestPlayWord() const;
+
+    int setRack(PlayedRack::set_rack_mode mode, bool check, const std::string& 
rack);
 
 private:
     // Private constructor and destructor to force using the GameFactory class
@@ -81,7 +80,7 @@
 
 #endif /* _TRAINING_H_ */
 
-
+
 /// Local Variables:
 /// mode: hs-minor
 /// c-basic-offset: 4




reply via email to

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