/***************************************************************************
                           sidelib.h
                           -------------------
    copyright            : (C) 2004 by Jos van den Oever
    email                : jos@vandenoever.info
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/
// This file contains a library of different sides that can be used for pasting
// on different sides of a cube.
// The sides are group by symmetry, first the sides with four equal
// orientations, then the sides with two equal orientations and then the sides
// with four different possible orientations.
#ifndef SIDELIB_H
#define SIDELIB_H

#include "sidestyle.h"
class SideLib : public SideStyle {
private:
	Q3Picture *blankPicture;
	mutable short c1max, c2max, c4max;
	mutable Q3Picture **c1;
	mutable Q3Picture **c2;
	mutable Q3Picture **c4;
public:
	SideLib();
	~SideLib();
//	const QPicture *getBlankPicture();
//	const QPicture *getNumberedPicture(int i);
	const Q3Picture diceside(short points);

	const Q3Picture *getC4Picture(ushort i) const;
	const Q3Picture *getC2Picture(ushort i) const;
	const Q3Picture *getC1Picture(ushort i) const;
	short amount(Symmetry) const;
};

#endif
