21 |
#define SOLUTIONINT_H |
#define SOLUTIONINT_H |
22 |
|
|
23 |
#include <solution.h> |
#include <solution.h> |
24 |
|
#include "config.h" |
25 |
|
|
26 |
class SolutionInt : public Solution |
class SolutionInt : public Solution |
27 |
{ |
{ |
33 |
virtual bool getMatrix(int x, int y); |
virtual bool getMatrix(int x, int y); |
34 |
virtual void setMatrix(int x, int y, bool val); |
virtual void setMatrix(int x, int y, bool val); |
35 |
virtual bool operator ==(const Solution& sol); |
virtual bool operator ==(const Solution& sol); |
36 |
//virtual bool operator !=(const Solution& sol); |
|
37 |
virtual Solution* copy(); |
virtual Solution* copy(); |
38 |
virtual void mirror(); |
virtual void mirror(); |
39 |
virtual void rotate90(); |
virtual void rotate90(); |
40 |
private: |
private: |
41 |
explicit SolutionInt(const SolutionInt& input); |
explicit SolutionInt(const SolutionInt& input); |
42 |
|
void set(unsigned char[MAX_SIZE]); |
43 |
unsigned char m_matrix[MAX_SIZE]; |
unsigned char m_matrix[MAX_SIZE]; |
44 |
|
|
45 |
}; |
}; |