now this work stable
global restruct fuinish part 1 of 3
This commit is contained in:
16
games.cpp
Normal file
16
games.cpp
Normal file
@@ -0,0 +1,16 @@
|
||||
#include "games.h"
|
||||
|
||||
games::games(QSize formsize, QPoint startpnt, QPoint finishpnt, int sizeofcell)
|
||||
{
|
||||
buff = new QPixmap(formsize);
|
||||
background = new QPixmap(formsize);
|
||||
cellsize = sizeofcell;
|
||||
size = formsize/cellsize;
|
||||
start = startpnt/cellsize;
|
||||
finish = finishpnt/cellsize;
|
||||
Cells = new int*[size.width()];
|
||||
for (int i = 0; i < size.width(); i++) {
|
||||
Cells[i] = new int[size.height()];
|
||||
for (int j = 0; j < size.height(); j++) Cells[i][j] = 0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user