[prev in list] [next in list] [prev in thread] [next in thread]
List: atlantik-devel
Subject: [atlantik-cvs] CVS: kdegames/atlantik/libatlantic estate.cpp, 1.10,
From: kde () office ! kde ! org
Date: 2003-12-08 23:50:24
[Download RAW message or body]
Update of /home/kde/kdegames/atlantik/libatlantic
In directory office:/tmp/cvs-serv3608/libatlantic
Modified Files:
Tag: atlantik_3_3_branch
estate.cpp estate.h
Log Message:
only add estatedetails when it's a user request
Index: estate.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantic/estate.cpp,v
retrieving revision 1.10
retrieving revision 1.10.2.1
diff -u -d -r1.10 -r1.10.2.1
--- estate.cpp 13 Jul 2003 21:27:43 -0000 1.10
+++ estate.cpp 8 Dec 2003 23:50:21 -0000 1.10.2.1
@@ -27,6 +27,7 @@
m_owner = 0;
m_houses = 0;
m_price = 0;
+ m_money = 0;
m_estateGroup = 0;
m_changed = m_canBeOwned = m_canBuyHouses = m_canSellHouses = m_isMortgaged = \
m_canToggleMortgage = false; m_bgColor = QColor();
@@ -136,6 +137,20 @@
m_canToggleMortgage = canToggleMortgage;
m_changed = true;
}
+}
+
+void Estate::setMoney(int money)
+{
+ if (m_money != money)
+ {
+ m_money = money;
+ m_changed = true;
+ }
+}
+
+int Estate::money()
+{
+ return m_money;
}
void Estate::update(bool force)
Index: estate.h
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantic/estate.h,v
retrieving revision 1.13
retrieving revision 1.13.2.1
diff -u -d -r1.13 -r1.13.2.1
--- estate.h 23 Jun 2003 03:05:27 -0000 1.13
+++ estate.h 8 Dec 2003 23:50:21 -0000 1.13.2.1
@@ -56,6 +56,8 @@
QColor bgColor() const { return m_bgColor; }
void setPrice(const unsigned int price) { m_price = price; }
unsigned int price() const { return m_price; }
+ void setMoney(int money);
+ int money();
void update(bool force = false);
signals:
@@ -75,6 +77,7 @@
Player *m_owner;
EstateGroup *m_estateGroup;
unsigned int m_houses, m_price;
+ int m_money;
bool m_canBeOwned, m_canBuyHouses, m_canSellHouses, m_isMortgaged, \
m_canToggleMortgage; QColor m_bgColor, m_color;
};
_______________________________________________
atlantik-cvs mailing list
atlantik-cvs@kde.org
https://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