-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCTileWindow.h
More file actions
45 lines (30 loc) · 726 Bytes
/
Copy pathCTileWindow.h
File metadata and controls
45 lines (30 loc) · 726 Bytes
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
#ifndef CTILEWINDOW_H_INCLUDED
#define CTILEWINDOW_H_INCLUDED
#include "CArea.h"
#include "CCamera.h"
#include "CSurface.h"
//==============================================================================
class CTileWindow
{
protected:
SDL_Surface* Surf_TileWindow;
public:
float X;
float Y;
int Width;
int Height;
int Active;
public:
int Type;
int Flags;
public:
CTileWindow();
~CTileWindow();
public:
virtual bool OnLoad(char* File, int Width, int Height);
virtual void OnLoop();
virtual void OnRender(SDL_Surface* Surf_Display);
virtual void OnCleanup();
int GetTileID(int mX, int mY, int& TileType);
};
#endif // CTILEWINDOW_H_INCLUDED