forked from uyras/partsEngine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsquarespinicearray.h
More file actions
39 lines (27 loc) · 857 Bytes
/
Copy pathsquarespinicearray.h
File metadata and controls
39 lines (27 loc) · 857 Bytes
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
38
39
#ifndef SQUARESPINICEARRAY_H
#define SQUARESPINICEARRAY_H
#include "PartArray.h"
#include "squarespinicecell.h"
#include "Vect.h"
#include "savehelper.h"
#include "loadhelper.h"
#include <QtDebug>
using namespace std;
class SquareSpinIceArray : public PartArray
{
public:
SquareSpinIceArray();
SquareSpinIceArray(const SquareSpinIceArray &sys);
virtual ~SquareSpinIceArray();
SquareSpinIceArray &operator = (const SquareSpinIceArray &sys);
void dropSpinIce(int hCells, int vCells, double l=1);
StateMachineFree groundState();
StateMachineFree maximalState();
vector<SquareSpinIceCell*> cells;
virtual void clear();
virtual void load(QString file);
virtual void save(QString file);
private:
void clearCells(); //чистим информацию о ячейках
};
#endif // SQUARESPINICEARRAY_H