forked from rickyrombo/TileBox
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathExtension.hpp
More file actions
66 lines (53 loc) · 1.31 KB
/
Extension.hpp
File metadata and controls
66 lines (53 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
class Extension
{
public:
RD *rd;
RunHeader *rh;
Edif::Runtime Runtime;
static const int MinimumBuild = 257;
static const int Version = 2;
static const int OEFLAGS = OEFLAG_VALUES|OEFLAG_RUNBEFOREFADEIN|OEFLAG_NEVERKILL;
static const int OEPREFS = 0;
static const int WindowProcPriority = 100;
Extension(RD *rd, SerializedED *SED, createObjectInfo *COB);
~Extension();
int boxWidth;
int boxHeight;
int startX;
int startY;
int tileWidth;
int tileHeight;
int currentX[100];
int currentY[100];
int lastX;
int lastY;
//Actions
void SetTileWidth(int pixels);
void SetTileHeight(int pixels);
void SetBoxWidth(int tiles);
void SetBoxHeight(int tiles);
void SetStart(int x, int y);
void GenerateBox(int curType);
//Conditions
bool LeftTop(int type);
bool LeftMiddle(int type);
bool LeftBottom(int type);
bool MiddleTop(int type);
bool MiddleMiddle(int type);
bool MiddleBottom(int type);
bool RightTop(int type);
bool RightMiddle(int type);
bool RightBottom(int type);
//Expressions
int LastX();
int LastY();
short Handle();
short Display();
short Pause();
short Continue();
bool Save(HANDLE File);
bool Load(HANDLE File);
void Action(int ID, RD *rd, long param1, long param2);
long Condition(int ID, RD *rd, long param1, long param2);
long Expression(int ID, RD *rd, long param);
};