[prev in list] [next in list] [prev in thread] [next in thread] 

List:       atlantik-devel
Subject:    [atlantik-cvs] CVS: kdegames/atlantik/libatlantic player.cpp,1.12,1.13 player.h,1.9,1.10
From:       kde () office ! kde ! org
Date:       2002-11-29 4:27:33
[Download RAW message or body]

Update of /home/kde/kdegames/atlantik/libatlantic
In directory office:/tmp/cvs-serv1832/libatlantic

Modified Files:
	player.cpp player.h 
Log Message:
framework support for custom tokens

Index: player.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantic/player.cpp,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- player.cpp	2002/11/28 21:38:24	1.12
+++ player.cpp	2002/11/29 04:27:31	1.13
@@ -21,6 +21,8 @@
 Player::Player(int playerId) : QObject()
 {
 	m_id = playerId;
+	m_name = "";
+	m_image = "";
 	m_location = m_destination = 0;
 	m_money = 0;
 	m_changed = m_isSelf = false;
@@ -86,6 +88,15 @@
 	if (m_name != _n)
 	{
 		m_name = _n;
+		m_changed = true;
+	}
+}
+
+void Player::setImage(const QString &image)
+{
+	if (m_image != image)
+	{
+		m_image = image;
 		m_changed = true;
 	}
 }

Index: player.h
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantic/player.h,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- player.h	2002/11/28 21:38:24	1.9
+++ player.h	2002/11/29 04:27:31	1.10
@@ -46,6 +46,8 @@
 	bool inJail() const { return m_inJail; }
 	void setName(const QString _n);
 	QString name() const { return m_name; }
+	void setImage(const QString &image);
+	const QString image() const { return m_image; }
 	void setMoney(unsigned int _m);
 	unsigned int money() const { return m_money; }
 	void update(bool force = false);
@@ -58,7 +60,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_image;
 	Estate *m_location, *m_destination;
 };
 

_______________________________________________
atlantik-cvs mailing list
atlantik-cvs@mail.kde.org
http://mail.kde.org/mailman/listinfo/atlantik-cvs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic