porymap/include/core/metatile.h

29 lines
602 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>
2021-02-18 00:20:14 +00:00
class Metatile {
public:
Metatile();
2021-02-18 00:20:14 +00:00
Metatile(const Metatile& other) = default;
Metatile& operator=(const Metatile& other) = default;
public:
2021-02-16 17:14:27 +00:00
QList<Tile> tiles;
2021-02-18 00:20:14 +00:00
uint16_t behavior; // 8 bits RSE, 9 bits FRLG
uint8_t layerType;
uint8_t encounterType; // FRLG only
2021-02-18 00:20:14 +00:00
uint8_t terrainType; // FRLG only
QString label;
static int getBlockIndex(int);
2021-02-18 00:20:14 +00:00
static QPoint coordFromPixmapCoord(const QPointF& pixelCoord);
};
#endif // METATILE_H