summaryrefslogtreecommitdiffstats
path: root/kpat/hint.h
blob: 8ebf9ed5a9fa860ebd56c22c0e38240f0dfc953c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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 TQValueList<MoveHint*>  HintList;


#endif