~ubuntu-branches/ubuntu/quantal/kdegames/quantal

« back to all changes in this revision

Viewing changes to ksudoku/src/generator/state.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2011-12-15 14:17:50 UTC
  • mfrom: (1.3.14)
  • Revision ID: package-import@ubuntu.com-20111215141750-6tj6brf4azhrt915
Tags: 4:4.7.90-0ubuntu1
new upstream beta release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/****************************************************************************
 
2
 *    Copyright 2011  Ian Wadham <iandw.au@gmail.com>                       *
 
3
 *                                                                          *
 
4
 *    This program is free software; you can redistribute it and/or         *
 
5
 *    modify it under the terms of the GNU General Public License as        *
 
6
 *    published by the Free Software Foundation; either version 2 of        *
 
7
 *    the License, or (at your option) any later version.                   *
 
8
 *                                                                          *
 
9
 *    This program is distributed in the hope that it will be useful,       *
 
10
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 
11
 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 
12
 *    GNU General Public License for more details.                          *
 
13
 *                                                                          *
 
14
 *    You should have received a copy of the GNU General Public License     *
 
15
 *    along with this program.  If not, see <http://www.gnu.org/licenses/>. *
 
16
 ****************************************************************************/
 
17
 
 
18
#ifndef STATE_H
 
19
#define STATE_H
 
20
 
 
21
#include <QObject>
 
22
#include <QVector>
 
23
 
 
24
#include "globals.h"
 
25
#include "sudokuboard.h"
 
26
 
 
27
class State : public QObject
 
28
{
 
29
    Q_OBJECT
 
30
public:
 
31
    State (QObject * parent,
 
32
           const GuessesList &   guesses,
 
33
           const int             guessNumber,
 
34
           const BoardContents & values,
 
35
           const MoveList &      moves,
 
36
           const MoveList &      moveTypes);
 
37
 
 
38
    GuessesList    guesses()              { return m_guesses; }
 
39
    int            guessNumber()          { return m_guessNumber; }
 
40
    BoardContents  values()               { return m_values;  }
 
41
    void           setGuessNumber (int n) { m_guessNumber = n; }
 
42
    MoveList       moves()                { return m_moves; }
 
43
    MoveList       moveTypes()            { return m_moveTypes; }
 
44
 
 
45
private:
 
46
    GuessesList    m_guesses;
 
47
    int            m_guessNumber;
 
48
    BoardContents  m_values;
 
49
    MoveList       m_moves;
 
50
    MoveList       m_moveTypes;
 
51
};
 
52
 
 
53
#endif // STATE_H