2020-09-13 23:37:55 +01:00
|
|
|
#pragma once
|
2018-09-23 00:47:28 +01:00
|
|
|
#ifndef METATILE_H
|
|
|
|
#define METATILE_H
|
|
|
|
|
|
|
|
#include "tile.h"
|
|
|
|
#include <QImage>
|
2020-09-27 17:17:12 +01:00
|
|
|
#include <QPoint>
|
2019-04-04 06:44:31 +01:00
|
|
|
#include <QString>
|
2018-09-23 00:47:28 +01:00
|
|
|
|
|
|
|
class Metatile
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Metatile();
|
2021-02-16 17:14:27 +00:00
|
|
|
Metatile(const Metatile &other);
|
2018-09-23 00:47:28 +01:00
|
|
|
public:
|
2021-02-16 17:14:27 +00:00
|
|
|
QList<Tile> tiles;
|
2020-03-16 20:31:08 +00:00
|
|
|
uint16_t behavior; // 8 bits RSE, 9 bits FRLG
|
2018-10-03 01:01:09 +01:00
|
|
|
uint8_t layerType;
|
2020-03-16 20:31:08 +00:00
|
|
|
uint8_t encounterType; // FRLG only
|
|
|
|
uint8_t terrainType; // FRLG only
|
2019-04-04 06:44:31 +01:00
|
|
|
QString label;
|
2018-09-23 00:47:28 +01:00
|
|
|
|
2018-10-03 01:01:15 +01:00
|
|
|
Metatile *copy();
|
2018-10-06 23:07:36 +01:00
|
|
|
void copyInPlace(Metatile*);
|
2018-09-23 00:47:28 +01:00
|
|
|
static int getBlockIndex(int);
|
2020-09-27 17:17:12 +01:00
|
|
|
static QPoint coordFromPixmapCoord(const QPointF &pixelCoord);
|
2018-09-23 00:47:28 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // METATILE_H
|