[atlantik-cvs] CVS: kdegames/atlantik/libatlantikui board.cpp,1.107,1.108 board.h,1.63,1.64
[email protected] Mon, 9 Jun 2003 20:24:30 +0200 (CEST)
Newsgroups
gmane.comp.kde.devel.atlantik
Message-ID
<[email protected] >
Update of /home/kde/kdegames/atlantik/libatlantikui
In directory office:/tmp/cvs-serv29666/libatlantikui
Modified Files:
board.cpp board.h
Log Message:
don't delete board but hide and reset
Index: board.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantikui/board.cpp,v
retrieving revision 1.107
retrieving revision 1.108
diff -u -d -r1.107 -r1.108
--- board.cpp 28 May 2003 03:29:34 -0000 1.107
+++ board.cpp 9 Jun 2003 18:24:27 -0000 1.108
@@ -80,6 +80,15 @@
AtlantikBoard::~AtlantikBoard()
{
+ reset();
+}
+
+void AtlantikBoard::reset()
+{
+ m_tokens.clear();
+ m_estateViews.clear();
+ m_displayQueue.clear();
+ m_lastServerDisplay = 0;
}
void AtlantikBoard::setViewProperties(bool indicateUnowned, bool highliteUnowned, bool darkenMortgaged, bool quartzEffects, bool animateTokens)
Index: board.h
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantikui/board.h,v
retrieving revision 1.63
retrieving revision 1.64
diff -u -d -r1.63 -r1.64
--- board.h 31 Jan 2003 05:44:17 -0000 1.63
+++ board.h 9 Jun 2003 18:24:28 -0000 1.64
@@ -41,6 +41,7 @@
AtlantikBoard(AtlanticCore *atlanticCore, int maxEstates, DisplayMode mode, QWidget *parent, const char *name=0);
~AtlantikBoard();
+ void reset();
void setViewProperties(bool indicateUnowned, bool highliteUnowned, bool darkenMortgaged, bool quartzEffects, bool animateTokens);
int heightForWidth(int);
@@ -56,10 +57,10 @@
public slots:
void slotMoveToken();
void slotResizeAftermath();
+ void displayDefault();
private slots:
void playerChanged(Player *player);
- void displayDefault();
void displayButton(QString command, QString caption, bool enabled);
void prependEstateDetails(Estate *);
void insertDetails(QString text, bool clearText, bool clearButtons, Estate *estate = 0);