[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdegames/kpat
From: Inge Wallin <inge () lysator ! liu ! se>
Date: 2004-11-04 19:33:58
Message-ID: 20041104193358.B1C5516D80 () office ! kde ! org
[Download RAW message or body]
CVS commit by ingwa:
Start of a big code cleanup
- hide.h
- dealer.cpp (only beginning)
M +6 -1 CHANGES 1.13
M +23 -4 dealer.cpp 1.77
M +13 -8 hint.h 1.3
--- kdegames/kpat/CHANGES #1.12:1.13
@@ -1,5 +1,10 @@
+2004-11-04 Inge Wallin <inge@lysator.liu.se>
+
+ Start of a thorough code cleaning
+ - Start with hide.h and dealer.cpp
+
2004-10-31 Inge Wallin <inge@lysator.liu.se>
- - fix wish 92002: Restart game button should have a confirmation dialog
+ - fix wish 92002: Restart game button should have a confirmation dialog
2004-10-15 Inge Wallin <inge@lysator.liu.se>
--- kdegames/kpat/dealer.cpp #1.76:1.77
@@ -15,4 +15,21 @@
#include "version.h"
+
+// ================================================================
+// class MoveHint
+
+
+MoveHint::MoveHint(Card *card, Pile *to, bool d)
+{
+ m_card = card;
+ m_to = to;
+ m_dropiftarget = d;
+}
+
+
+// ================================================================
+// class DealerInfoList
+
+
DealerInfoList *DealerInfoList::_self = 0;
static KStaticDeleter<DealerInfoList> dl;
@@ -30,4 +48,9 @@ void DealerInfoList::add(DealerInfo *dea
}
+
+// ================================================================
+// class Dealer
+
+
Dealer *Dealer::s_instance = 0;
@@ -1373,8 +1396,4 @@ void Dealer::wheelEvent( QWheelEvent *e
}
-MoveHint::MoveHint(Card * c, Pile *_to, bool d)
-{
- _card = c; to = _to; _dropiftarget = d;
-}
void Dealer::countLoss()
--- kdegames/kpat/hint.h #1.2:1.3
@@ -8,13 +10,14 @@ class MoveHint
{
public:
- MoveHint(Card *c, Pile *_to, bool d=true);
- bool dropIfTarget() const { return _dropiftarget; }
- Card *card() const { return _card; }
- Pile *pile() const { return to; }
+ MoveHint(Card *card, Pile *to, bool d=true);
+
+ bool dropIfTarget() const { return m_dropiftarget; }
+ Card *card() const { return m_card; }
+ Pile *pile() const { return m_to; }
private:
- Card *_card;
- Pile *to;
- bool _dropiftarget;
+ Card *m_card;
+ Pile *m_to;
+ bool m_dropiftarget;
};
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic