eliot-dev
[Top][All Lists]
Advanced

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

[Eliot-dev] eliot/game game.h


From: eliot-dev
Subject: [Eliot-dev] eliot/game game.h
Date: Mon, 26 Dec 2005 18:09:52 +0000

CVSROOT:        /cvsroot/eliot
Module name:    eliot
Branch:         
Changes by:     Antoine Fraboulet <address@hidden>      05/12/26 18:09:52

Modified files:
        game           : game.h 

Log message:
        - adding shortcut for getCurrentPlayer()

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/eliot/eliot/game/game.h.diff?tr1=1.22&tr2=1.23&r1=text&r2=text

Patches:
Index: eliot/game/game.h
diff -u eliot/game/game.h:1.22 eliot/game/game.h:1.23
--- eliot/game/game.h:1.22      Sun Nov  6 01:05:06 2005
+++ eliot/game/game.h   Mon Dec 26 18:09:52 2005
@@ -89,6 +89,7 @@
     const Bag&    getBag()   const { return m_bag; }
     const Player& getPlayer(int iNum) const;
     const Turn&   getTurn(int iNum) const;
+    const Player& getCurrentPlayer() const { return getPlayer(currPlayer()); };
 
     /**
      * Saved games handling.




reply via email to

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