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 29 30 31 32 33 34 35 36 37
|
#include "grid.h"
#include "flipit.h"
#include <iostream>
using namespace std;
FlipIt::FlipIt( int nRows,
int nCols,
int gameNum,
int complexity,
Pattern pattern,
bool wrap ):
mv_row(nRows) , mv_col(nCols) , mv_gameNum(gameNum) ,
mv_complex(complexity) , mv_patrn(pattern) ,
mv_wrap(wrap)
{
Grid g(mv_row , mv_col); //OBJECT CREATED.
}
int FlipIt::numRows() const { return mv_row; }
int FlipIt::numCols() const { return mv_col; }
void FlipIt::click( int row, int col )
{
}
FlipIt::Color FlipIt::fetch( int row, int col ) const
{
return g.fetch(row , col); // TRYING TO CALL OBJECT HERE
}
bool FlipIt::done() const
{
return true;
}
|