| 1 |
#ifndef HEADER_SHAPE_BUILDER_H |
| 2 |
#define HEADER_SHAPE_BUILDER_H |
| 3 |
|
| 4 |
class Shape; |
| 5 |
|
| 6 |
#include "Cube.h" |
| 7 |
|
| 8 |
#include "SDL.h" |
| 9 |
|
| 10 |
/** |
| 11 |
* Creator of images from shapes. |
| 12 |
* Useable for testing of new levels. |
| 13 |
*/ |
| 14 |
class ShapeBuilder { |
| 15 |
private: |
| 16 |
/** |
| 17 |
* ShapeBuilder is not meant to be instantiated. |
| 18 |
*/ |
| 19 |
ShapeBuilder() {} |
| 20 |
static void prepareColor(SDL_Color *color, const Shape *shape, |
| 21 |
Cube::eWeight weight); |
| 22 |
static Uint32 calcShapeHash(const Shape *shape); |
| 23 |
public: |
| 24 |
static SDL_Surface *createImage(const Shape *shape, Cube::eWeight weight); |
| 25 |
}; |
| 26 |
|
| 27 |
#endif |