mirror of
git://git.savannah.nongnu.org/eliot.git
synced 2024-11-17 07:48:27 +01:00
Simplification
This commit is contained in:
parent
ce71e10aef
commit
f38e884d31
2 changed files with 6 additions and 11 deletions
|
@ -3,7 +3,7 @@
|
|||
* Authors: Antoine Fraboulet <antoine.fraboulet@free.fr>
|
||||
* Olivier Teuliere <ipkiss@via.ecp.fr>
|
||||
*
|
||||
* $Id: pldrack.cpp,v 1.3 2005/04/02 18:05:21 ipkiss Exp $
|
||||
* $Id: pldrack.cpp,v 1.4 2005/04/02 18:21:24 ipkiss 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
|
||||
|
@ -138,7 +138,7 @@ void PlayedRack::setNew(const Rack &iRack)
|
|||
}
|
||||
|
||||
|
||||
bool PlayedRack::checkRack(int iMin)
|
||||
bool PlayedRack::checkRack(int iMin) const
|
||||
{
|
||||
vector<Tile>::const_iterator it;
|
||||
int v = 0;
|
||||
|
@ -160,13 +160,8 @@ bool PlayedRack::checkRack(int iMin)
|
|||
|
||||
void PlayedRack::operator=(const PlayedRack &iOther)
|
||||
{
|
||||
vector<Tile>::const_iterator it;
|
||||
m_oldTiles.clear();
|
||||
for (it = iOther.m_oldTiles.begin(); it != iOther.m_oldTiles.end(); it++)
|
||||
m_oldTiles.push_back(*it);
|
||||
m_newTiles.clear();
|
||||
for (it = iOther.m_newTiles.begin(); it != iOther.m_newTiles.end(); it++)
|
||||
m_newTiles.push_back(*it);
|
||||
m_oldTiles = iOther.m_oldTiles;
|
||||
m_newTiles = iOther.m_newTiles;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* Authors: Antoine Fraboulet <antoine.fraboulet@free.fr>
|
||||
* Olivier Teuliere <ipkiss@via.ecp.fr>
|
||||
*
|
||||
* $Id: pldrack.h,v 1.6 2005/04/02 18:05:21 ipkiss Exp $
|
||||
* $Id: pldrack.h,v 1.7 2005/04/02 18:21:24 ipkiss 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
|
||||
|
@ -63,7 +63,7 @@ public:
|
|||
void getOldTiles(vector<Tile> &oTiles) const;
|
||||
void getAllTiles(vector<Tile> &oTiles) const;
|
||||
|
||||
bool checkRack(int iMin);
|
||||
bool checkRack(int iMin) const;
|
||||
|
||||
void operator=(const PlayedRack &iOther);
|
||||
void toString(string&) const;
|
||||
|
|
Loading…
Reference in a new issue