mirror of
https://github.com/mkwong98/HDNes.git
synced 2024-05-20 05:00:49 -04:00
55 lines
1 KiB
C++
55 lines
1 KiB
C++
#ifndef GAMETILE_H
|
|
#define GAMETILE_H
|
|
|
|
#include "common.h"
|
|
#include "classList.h"
|
|
#include "condition.h"
|
|
#include "tileReference.h"
|
|
|
|
struct replacement{
|
|
int frameID;
|
|
bool hasReplacement;
|
|
int img;
|
|
int x;
|
|
int y;
|
|
double brightness;
|
|
};
|
|
|
|
class gameTile
|
|
{
|
|
public:
|
|
gameTile();
|
|
virtual ~gameTile();
|
|
|
|
tileReference id;
|
|
|
|
int objCoordX;
|
|
int objCoordY;
|
|
bool hFlip;
|
|
bool vFlip;
|
|
bool markForDelete;
|
|
bool isUnique;
|
|
|
|
|
|
bool isDefault;
|
|
vector<condition> conditions;
|
|
vector<bool> conSigns;
|
|
|
|
vector<replacement> aniFrames;
|
|
|
|
void readLine(string s);
|
|
string writeLine();
|
|
string writeFrameLine(int pFrameID, double pSwapBrightness);
|
|
|
|
string writeConditionNames();
|
|
bool compareEqual(gameTile& t);
|
|
void load(fstream& file);
|
|
void save(fstream& file);
|
|
gameTile clone();
|
|
protected:
|
|
|
|
private:
|
|
};
|
|
|
|
#endif // GAMETILE_H
|