[atlantik-cvs] CVS: kdegames/atlantik/libatlantic player.cpp,1.13,1.14 player.h,1.10,1.11

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

Modified Files:
	player.cpp player.h 
Log Message:
add host attr to player object

Index: player.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantic/player.cpp,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- player.cpp	29 Nov 2002 04:27:31 -0000	1.13
+++ player.cpp	19 Dec 2002 20:00:03 -0000	1.14
@@ -22,6 +22,7 @@
 {
 	m_id = playerId;
 	m_name = "";
+	m_host = "";
 	m_image = "";
 	m_location = m_destination = 0;
 	m_money = 0;
@@ -88,6 +89,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.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- player.h	29 Nov 2002 04:27:31 -0000	1.10
+++ player.h	19 Dec 2002 20:00:03 -0000	1.11
@@ -46,6 +46,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 setImage(const QString &image);
 	const QString image() const { return m_image; }
 	void setMoney(unsigned int _m);
@@ -60,7 +62,7 @@
 	bool m_changed, m_isSelf;
 	bool m_hasTurn, m_canRoll, m_canBuy, m_inJail;
 	unsigned int m_money;
-	QString m_name, m_image;
+	QString m_name, m_host, m_image;
 	Estate *m_location, *m_destination;
 };
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.