summaryrefslogtreecommitdiffstats
path: root/kpat/hint.h
diff options
context:
space:
mode:
Diffstat (limited to 'kpat/hint.h')
-rw-r--r--kpat/hint.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/kpat/hint.h b/kpat/hint.h
new file mode 100644
index 00000000..1d1c2594
--- /dev/null
+++ b/kpat/hint.h
@@ -0,0 +1,28 @@
+#ifndef HINT_H
+#define HINT_H
+
+
+class Card;
+class Pile;
+
+
+class MoveHint
+{
+public:
+ 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 *m_card;
+ Pile *m_to;
+ bool m_dropiftarget;
+};
+
+
+typedef QValueList<MoveHint*> HintList;
+
+
+#endif