Skip to content
Snippets Groups Projects
shape.cpp 561 B
Newer Older
#include "shape.h"

namespace shapes {

Shape::Shape(void (*definition)(rendering::Renderer &, int cell, int index),
Nicolas Werner's avatar
Nicolas Werner committed
             QColor color,
             QList<QPoint> &positions,
             int startRotationIndex)
Nicolas Werner's avatar
Nicolas Werner committed
  : shapeColor_(color)
  , positions_(positions)
  , startRotationIndex_(startRotationIndex)
  , definition_(definition)
{}

QColor
Shape::getShapeColor()
{
    return shapeColor_;
}

QList<QPoint>
Shape::getPositions()
{
    return positions_;
}

int
Shape::getStartRotationIndex()
{
    return startRotationIndex_;
}
} // namespace shapes