2020-09-13 23:37:55 +01:00
|
|
|
#pragma once
|
2018-09-23 00:47:28 +01:00
|
|
|
#ifndef TILE_H
|
|
|
|
#define TILE_H
|
|
|
|
|
|
|
|
|
|
|
|
class Tile
|
|
|
|
{
|
|
|
|
public:
|
2022-01-04 02:35:15 +00:00
|
|
|
Tile();
|
|
|
|
Tile(int tileId, bool xflip, bool yflip, int palette);
|
2021-02-17 02:45:54 +00:00
|
|
|
|
2018-09-23 00:47:28 +01:00
|
|
|
public:
|
2021-11-24 04:53:41 +00:00
|
|
|
int tileId;
|
2018-10-06 21:49:26 +01:00
|
|
|
bool xflip;
|
|
|
|
bool yflip;
|
2018-09-23 00:47:28 +01:00
|
|
|
int palette;
|
2022-01-04 02:35:15 +00:00
|
|
|
|
|
|
|
static int getIndexInTileset(int);
|
2018-09-23 00:47:28 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // TILE_H
|