Files
aliendefender/games.cpp
buull 3f8971b113 now this work stable
global restruct fuinish part 1 of 3
2010-02-07 16:18:29 +03:00

17 lines
455 B
C++

#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;
}
}