Pieces.h File Reference

Declares all classes involved in piece decleration and storage. More...

#include "general.h"
#include "Texture.h"
#include "PicPainter.h"

Include dependency graph for Pieces.h:

This graph shows which files directly or indirectly include this file:


Classes

class  PicArr
 PicArr is the most basic definition of the layout a piece. More...
class  PicDef
 PicDef holds a complete definition of a single piece. More...
struct  PicDef::NAPathCoord
 NAPathCoord is the same as PathPoint but without any constructors. More...
struct  PicDef::PathCoord
 PathCoord is a 2D point used in the representation of the bounding path in PicDef. More...
struct  PicDef::PathPoint
 PathPoint is the datum of the pathway table used to build the bounding path of a PicDef. More...
class  PicGroupDef
 PicGroupDef is a collection of similar looking pieces. More...
struct  PicFamily
 PicFamily is a collection of the pieces of the same family. More...
class  PicBucket
 PicBucket is the main repository where all the data about all the pieces resides. More...
class  PicType
 PicType represents a piece when it is a part of an active piece set. More...
class  PicsSet
 PicsSet holds all the pieces of an active solving session. More...

Defines

#define TEX_X   64
#define TEX_Y   64
#define MAX_PATH_LEN   37
 A path is the outline of a piece.

Enumerations

enum  EDrawType {
  DRAW_COLOR = 0, DRAW_TEXTURE_NORM, DRAW_TEXTURE_BLEND, DRAW_TEXTURE_INDIVIDUAL_HALF,
  DRAW_MAX
}
 Defines the way a piece is rendered and textured. More...
enum  EBlackness { BLACK_NOT = 0, BLACK_BOTH = 1, BLACK_ONE = 2 }
 The blackness properties of a pieces color. More...

Detailed Description

Declares all classes involved in piece decleration and storage.

Declares the PicArr, PicDef, PicGroupDef, PicFamily and PicBucket classes. Declares the PicType and PicsSet classes.


Define Documentation

#define MAX_PATH_LEN   37

A path is the outline of a piece.

maximum theoretical number of path sections is 36 + 1 for last connecting to the first

#define TEX_X   64

#define TEX_Y   64


Enumeration Type Documentation

enum EBlackness

The blackness properties of a pieces color.

controls wether it will be surrounded by white or black lines

See also:
PicGroupDef
Enumerator:
BLACK_NOT 
BLACK_BOTH 
BLACK_ONE 

enum EDrawType

Defines the way a piece is rendered and textured.

Enumerator:
DRAW_COLOR  a single uniform color (Happy Cube)
DRAW_TEXTURE_NORM  a normal unblended texture. Not used nowadays
DRAW_TEXTURE_BLEND  a texture blended with a background and foreground color (Marble Cube, Profi Cube)
DRAW_TEXTURE_INDIVIDUAL_HALF 
DRAW_MAX