#include <Solutions.h>
Collaboration diagram for SlvCube:
Public Member Functions | |
SlvCube (int n, ShapePlace *plc, const PicsSet *picsc) | |
SlvCube () | |
~SlvCube () | |
void | genPainter (Shape *shp) |
prepare the painter to do its job | |
bool | saveTo (MyFile *wrfl, int index) |
bool | readFrom (MyFile *rdfl, int _slvsz) |
void | transform (const TTransformVec &moveTo) |
int | numPieces () const |
const PicGroupDef * | getPieceGrpDef (int n) const |
Public Attributes | |
int | slvsz |
SlvPiece * | dt |
int | picssz |
SlvPic * | picdt |
bool | bConsidersSym |
SlvPainter | painter |
Private Member Functions | |
void | makeDt (ShapePlace *plc) |
Classes | |
struct | SlvPic |
SlvPic holds the data of a single piece that was selected when the solution was generated. More... | |
struct | SlvPiece |
SlvPiece holds the date of a single tile in a solution. More... |
SlvCube does not contain any information about the structure of the Shape it based on and hence depends completly on living in the context of the Shape it was created upon. Essentially SlvCube is just a series of pieces layed out in the order of the faces of the Shape. An SlvCube Does contain complete information of the pieces it is made of an can live independantly from the PicsSet which lead to its creation.
SlvCube::SlvCube | ( | int | n, | |
ShapePlace * | plc, | |||
const PicsSet * | picsc | |||
) |
SlvCube::SlvCube | ( | ) |
SlvCube::~SlvCube | ( | ) |
void SlvCube::genPainter | ( | Shape * | shp | ) |
prepare the painter to do its job
bool SlvCube::saveTo | ( | MyFile * | wrfl, | |
int | index | |||
) |
bool SlvCube::readFrom | ( | MyFile * | rdfl, | |
int | _slvsz | |||
) |
void SlvCube::transform | ( | const TTransformVec & | moveTo | ) |
int SlvCube::numPieces | ( | ) | const [inline] |
const PicGroupDef* SlvCube::getPieceGrpDef | ( | int | n | ) | const [inline] |
void SlvCube::makeDt | ( | ShapePlace * | plc | ) | [private] |
int SlvCube::slvsz |
int SlvCube::picssz |