~ubuntu-branches/ubuntu/maverick/qgo/maverick

« back to all changes in this revision

Viewing changes to src/group.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin A. Godisch
  • Date: 2005-01-01 23:07:10 UTC
  • Revision ID: james.westby@ubuntu.com-20050101230710-fhng6yidm47xlb2i
Tags: upstream-1.0.0-r2
ImportĀ upstreamĀ versionĀ 1.0.0-r2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
* group.h
 
3
*/
 
4
 
 
5
#ifndef GROUP_H
 
6
#define GROUP_H
 
7
 
 
8
#include <qptrlist.h>
 
9
 
 
10
class Stone;
 
11
 
 
12
class Group : public QPtrList<Stone>
 
13
{
 
14
public:
 
15
        Group();
 
16
        ~Group() {}
 
17
        
 
18
        int getLiberties() const { return liberties; }
 
19
        void setLiberties(int l) { liberties = l; }
 
20
        virtual int compareItems(Item d1, Item d2);
 
21
        bool isAttachedTo(Stone *s);
 
22
#ifndef NO_DEBUG
 
23
        void debug();
 
24
#endif
 
25
        
 
26
private:
 
27
        int liberties;
 
28
};
 
29
 
 
30
#endif