[atlantik-cvs] CVS: kdegames/atlantik/libatlantic atlantic_core.cpp,1.14,1.14.4.1 atlantic_core.h,1.13,1.13.4.1

[email protected]
Newsgroups gmane.comp.kde.devel.atlantik
Message-ID <[email protected]>
Update of /home/kde/kdegames/atlantik/libatlantic
In directory office:/tmp/cvs-serv9323/libatlantic

Modified Files:
      Tag: KDE_3_1_BRANCH
	atlantic_core.cpp atlantic_core.h 
Log Message:
backport: atlanticcore reset method

Index: atlantic_core.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantic/atlantic_core.cpp,v
retrieving revision 1.14
retrieving revision 1.14.4.1
diff -u -d -r1.14 -r1.14.4.1
--- atlantic_core.cpp	23 Oct 2002 15:56:41 -0000	1.14
+++ atlantic_core.cpp	13 Jan 2003 15:14:27 -0000	1.14.4.1
@@ -27,6 +27,25 @@
 	connect(this, SIGNAL(deleteTrade(Trade *)), this, SLOT(slotDeleteTrade(Trade *)));
 }
 
+void AtlanticCore::reset()
+{
+	m_auctions.setAutoDelete(true);
+	m_auctions.clear();
+	m_auctions.setAutoDelete(false);
+	m_estates.setAutoDelete(true);
+	m_estates.clear();
+	m_estates.setAutoDelete(false);
+	m_estateGroups.setAutoDelete(true);
+	m_estateGroups.clear();
+	m_estateGroups.setAutoDelete(false);
+	m_players.setAutoDelete(true);
+	m_players.clear();
+	m_players.setAutoDelete(false);
+	m_trades.setAutoDelete(true);
+	m_trades.clear();
+	m_trades.setAutoDelete(false);
+}
+
 QPtrList<Player> AtlanticCore::players()
 {
 	return m_players;

Index: atlantic_core.h
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantic/atlantic_core.h,v
retrieving revision 1.13
retrieving revision 1.13.4.1
diff -u -d -r1.13 -r1.13.4.1
--- atlantic_core.h	23 Oct 2002 15:56:41 -0000	1.13
+++ atlantic_core.h	13 Jan 2003 15:14:27 -0000	1.13.4.1
@@ -33,6 +33,8 @@
 public:
 	AtlanticCore(QObject *parent, const char *name);
 
+	void reset();
+
 	QPtrList<Player> players();
 	Player *newPlayer();
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.