its just a test, wait a week...

This commit is contained in:
andrey
2010-02-03 09:10:40 +03:00
parent 835518ce1a
commit d20473731f
72 changed files with 679 additions and 37791 deletions

15
game.cpp Normal file
View File

@@ -0,0 +1,15 @@
#include "game.h"
game::game(QSize size, QPoint start, QPoint finish, int cellsize)
{
data = new GameData();
data->size = size/cellsize;
data->start = start/cellsize;
data->finish = finish/cellsize;
data->cellsize = cellsize;
data->Cells = new int*[data->size.width()];
for (int i = 0; i < data->size.width(); i++) {
data->Cells[i] = new int[data->size.height()];
for (int j = 0; j < data->size.height(); j++) data->Cells[i][j] = 0;
}
}