SnakeTile.cpp 530 Bytes
Newer Older
1 2
#include "SnakeTile.h"

Valentin Platzgummer's avatar
Valentin Platzgummer committed
3
SnakeTile::SnakeTile(QObject *parent) : WimaAreaData(parent) {}
4

Valentin Platzgummer's avatar
Valentin Platzgummer committed
5 6 7
SnakeTile::SnakeTile(const SnakeTile &other, QObject *parent)
    : WimaAreaData(parent) {
  *this = other;
8 9
}

10 11 12 13 14 15
SnakeTile::~SnakeTile() {}

QString SnakeTile::type() const { return "Tile"; }

SnakeTile *SnakeTile::Clone() const { return new SnakeTile(*this); }

Valentin Platzgummer's avatar
Valentin Platzgummer committed
16 17 18
SnakeTile &SnakeTile::operator=(const SnakeTile &other) {
  this->assign(other);
  return *this;
19 20
}

Valentin Platzgummer's avatar
Valentin Platzgummer committed
21
void SnakeTile::assign(const SnakeTile &other) { WimaAreaData::assign(other); }