/[projects]/queensgui/src/solution.h
ViewVC logotype

Diff of /queensgui/src/solution.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1 by torben, Thu Jul 19 21:34:15 2007 UTC revision 4 by torben, Thu Jul 19 23:44:01 2007 UTC
# Line 38  public: Line 38  public:
38          void set(bool input[MAX_SIZE][MAX_SIZE]);          void set(bool input[MAX_SIZE][MAX_SIZE]);
39          void rotate90();          void rotate90();
40          void mirror();          void mirror();
41            
42            Solution* copy();
43    
44          bool operator==(const Solution& sol);          bool operator==(const Solution& sol);
45          bool operator!=(const Solution& sol);          bool operator!=(const Solution& sol);
46            bool getMatrix(int x, int y);
47            void setMatrix(int x, int y, bool val);
48    
49    
50          int size() {return m_size;};          int size() {return m_size;};
51          void setSize(int size) {m_size = size;};          void setSize(int size) {m_size = size;};
52                    
         bool matrix[MAX_SIZE][MAX_SIZE];  
53  protected:  protected:
54            bool m_matrix[MAX_SIZE][MAX_SIZE];
55          int m_size;          int m_size;
56  };  };
57    

Legend:
Removed from v.1  
changed lines
  Added in v.4

  ViewVC Help
Powered by ViewVC 1.1.20