porymap/include/core/metatile.h

29 lines
568 B
C
Raw Normal View History

2020-09-13 23:37:55 +01:00
#pragma once
#ifndef METATILE_H
#define METATILE_H
#include "tile.h"
#include <QImage>
#include <QPoint>
#include <QString>
class Metatile
{
public:
Metatile();
public:
QList<Tile> *tiles = nullptr;
uint16_t behavior; // 8 bits RSE, 9 bits FRLG
uint8_t layerType;
uint8_t encounterType; // FRLG only
uint8_t terrainType; // FRLG only
QString label;
2018-10-03 01:01:15 +01:00
Metatile *copy();
void copyInPlace(Metatile*);
static int getBlockIndex(int);
static QPoint coordFromPixmapCoord(const QPointF &pixelCoord);
};
#endif // METATILE_H