00001
00002
00003
00004
00005
00006
00007
00008
00009
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef __MINIMAP_H__
00029 #define __MINIMAP_H__
00030
00032
00033
00034
00035
00036
00037 class CMinimap
00038 {
00039 public:
00040 CMinimap() : X(0), Y(0), W(0), H(0), XOffset(0), YOffset(0),
00041 WithTerrain(false), ShowSelected(false), Transparent(false) {}
00042
00043 void UpdateTerrain();
00044 void Update();
00045 void Create();
00046 void FreeOpenGL();
00047 void Reload();
00048 void Destroy();
00049 void Draw(int vx, int vy);
00050 void DrawCursor(int vx, int vy);
00051 void AddEvent(int x, int y);
00052
00053 int Screen2MapX(int x);
00054 int Screen2MapY(int y);
00055
00056 int X;
00057 int Y;
00058 int W;
00059 int H;
00060 int XOffset;
00061 int YOffset;
00062 bool WithTerrain;
00063 bool ShowSelected;
00064 bool Transparent;
00065 };
00066
00068
00069 #endif // !__MINIMAP_H__