[atlantik-cvs] CVS: kdegames/atlantik/libatlantic player.cpp,1.9.8.1,1.9.8.2 player.h,1.7,1.7.8.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-serv9063/libatlantic

Modified Files:
      Tag: KDE_3_1_BRANCH
	player.cpp player.h 
Log Message:
backport: support playerupdate host attr

Index: player.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantic/player.cpp,v
retrieving revision 1.9.8.1
retrieving revision 1.9.8.2
diff -u -d -r1.9.8.1 -r1.9.8.2
--- player.cpp	27 Dec 2002 01:37:20 -0000	1.9.8.1
+++ player.cpp	13 Jan 2003 15:01:08 -0000	1.9.8.2
@@ -23,6 +23,7 @@
 	m_location = 0;
 	m_money = 0;
 	m_name = "";
+	m_host = "";
 	m_changed = m_isSelf = false;
 	m_hasTurn = m_canRoll = m_canBuy = m_inJail = false;
 }
@@ -77,6 +78,15 @@
 	if (m_name != _n)
 	{
 		m_name = _n;
+		m_changed = true;
+	}
+}
+
+void Player::setHost(const QString &host)
+{
+	if (m_host != host)
+	{
+		m_host = host;
 		m_changed = true;
 	}
 }

Index: player.h
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantic/player.h,v
retrieving revision 1.7
retrieving revision 1.7.8.1
diff -u -d -r1.7 -r1.7.8.1
--- player.h	23 Apr 2002 17:02:55 -0000	1.7
+++ player.h	13 Jan 2003 15:01:08 -0000	1.7.8.1
@@ -43,6 +43,8 @@
 	bool inJail() const { return m_inJail; }
 	void setName(const QString _n);
 	QString name() const { return m_name; }
+	void setHost(const QString &host);
+	QString host() const { return m_host; }
 	void setMoney(unsigned int _m);
 	unsigned int money() const { return m_money; }
 	void update(bool force = false);
@@ -54,7 +56,7 @@
 	bool m_changed, m_isSelf;
 	bool m_hasTurn, m_canRoll, m_canBuy, m_inJail;
 	unsigned int m_money;
-	QString m_name;
+	QString m_name, m_host;
 	Estate *m_location;
 };
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.