29 lines
594 B
C++
29 lines
594 B
C++
#pragma once
|
|
#ifndef METATILE_H
|
|
#define METATILE_H
|
|
|
|
#include "tile.h"
|
|
#include <QImage>
|
|
#include <QPoint>
|
|
#include <QString>
|
|
|
|
class Metatile
|
|
{
|
|
public:
|
|
Metatile();
|
|
Metatile(const Metatile &other);
|
|
public:
|
|
QList<Tile> tiles;
|
|
uint16_t behavior; // 8 bits RSE, 9 bits FRLG
|
|
uint8_t layerType;
|
|
uint8_t encounterType; // FRLG only
|
|
uint8_t terrainType; // FRLG only
|
|
QString label;
|
|
|
|
Metatile *copy();
|
|
void copyInPlace(Metatile*);
|
|
static int getBlockIndex(int);
|
|
static QPoint coordFromPixmapCoord(const QPointF &pixelCoord);
|
|
};
|
|
|
|
#endif // METATILE_H
|